/* ── Design tokens (default theme) ─────────────────────────────────────
   The only place colours are defined. Themes override these in themes/*.css. */

:root{
  /* Modern Color Palette */
  --bg:#f7f9fc;
  --bg-secondary:#e8eef5;
  --card:#ffffff;
  --border:#e1e8f0;
  --text:#1a2942;
  --text-secondary:#5a6c84;
  --muted:#7e8ba3;

  /* Accent Colors */
  --blue:#3b82f6;
  --blue-light:#dbeafe;
  --green:#10b981;
  --green-light:#d1fae5;
  --red:#ef4444;
  --red-light:#fee2e2;
  --purple:#8b5cf6;
  --purple-light:#ede9fe;
  --amber:#f59e0b;
  --amber-light:#fef3c7;

  --primary:#3b82f6;
  --success:#10b981;
  --danger:#ef4444;

  --radius:16px;
  --radius-sm:12px;
  --shadow:0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:0 10px 25px rgba(15, 23, 42, 0.1), 0 4px 8px rgba(15, 23, 42, 0.06);
  --radius-lg:20px;

  --card-hover:#fafbfd;
  --bg-input:#ffffff;
  --primary-dark:#2563eb;
  --primary-light:#dbeafe;
  --success-light:#d1fae5;
  --danger-light:#fee2e2;
  --warning:#f59e0b;
  --warning-light:#fef3c7;

  /* Sidebar */
  --sidebar-bg:#17191e;
  --sidebar-bg-dark:#111317;
  --sidebar-hover:rgba(255, 255, 255, 0.06);
  --sidebar-active:#3b82f6;
  --sidebar-active-bg:rgba(59, 130, 246, 0.16);

  /* Derived surfaces: computed from the theme's card/text, so every theme gets them for free */
  --surface-2:color-mix(in srgb, var(--text) 3%, var(--card));
  --surface-3:color-mix(in srgb, var(--text) 6%, var(--card));
  --border-strong:color-mix(in srgb, var(--text) 20%, var(--card));

  /* Extra accents */
  --indigo:#6366f1;
  --pink:#ec4899;
  --orange:#f97316;

  /* Figures (themes may switch to a monospace face) */
  --font-num:inherit;
}
