/* ============================================================
   Fruxinfo Desk — THEME TOKENS
   This is the ONLY file to touch when changing the look.
   Every colour / radius / font used by app.css comes from here.
   Light is the default; dark is [data-theme="dark"] on <html>.
   ============================================================ */
:root {
  /* Brand */
  --primary: #1F4FD8;
  --primary-hover: #1941B5;
  --primary-soft: #E8EEFF;          /* light tint for active nav / chips */
  --on-primary: #FFFFFF;

  /* Page & surfaces */
  --bg: #F5F7FA;                    /* page background */
  --surface: #FFFFFF;               /* cards, tables */
  --surface-2: #F8FAFC;             /* table header, subtle fills */
  --surface-3: #EEF2F7;             /* hover rows, segmented bg */
  --border: #E5E8EE;
  --border-strong: #CBD2DC;

  /* Sidebar */
  --sidebar-bg: #0F172A;
  --sidebar-text: #CBD5E1;
  --sidebar-muted: #7C8798;
  --sidebar-active-bg: #1E293B;
  --sidebar-active-text: #FFFFFF;
  --sidebar-border: #1E293B;

  /* Text */
  --text: #1F2937;
  --text-muted: #6B7280;
  --text-faint: #9CA3AF;
  --heading: #111827;

  /* Semantic */
  --success: #16A34A;  --success-soft: #DCFCE7;  --on-success-soft: #15803D;
  --danger:  #DC2626;  --danger-soft:  #FEE2E2;  --on-danger-soft:  #B91C1C;
  --warning: #D97706;  --warning-soft: #FEF3C7;  --on-warning-soft: #B45309;
  --info:    #2563EB;  --info-soft:    #DBEAFE;  --on-info-soft:    #1D4ED8;
  --neutral: #6B7280;  --neutral-soft: #F1F5F9;  --on-neutral-soft: #475569;
  --purple:  #7C3AED;  --purple-soft:  #EDE9FE;  --on-purple-soft:  #6D28D9;

  /* Inputs */
  --input-bg: #FFFFFF;
  --input-border: #D1D5DB;
  --input-focus: var(--primary);
  --input-focus-ring: rgba(31, 79, 216, .18);
  --placeholder: #9CA3AF;

  /* Shape & effects */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 4px 16px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .18);
  --overlay: rgba(15, 23, 42, .45);

  /* Typography */
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --fs-xs: 11px; --fs-sm: 12.5px; --fs: 13.5px; --fs-md: 14.5px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px;

  /* Layout */
  --sidebar-w: 240px;
  --topbar-h: 64px;
  --gutter: 24px;
  --row-h: 44px;
}

[data-theme="dark"] {
  --primary: #5B86F5;
  --primary-hover: #7399F7;
  --primary-soft: #1B2A52;
  --on-primary: #FFFFFF;

  --bg: #0B1220;
  --surface: #111A2E;
  --surface-2: #16213A;
  --surface-3: #1C2A47;
  --border: #22304D;
  --border-strong: #33446A;

  --sidebar-bg: #070D1A;
  --sidebar-text: #B6C2D6;
  --sidebar-muted: #6B778C;
  --sidebar-active-bg: #16213A;
  --sidebar-active-text: #FFFFFF;
  --sidebar-border: #16213A;

  --text: #E5E9F2;
  --text-muted: #9AA6BC;
  --text-faint: #6B778C;
  --heading: #F3F5F9;

  --success: #34D399;  --success-soft: #0F2E23;  --on-success-soft: #6EE7B7;
  --danger:  #F87171;  --danger-soft:  #3A1518;  --on-danger-soft:  #FCA5A5;
  --warning: #FBBF24;  --warning-soft: #3A2A0B;  --on-warning-soft: #FCD34D;
  --info:    #60A5FA;  --info-soft:    #122546;  --on-info-soft:    #93C5FD;
  --neutral: #94A3B8;  --neutral-soft: #1C2A47;  --on-neutral-soft: #CBD5E1;
  --purple:  #A78BFA;  --purple-soft:  #2A1F4D;  --on-purple-soft:  #C4B5FD;

  --input-bg: #0F1829;
  --input-border: #2A3A5C;
  --input-focus-ring: rgba(91, 134, 245, .25);
  --placeholder: #6B778C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
  --overlay: rgba(0, 0, 0, .6);
}
