* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  overflow: hidden;
  background: #0a0a1a;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e0e0e0;
}

#map {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

/* HUD Panels */
.hud-panel {
  position: fixed;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.8;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 10;
}

#hud-top-left { top: 16px; left: 16px; }
#hud-top-right { top: 16px; right: 320px; }

.hud-title {
  color: #4fc3f7;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.hud-panel span {
  font-weight: 600;
}

#hud-vehicle-count { color: #66bb6a; }
#hud-avg-speed { color: #ffa726; }
#hud-scenario { color: #ef5350; }

/* Congestion indicators */
.congestion-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
}

.congestion-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Playback Controls */
#playback-controls {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.08);
}

.ctrl-btn, .speed-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e0e0e0;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}

.ctrl-btn:hover, .speed-btn:hover {
  background: #334155;
}

.ctrl-btn.active, .speed-btn.active {
  background: #4fc3f7;
  color: #000;
  border-color: #4fc3f7;
}

.ctrl-separator { color: #555; }
.ctrl-label { color: #888; font-size: 12px; }

/* Scenario Panel */
#scenario-panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 290px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 16px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.08);
}

.panel-title {
  color: #4fc3f7;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

#scenario-select {
  width: 100%;
  background: #1e293b;
  color: #e0e0e0;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13px;
  margin-bottom: 12px;
}

.panel-section {
  margin-bottom: 10px;
}

.panel-section label {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 4px;
}

.panel-section input[type="range"] {
  width: 70%;
  vertical-align: middle;
}

.panel-section span {
  font-size: 12px;
  color: #4fc3f7;
  margin-left: 8px;
}

.run-btn {
  width: 100%;
  background: #4fc3f7;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.run-btn:hover { background: #81d4fa; }

/* Metrics Panel */
#metrics-panel {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 300px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 16px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Comparison results */
#comparison-results {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #334155;
}

.comparison-stat {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 13px;
}

.stat-positive { color: #66bb6a; }
.stat-negative { color: #ef5350; }

.hidden { display: none; }
