/* Every overlay, modal and menu in this app is toggled with the `hidden`
   attribute. The UA stylesheet's `[hidden] { display: none }` loses to any
   author rule that sets `display` on a class, so without this the full-screen
   overlays stay laid out and swallow every click on the page. Keep it first
   and keep the !important. */
[hidden] {
  display: none !important;
}

/* ===== CSS Custom Properties ===== */
:root {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --bg-surface: #1e2a4a;
  --bg-hover: #253a5e;
  --bg-input: #0d1b36;

  --text-primary: #eeeeee;
  --text-secondary: #a0aec0;
  --text-muted: #6b7a90;
  --text-dim: #4a5568;

  --accent: #0f3460;
  --accent-hover: #1a4a7a;
  --highlight: #e94560;
  --highlight-hover: #ff5a75;

  --btn-primary: #2563eb;
  --btn-primary-hover: #3b82f6;
  --btn-secondary: #374151;
  --btn-secondary-hover: #4b5563;
  --btn-danger: #dc2626;
  --btn-danger-hover: #ef4444;

  --border: #2d3a52;
  --border-light: #3a4a66;
  --divider: #1e293b;

  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --info: #3b82f6;

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);

  --sidebar-width: 280px;
  --navbar-height: 48px;
  --statusbar-height: 24px;
  --toolbar-size: 40px;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --transition: 150ms ease;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8ecf1;
    --bg-surface: #f0f2f5;
    --bg-hover: #e2e6ea;
    --bg-input: #ffffff;

    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-dim: #a0aec0;

    --border: #d1d5db;
    --border-light: #e5e7eb;
    --divider: #e2e8f0;

    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

:root[data-theme="dark"] {
  --bg-primary: #1a1a2e;
  --bg-secondary: #16213e;
  --bg-tertiary: #0f3460;
  --bg-surface: #1e2a4a;
  --bg-hover: #253a5e;
  --bg-input: #0d1b36;

  --text-primary: #eeeeee;
  --text-secondary: #a0aec0;
  --text-muted: #6b7a90;
  --text-dim: #4a5568;

  --border: #2d3a52;
  --border-light: #3a4a66;
  --divider: #1e293b;

  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

input, select {
  font: inherit;
  color: inherit;
}

/* ===== Navbar ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  padding: 0 12px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  gap: 16px;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.navbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--highlight);
}

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.project-name-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 14px;
  color: var(--text-primary);
  min-width: 120px;
  max-width: 300px;
  transition: border-color var(--transition);
}

.project-name-input:hover {
  border-color: var(--border);
}

.project-name-input:focus {
  outline: none;
  border-color: var(--btn-primary);
  background: var(--bg-input);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-primary {
  background: var(--btn-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-secondary {
  background: var(--btn-secondary);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--btn-secondary-hover);
}

.btn-danger {
  background: var(--btn-danger);
  color: white;
}

.btn-danger:hover {
  background: var(--btn-danger-hover);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== User Menu ===== */
.user-menu {
  position: relative;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.user-menu-btn:hover {
  background: var(--bg-hover);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.user-name {
  font-size: 13px;
  color: var(--text-secondary);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 200;
}

.user-dropdown-email {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.user-dropdown-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.user-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: background var(--transition);
}

.user-dropdown-item:hover {
  background: var(--bg-hover);
}

/* ===== Main Content ===== */
.main-content {
  display: flex;
  height: calc(100vh - var(--navbar-height) - var(--statusbar-height));
  position: relative;
}

.panel {
  position: relative;
  overflow: hidden;
}

.panel-map {
  flex: 1 1 50%;
  min-width: 200px;
}

.panel-3d {
  flex: 1 1 50%;
  min-width: 200px;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

#preview-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Panel Divider ===== */
.panel-divider {
  width: 5px;
  cursor: col-resize;
  background: var(--border);
  transition: background var(--transition);
  flex-shrink: 0;
  z-index: 10;
}

.panel-divider:hover,
.panel-divider.dragging {
  background: var(--btn-primary);
}

/* ===== Map ===== */
.map-container {
  width: 100%;
  height: 100%;
}

.map-toolbar {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 4px;
  box-shadow: var(--shadow);
  z-index: 10;
}

.map-tool {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.map-tool:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.map-tool.active {
  background: var(--btn-primary);
  color: white;
}

.toolbar-divider {
  height: 1px;
  background: var(--border);
  margin: 2px 4px;
}

.layer-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 10;
}

.layer-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.layer-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.layer-btn.active {
  background: var(--btn-primary);
  color: white;
}

/* ===== GPX Drop Overlay ===== */
.gpx-drop-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 52, 96, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  backdrop-filter: blur(4px);
}

.gpx-drop-content {
  text-align: center;
  color: white;
}

.gpx-drop-content svg {
  margin-bottom: 16px;
  opacity: 0.8;
}

.gpx-drop-content p {
  font-size: 18px;
  font-weight: 500;
}

/* ===== 3D Preview ===== */
.preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-muted);
}

.preview-placeholder p {
  font-size: 15px;
}

.preview-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-secondary);
  background: rgba(26, 26, 46, 0.8);
  backdrop-filter: blur(4px);
  z-index: 5;
}

/* ===== Spinner ===== */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--btn-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner.large {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: relative;
  transition: width 200ms ease, margin-right 200ms ease;
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
  border-left: none;
}

.sidebar-toggle {
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  z-index: 10;
  transition: color var(--transition);
}

.sidebar-toggle:hover {
  color: var(--text-primary);
}

