/* =============================================
   TALLAHASSEE TRAFFIC DASHBOARD - MODERN LIGHT THEME
   Clean, powerful design with dark mode option
   ============================================= */

:root {
  /* Light theme (default) */
  --bg: #f5f7fa;
  --card: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f8f9fb;
  --border: rgba(15,23,42,0.06);
  --border-bright: rgba(15,23,42,0.1);

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --muted: #94a3b8;

  /* Accents */
  --accent: #0d9488;
  --accent-light: #ccfbf1;
  --accent-2: #6366f1;
  --accent-2-light: #e0e7ff;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;

  /* Effects */
  --shadow: 0 2px 8px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 8px 32px rgba(15,23,42,0.1);
  --radius: 14px;
  --radius-sm: 10px;

  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---- Base ---- */
body {
  background: var(--bg);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Accent line at top */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 4s ease infinite;
  z-index: 9999;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

::selection {
  background: var(--accent);
  color: white;
}

/* ---- Header ---- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.app-title {
  margin: 0;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.app-sub { color: var(--muted); font-size: 13px; margin: 0; }

/* ---- Toolbar ---- */
.toolbar { display: flex; gap: 8px; align-items: center; }

/* ---- Buttons ---- */
.btn {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(13,148,136,0.2);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,148,136,0.3);
}

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(13,148,136,0.2);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--accent-light);
}

/* ---- Layout ---- */
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }
.panels { display: flex; flex-direction: column; gap: 16px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

/* ---- Panel Controls ---- */
.panel-controls {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px;
}

/* ---- Typography ---- */
.small { font-size: 12px; color: var(--muted); }
h1, h2, h3, h4, h5, h6 { color: var(--text-primary); letter-spacing: -0.01em; }

/* ---- Dropdowns ---- */
.route-dropdown { min-width: 320px; max-width: 780px; }

/* ---- Graphs ---- */
.graph { margin-top: 12px; }

/* ---- Footer ---- */
.footer {
  color: var(--muted); font-size: 12px; margin-top: 16px;
  text-align: right; padding-top: 12px; border-top: 1px solid var(--border);
}

/* ---- Checklist ---- */
.checklist-inline .dash-checklist { display: inline-flex; gap: 8px; align-items: center; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(15,23,42,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(15,23,42,0.2); }
