/**
 * Premium Fintech Design System — Design Tokens
 * Light gray background, white cards, yellow primary (#FACC15), 8px grid, 12–16px radius, soft shadows.
 * See docs/DESIGN-SYSTEM.md for full documentation.
 */

:root {
  /* Primary (Brand & CTAs) — premium yellow */
  --color-primary: #FACC15;
  --color-primary-rgb: 250, 204, 21;
  --color-primary-hover: #EAB308;
  --color-primary-light: rgba(250, 204, 21, 0.15);
  --color-primary-dark: #A16207;

  /* Page & surfaces */
  --color-bg-page: #F3F4F6;
  --color-bg-card: #FFFFFF;
  --color-bg-subtle: #F9FAFB;
  --color-border: #E5E7EB;
  --color-border-strong: #D1D5DB;

  /* Dark / alternate */
  --color-dark-bg: #1F2937;
  --color-dark-bg-elevated: #374151;
  --color-dark-text: #FFFFFF;
  --color-dark-muted: #9CA3AF;

  /* Text */
  --color-text-primary: #1F2937;
  --color-text-secondary: #4B5563;
  --color-text-muted: #6B7280;
  --color-text-inverse: #FFFFFF;

  /* Semantic — profit/loss & status */
  --color-success: #10B981;
  --color-success-bg: #D1FAE5;
  --color-success-border: #6EE7B7;
  --color-error: #EF4444;
  --color-error-bg: #FEE2E2;
  --color-error-border: #FCA5A5;
  --color-warning: #F59E0B;
  --color-warning-bg: #FEF3C7;
  --color-warning-border: #FDE68A;
  --color-info: #3B82F6;
  --color-info-bg: #DBEAFE;

  /* Spacing — 8px grid */
  --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;
  --space-16: 64px;

  /* Typography */
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --text-h1: 1.875rem;
  --text-h2: 1.5rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;
  --text-metric: 2rem;
  --text-metric-lg: 2.25rem;

  /* Radii — 12–16px */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows — soft, not harsh */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -4px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width: 280px;
  --topbar-height: 64px;
}