.sidebar.collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.sidebar-content::-webkit-scrollbar {
  width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* ===== Control Sections ===== */
.control-section {
  border-bottom: 1px solid var(--divider);
}

.control-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.section-header:hover {
  background: var(--bg-hover);
}

.section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.section-chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.control-section.collapsed .section-chevron {
  transform: rotate(-90deg);
}

.section-body {
  padding: 4px 14px 12px;
}

.control-section.collapsed .section-body {
  display: none;
}

/* ===== Controls ===== */
.control-group {
  margin-bottom: 10px;
}

.control-group:last-child {
  margin-bottom: 0;
}

.control-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.control-value {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.control-input {
  width: 100%;
  padding: 5px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  transition: border-color var(--transition);
}

.control-input:focus {
  outline: none;
  border-color: var(--btn-primary);
}

.control-input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Range slider */
.control-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.control-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--btn-primary);
  border: 2px solid var(--bg-secondary);
  cursor: pointer;
  transition: transform var(--transition);
}

.control-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.control-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--btn-primary);
  border: 2px solid var(--bg-secondary);
  cursor: pointer;
}

/* Select */
.control-select {
  width: 100%;
  padding: 5px 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}

.control-select:focus {
  outline: none;
  border-color: var(--btn-primary);
}

/* Radio buttons */
.radio-group {
  display: flex;
  gap: 4px;
}

.radio-option {
  flex: 1;
  padding: 5px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.radio-option:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.radio-option.active {
  background: var(--btn-primary);
  border-color: var(--btn-primary);
  color: white;
}

/* Color picker */
.control-color {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}

.color-swatch::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-swatch::-webkit-color-swatch {
  border: none;
  border-radius: 2px;
}

.color-hex {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Toggle switch */
.toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toggle {
  position: relative;
  width: 36px;
  height: 20px;
  background: var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background var(--transition);
}

.toggle.active {
  background: var(--btn-primary);
}

.toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle.active::after {
  transform: translateX(16px);
}

/* Bounds display */
.bounds-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 8px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.bounds-label {
  color: var(--text-muted);
  text-align: right;
}

.bounds-value {
  color: var(--text-secondary);
}

/* Info row */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 2px 0;
}

.info-key {
  color: var(--text-muted);
}

.info-val {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* GPS file display */
.gps-file-info {
  padding: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 8px;
}

.gps-file-name {
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gps-file-meta {
  color: var(--text-muted);
  font-size: 11px;
}

.gps-no-file {
  color: var(--text-dim);
  font-size: 12px;
  text-align: center;
  padding: 12px 0;
}

/* Export buttons */
.export-buttons {
  display: flex;
  gap: 8px;
}

.export-buttons .btn {
  flex: 1;
  justify-content: center;
  padding: 8px 14px;
}

/* ===== Status Bar ===== */
.status-bar {
  height: var(--statusbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  z-index: 100;
}

.status-left, .status-center, .status-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-item {
  font-family: var(--font-mono);
  font-size: 11px;
}

.status-divider {
  color: var(--border);
}

.status-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-progress-bar {
  width: 100px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.status-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--progress, 0%);
  background: var(--btn-primary);
  border-radius: 2px;
  transition: width 200ms ease;
}

/* ===== Toast Notifications ===== */
.toast-container {
  position: fixed;
  bottom: 40px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  min-width: 280px;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  animation: toast-in 200ms ease;
}

.toast.removing {
  animation: toast-out 200ms ease forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.toast.success .toast-icon { background: var(--success); }
.toast.error .toast-icon { background: var(--error); }
.toast.info .toast-icon { background: var(--info); }
.toast.warning .toast-icon { background: var(--warning); }

.toast-message {
  flex: 1;
  color: var(--text-primary);
}

.toast-close {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 16px;
  padding: 2px;
  line-height: 1;
}

.toast-close:hover {
  color: var(--text-primary);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(16px); }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
}

.modal {
  width: 520px;
  max-width: 90vw;
  max-height: 80vh;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  font-size: 24px;
  color: var(--text-muted);
  padding: 4px;
  line-height: 1;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

/* ===== Project Cards ===== */
.project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: border-color var(--transition);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--btn-primary);
}

.project-card-info {
  flex: 1;
  min-width: 0;
}

.project-card-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-date {
  font-size: 11px;
  color: var(--text-muted);
}

.project-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.projects-empty {
  text-align: center;
  padding: 32px 0;
  color: var(--text-dim);
  font-size: 14px;
}

/* ===== Generation Overlay ===== */
.generation-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 600;
  backdrop-filter: blur(6px);
}

.generation-content {
  text-align: center;
  color: var(--text-primary);
}

.generation-content h3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: 600;
}

.generation-content p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.generation-progress {
  width: 280px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 20px auto;
  overflow: hidden;
}

.generation-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--btn-primary);
  border-radius: 2px;
  transition: width 300ms ease;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }

  .panel-map,
  .panel-3d {
    flex: none;
    height: 50%;
    min-width: unset;
  }

  .panel-divider {
    width: 100%;
    height: 5px;
    cursor: row-resize;
  }

  .sidebar {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }

  .sidebar.collapsed {
    width: 0;
  }

  .navbar-center {
    display: none;
  }
}

/* ===== MapLibre Overrides ===== */
.maplibregl-ctrl-attrib {
  font-size: 10px !important;
  background: rgba(22, 33, 62, 0.7) !important;
  color: var(--text-muted) !important;
}

.maplibregl-ctrl-attrib a {
  color: var(--text-secondary) !important;
}
