/* Layout overrides — quantum map is embedded, not fullscreen */
body {
  overflow: auto;
  min-height: unset;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

#app {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#map-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
}

#map-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Floating controls pill — mirrors .controls from styles.css */
#controls {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-surface);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
}

/* Native range slider styled to match the track aesthetic */
#timeline-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 180px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
  cursor: pointer;
}

#timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-surface);
  cursor: pointer;
  transition: transform 0.1s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#timeline-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

#timeline-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-surface);
  cursor: pointer;
}

/* Yearly / Accumulated toggle */
#mode-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
}

#mode-toggle button {
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
}

#mode-toggle button.active {
  background: var(--accent);
  color: var(--bg-surface);
}

#error-msg {
  color: #dc322f;
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
}
