/* ========================================
   CSS Variables - Design Tokens
   BeautifulGrids
   ======================================== */

:root {
    /* Colors - Light Theme (default for a design tool) */
    --color-bg-primary: #FAFAFA;
    --color-bg-secondary: #FFFFFF;
    --color-bg-tertiary: #F3F4F6;
    --color-bg-input: #FFFFFF;

    /* Accent — Tool Blue */
    --color-primary: #2563EB;
    --color-primary-dark: #1D4ED8;
    --color-primary-light: #3B82F6;

    --color-success: #10B981;
    --color-success-dark: #059669;

    --color-warning: #F59E0B;
    --color-warning-dark: #D97706;

    --color-danger: #EF4444;
    --color-danger-dark: #DC2626;

    /* Text */
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #6B7280;
    --color-text-muted: #9CA3AF;

    /* Border */
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;

    /* Typography — 3+1 Scale (same as FWK)
       MICRO  12px  fine print
       BODY   14px  everything
       HEAD   18px  section titles
       TITLE  24px  page headers
    */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-2xl: 1.5rem;

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

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

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

    /* Z-Index */
    --z-header: 100;
    --z-modal: 200;
    --z-toast: 300;

    /* Layout */
    --header-height: 56px;
    --sidebar-width: 360px;
}

/* Dark theme — Monochrome with surgical glow */
[data-theme="dark"] {
    --color-bg-primary: #111113;
    --color-bg-secondary: #1A1A1E;
    --color-bg-tertiary: #232328;
    --color-bg-input: #1A1A1E;

    --color-primary: #C8C8C8;
    --color-primary-dark: #A0A0A0;
    --color-primary-light: #E0E0E0;

    --color-text-primary: #E0E0E0;
    --color-text-secondary: #8A8A8A;
    --color-text-muted: #5A5A5A;

    --color-border: #2A2A2E;
    --color-border-light: #323236;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);

    /* Glow tokens — warm amber, used sparingly */
    --glow-color: rgba(250, 204, 100, 0.08);
    --glow-border: rgba(250, 204, 100, 0.2);
    --glow-shadow: 0 0 8px rgba(250, 204, 100, 0.08);
    --glow-shadow-strong: 0 0 12px rgba(250, 204, 100, 0.14);
}
