/**
 * AM Cloud - Global CSS Variables
 * Single source of truth for design tokens
 * Used by all pages, components, and areas
 */

:root {
    /* Brand Colors */
    --brand-primary: #667eea;
    --brand-secondary: #764ba2;
    --brand-accent: #3b82f6;
    --brand-blue: #3b82f6;
    --brand-success: #10b981;
    --brand-warning: #f59e0b;
    --brand-error: #ef4444;
    --brand-info: #06b6d4;

    /* Alpha Variants (for backgrounds) */
    --brand-blue-alpha: rgba(59, 130, 246, 0.1);
    --brand-primary-alpha: rgba(102, 126, 234, 0.1);
    --color-error-alpha: rgba(239, 68, 68, 0.1);
    --color-success-alpha: rgba(16, 185, 129, 0.1);

    /* Semantic Colors */
    --color-error: #ef4444;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-info: #06b6d4;

    /* Spacing Scale (Compact - optimized for data-dense dashboards) */
    --space-xs: 0.125rem;     /* 2px */
    --space-sm: 0.25rem;      /* 4px */
    --space-md: 0.5rem;       /* 8px */
    --space-lg: 0.75rem;      /* 12px */
    --space-xl: 1rem;         /* 16px */
    --space-2xl: 1.5rem;      /* 24px */
    --space-3xl: 2rem;        /* 32px */
    --space-4xl: 3rem;        /* 48px */

    /* Typography Scale */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'Cascadia Code', 'Consolas', 'Monaco', monospace;

    --font-size-xs: 0.6875rem;  /* 11px */
    --font-size-sm: 0.75rem;    /* 12px */
    --font-size-base: 0.8125rem; /* 13px */
    --font-size-lg: 0.875rem;   /* 14px */
    --font-size-xl: 1rem;       /* 16px */
    --font-size-2xl: 1.25rem;   /* 20px */
    --font-size-3xl: 1.5rem;    /* 24px */
    --font-size-4xl: 2rem;      /* 32px */
    --font-size-5xl: 2.5rem;    /* 40px */

    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Border Radius (Compact) */
    --radius-none: 0;
    --radius-sm: 0.125rem;    /* 2px */
    --radius-md: 0.25rem;     /* 4px */
    --radius-lg: 0.375rem;    /* 6px */
    --radius-xl: 0.5rem;      /* 8px */
    --radius-2xl: 0.75rem;    /* 12px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* Layout Breakpoints (For JS usage) */
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
}
