#ui-panel {
  position: fixed;
  top: 0; right: 0;
  width: 280px; height: 100vh;
  background: rgba(8, 12, 20, 0.92);
  color: #cdd5e0;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  overflow-y: auto;
  z-index: 100;
  border-left: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.panel-header {
  padding: 14px 12px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.panel-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #e8edf5;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.health-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.health-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  color: #000;
  letter-spacing: 0.3px;
}

.panel-section {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7a99;
  margin-bottom: 8px;
}

/* Berth cards */
.berth-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.berth-id   { font-weight: 600; color: #a0b0cc; min-width: 70px; }
.berth-status { font-size: 11px; text-transform: capitalize; flex: 1; }
.berth-vessel { font-size: 10px; color: #6b7a99; }

/* Yard bars */
.yard-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
}
.yard-id { min-width: 60px; color: #a0b0cc; font-weight: 600; }
.yard-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.yard-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.5s ease;
}
.yard-pct { font-size: 11px; color: #8899aa; min-width: 32px; text-align: right; }

/* Gate cards */
.gate-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  flex-wrap: wrap;
}
.gate-id    { font-weight: 600; color: #a0b0cc; min-width: 60px; }
.gate-queue { font-size: 11px; min-width: 44px; }
.gate-bar-bg {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.gate-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Simulation banner */
.sim-banner {
  margin: 8px 12px;
  padding: 8px 10px;
  background: rgba(255, 170, 0, 0.15);
  border: 1px solid rgba(255,170,0,0.4);
  border-radius: 6px;
  color: #ffaa00;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
