/* ==========================================================================
 * LPHN-openresearch-wrt · Portal Design Tokens (Light & Dark WCAG AA)
 * WHAT:   Defines cohesive Aerospace/Telemetry Cobalt & Slate color, spacing,
 *         typography, radius, and elevation CSS custom properties.
 * WHY:    Keeps visual DNA consistent with the router LuCI theme while
 *         guaranteeing >= 4.5:1 contrast across Light and Dark modes.
 * HOW:    Toggled via `html[data-theme="dark"]` before first paint.
 * REMOVE: Core stylesheet for `lphn-admin-portal`.
 * ========================================================================== */

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #eef3fa;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-2: #f6f9fd;
  --surface-solid: #ffffff;
  --line: rgba(15, 23, 42, 0.11);
  --line-soft: rgba(15, 23, 42, 0.06);

  --text-strong: #0b1324;
  --text: #1e293b;
  --muted: #526179;

  --accent: #0b63f6;
  --accent-hover: #004fd4;
  --accent-soft: rgba(11, 99, 246, 0.11);
  --accent-ink: #ffffff;

  --ok: #047857;
  --ok-soft: rgba(16, 185, 129, 0.13);
  --warn: #b45309;
  --warn-soft: rgba(245, 158, 11, 0.15);
  --danger: #dc2626;
  --danger-soft: rgba(239, 68, 68, 0.13);
  --violet: #7c3aed;
  --violet-soft: rgba(139, 92, 246, 0.13);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 18px 46px rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="dark"] {
  --bg: #050a14;
  --surface: rgba(13, 21, 38, 0.88);
  --surface-2: rgba(18, 29, 51, 0.84);
  --surface-solid: #0f192d;
  --line: rgba(148, 163, 184, 0.18);
  --line-soft: rgba(148, 163, 184, 0.09);

  --text-strong: #f1f5f9;
  --text: #dbe5f4;
  --muted: #93a4bd;

  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-soft: rgba(59, 130, 246, 0.18);
  --accent-ink: #ffffff;

  --ok: #34d399;
  --ok-soft: rgba(16, 185, 129, 0.18);
  --warn: #fbbf24;
  --warn-soft: rgba(245, 158, 11, 0.18);
  --danger: #fb7185;
  --danger-soft: rgba(244, 63, 94, 0.18);
  --violet: #c4b5fd;
  --violet-soft: rgba(139, 92, 246, 0.2);

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}
