:root {
  /* Color Palette - High Contrast Light Mode */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-raised: #ffffff;
  --bg-surface-sunken: #f1f5f9;
  --bg-zebra: #f8fafc;
  --bg-hover: #e2e8f0;
  --bg-active: #cbd5e1;

  --border-subtle: #e2e8f0;
  --border-default: #cbd5e1;
  --border-strong: #94a3b8;
  --border-focus: #2563eb;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Brand / Primary (Deep Navy / Indigo) */
  --primary: #1e3a8a;
  --primary-hover: #1e40af;
  --primary-active: #172554;
  --primary-light: #dbeafe;
  --primary-text: #ffffff;

  /* Semantic Financial States */
  --color-credit: #059669;
  --color-credit-bg: #ecfdf5;
  --color-credit-border: #a7f3d0;

  --color-debit: #dc2626;
  --color-debit-bg: #fef2f2;
  --color-debit-border: #fecaca;

  --color-warn: #d97706;
  --color-warn-bg: #fffbeb;
  --color-warn-border: #fde68a;

  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;
  --color-info-border: #bae6fd;

  /* Currency Badge Tokens */
  --badge-ars-bg: #e2e8f0;
  --badge-ars-text: #1e293b;
  --badge-usd-bg: #dcfce7;
  --badge-usd-text: #249e53;
  --badge-eur-bg: #e0e7ff;
  --badge-eur-text: #3730a3;
  --badge-crypto-bg: #fef3c7;
  --badge-crypto-text: #92400e;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'Roboto Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --font-size-2xs: 0.6875rem;
  /* 11px */
  --font-size-xs: 0.75rem;
  /* 12px */
  --font-size-sm: 0.8125rem;
  /* 13px */
  --font-size-base: 0.875rem;
  /* 14px */
  --font-size-md: 1rem;
  /* 16px */
  --font-size-lg: 1.125rem;
  /* 18px */
  --font-size-xl: 1.25rem;
  /* 20px */
  --font-size-2xl: 1.5rem;
  /* 24px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --space-1: 0.25rem;
  /* 4px */
  --space-2: 0.5rem;
  /* 8px */
  --space-3: 0.75rem;
  /* 12px */
  --space-4: 1rem;
  /* 16px */
  --space-5: 1.25rem;
  /* 20px */
  --space-6: 1.5rem;
  /* 24px */
  --space-8: 2rem;
  /* 32px */

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 9999px;

  /* Shadows (Material Elevation) */
  --elevation-1: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --elevation-2: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --elevation-3: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --elevation-pinned: 4px 0 6px -2px rgba(0, 0, 0, 0.12);

  /* Layout Dimensions */
  --header-height: 56px;
  --drawer-width: 250px;
  --drawer-collapsed-width: 64px;
  --z-sticky: 10;
  --z-header: 20;
  --z-drawer: 30;
  --z-dialog: 100;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-canvas: #090d16;
    --bg-surface: #111827;
    --bg-surface-raised: #1f2937;
    --bg-surface-sunken: #0b1120;
    --bg-zebra: #141d2e;
    --bg-hover: #1f293d;
    --bg-active: #283548;

    --border-subtle: #1f2937;
    --border-default: #374151;
    --border-strong: #4b5563;
    --border-focus: #3b82f6;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --primary-active: #2563eb;
    --primary-light: #1e3a8a;
    --primary-text: #ffffff;

    --color-credit: #10b981;
    --color-credit-bg: #064e3b;
    --color-credit-border: #047857;

    --color-debit: #ef4444;
    --color-debit-bg: #450a0a;
    --color-debit-border: #991b1b;

    --color-warn: #f59e0b;
    --color-warn-bg: #451a03;
    --color-warn-border: #78350f;

    --badge-ars-bg: #334155;
    --badge-ars-text: #e2e8f0;
    --badge-usd-bg: #064e3b;
    --badge-usd-text: #86efac;
    --badge-eur-bg: #312e81;
    --badge-eur-text: #c7d2fe;
    --badge-crypto-bg: #78350f;
    --badge-crypto-text: #fde68a;
  }
}