/* ============================================================
   SAYRAX AGENT CONSOLE — Design Tokens
   Phase 1: Visual Foundation

   These custom properties define the entire visual system.
   All components reference these tokens, never raw colors or values.

   Palette: Financial Dashboard Dark (adapted for brand accent #46FA9C)
   Typography: Inter (unified across login + dashboard)
   ============================================================ */

:root {
  /* ── Backgrounds ── */
  --bg-deep: #020617;
  --bg-base: #0F172A;
  --bg-elevated: #1E293B;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-hover: rgba(255, 255, 255, 0.08);
  --bg-modal: rgba(0, 0, 0, 0.85);
  --bg-table: #0C1A33;
  --bg-table-header: #0F172A;
  --bg-guardrail: #0A1628;

  /* ── Text ── */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  /* ── Brand ── */
  --accent: #46FA9C;
  --accent-hover: #34D399;
  --accent-soft: rgba(70, 250, 156, 0.15);
  --accent-on: #020617;

  /* ── Status ── */
  --status-ok: #22C55E;
  --status-warn: #F59E0B;
  --status-error: #EF4444;
  --status-ok-soft: rgba(34, 197, 94, 0.15);
  --status-warn-soft: rgba(245, 158, 11, 0.15);
  --status-error-soft: rgba(239, 68, 68, 0.15);

  /* ── Borders ── */
  --border: #334155;
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(70, 250, 156, 0.3);

  /* ── Radius ── */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* ── Spacing ── */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* ── Typography ── */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;

  /* ── Shadows (minimal) ── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ── Z-index scale ── */
  --z-sidebar: 50;
  --z-dropdown: 100;
  --z-modal: 200;
  --z-toast: 300;
}