/* ==========================================================================
   LedgerFlow Design System — CSS Custom Properties (Tokens)
   ========================================================================== */

:root {
  /* Brand & Role Accents (Slate / Indigo for Admin & Core UI) */
  --color-primary: #334155;
  --color-primary-dark: #1e293b;
  --color-primary-darker: #0f172a;
  --color-indigo: #4f46e5;
  --color-indigo-hover: #4338ca;
  --color-indigo-soft: #eef2ff;
  --color-indigo-border: #c7d2fe;

  /* Credit (Money In) — Emerald Green */
  --color-credit: #059669;
  --color-credit-dark: #047857;
  --color-credit-soft: #ecfdf5;
  --color-credit-border: #a7f3d0;

  /* Debit (Money Out) — Crimson & Amber */
  --color-debit: #dc2626;
  --color-debit-dark: #b91c1c;
  --color-debit-soft: #fef2f2;
  --color-debit-border: #fecaca;

  /* Status Semantics */
  --color-pending: #d97706;
  --color-pending-dark: #b45309;
  --color-pending-soft: #fffbeb;
  --color-pending-border: #fde68a;

  --color-approved: #059669;
  --color-approved-soft: #ecfdf5;
  --color-approved-border: #a7f3d0;

  --color-rejected: #dc2626;
  --color-rejected-soft: #fef2f2;
  --color-rejected-border: #fecaca;

  /* Neutrals & Surfaces */
  --color-bg-app: #f8fafc;
  --color-bg-surface: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-bg-hover: #f8fafc;
  --color-sidebar-bg: #0f172a;
  --color-sidebar-hover: #1e293b;
  --color-sidebar-active: #334155;
  --color-sidebar-text: #cbd5e1;
  --color-sidebar-muted: #64748b;

  /* Text Hierarchy */
  --color-text-primary: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  --color-text-inverse: #ffffff;

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-border-focus: #4f46e5;

  /* Typography */
  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Courier New", monospace;

  --fs-h1: 1.75rem;      /* 28px */
  --fs-h2: 1.375rem;     /* 22px */
  --fs-h3: 1.125rem;     /* 18px */
  --fs-h4: 1rem;         /* 16px */
  --fs-h5: 0.9375rem;    /* 15px */
  --fs-h6: 0.875rem;     /* 14px */
  --fs-body: 0.9375rem;  /* 15px */
  --fs-sm: 0.875rem;     /* 14px */
  --fs-xs: 0.75rem;      /* 12px */
  --fs-kpi: 1.625rem;    /* 26px */

  --lh-tight: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.625;

  /* Spacing Scale (0.25rem = 4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Layout Dimensions */
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --container-max: 1360px;

  /* Radii */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 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 12px 28px rgba(15, 23, 42, 0.14), 0 4px 10px rgba(15, 23, 42, 0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

