/* Colour tokens for both views - the desktop pages (style.css imports this)
   and the phone view (templates/mobile/*, via components.css). One source,
   so the day/night toggle and every colour match between them. */

/* ---------- Theme (day/night) ---------- */
/* Dark ("night") is the default. Setting data-theme="light" on <html> (see
   the toggle in the topbar / auth pages) switches to the light ("day") theme
   below - everything else in this file references these variables, so nothing
   else needs a light-mode override. */
:root {
  /* --bg and --panel are the same colour: surfaces rely on their borders. */
  --bg: #1a1b1e;
  --panel: #1a1b1e;
  --panel-alt: #202125;
  --border: #2e3036;
  --text: #e5e7eb;
  --text-dim: #9aa3b2;
  --accent: #4f8cff;
  --danger: #ef4444;
  --warn: #f59e0b;
  --ok: #22c55e;
  /* Text on an --accent/--ok/--warn fill: dark on the bright night fills, white on the deeper day ones. */
  --on-fill: #0d0f13;
  --radius: 8px;
  /* Weekend/legal-holiday tint: blue, the one hue no code uses as a fill. */
  --weekend-bg: #1e293b;
  --weekend-header-bg: #24324a;
  --weekend-text: #f87171;
  --shift-band: #26282d;
  --week-line: #9ca3af;
  --extra-hours: #fb923c;
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-alt: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --text-dim: #5b6472;
  --accent: #2f6fe0;
  --danger: #dc2626;
  --warn: #b45309;
  --ok: #15803d;
  --on-fill: #ffffff;
  --weekend-bg: #e3edf9;
  --weekend-header-bg: #d6e4f5;
  --weekend-text: #dc2626;
  --shift-band: #eef0f3;
  --week-line: #6b7280;
  --extra-hours: #c2410c;
}
