/* ENS design tokens, extracted VERBATIM from superadmin/static/css/theme.css.
   Generated, not hand-written: tests/unit/test_msp_console_theme_parity.py
   regenerates this and fails if it drifts, so the MSP console and the rest of
   the product cannot end up on two different palettes.
   Only the token blocks are vendored. theme.css also carries component rules
   (html:not(.dark) body, a, code, pre, scrollbars and a universal * rule) that
   would fight this console's own layout, so they are deliberately excluded. */
:root {
    /* ========================================
     * COLOR PALETTE
     * ======================================== */

    /* Primary Colors - Navy */
    --color-primary: #0F2B5B;
    --color-primary-dark: #091a38;
    --color-primary-darker: #061127;
    --color-primary-light: #3d83f6;
    --color-primary-lighter: #7aabff;
    --color-primary-pale: #b2cdff;

    /* Secondary Colors - Cyan */
    --color-secondary: #00B4D8;
    --color-secondary-dark: #0891b2;
    --color-secondary-darker: #0e7490;
    --color-secondary-light: #22d3ee;
    --color-secondary-lighter: #67e8f9;

    /* Accent Colors */
    --color-accent: #f59e0b;
    --color-accent-dark: #d97706;
    --color-accent-light: #fbbf24;

    /* Purple Accent */
    --color-purple: #1a65d6;
    --color-purple-dark: #0c2249;
    --color-purple-light: #3d83f6;

    /* Background Colors - Light Theme (default) */
    --color-bg-dark: #F0F4F8;
    --color-bg-darker: #e2e8f0;
    --color-bg-card: rgba(255, 255, 255, 0.8);
    --color-bg-elevated: #ffffff;
    --color-bg-hover: rgba(0, 0, 0, 0.04);
    --color-bg-glass: rgba(255, 255, 255, 0.72);
    --color-bg-glass-light: rgba(255, 255, 255, 0.6);

    /* Text Colors */
    --color-text-primary: #1e293b;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;
    --color-text-disabled: #cbd5e1;

    /* Border Colors */
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.05);
    --color-border-strong: rgba(0, 0, 0, 0.12);
    --color-border-hover: rgba(0, 0, 0, 0.15);

    /* Status Colors */
    --color-success: #10b981;
    --color-success-dark: #059669;
    --color-success-light: #34d399;
    --color-success-bg: rgba(16, 185, 129, 0.1);

    --color-warning: #f59e0b;
    --color-warning-dark: #d97706;
    --color-warning-light: #fbbf24;
    --color-warning-bg: rgba(245, 158, 11, 0.1);

    --color-danger: #ef4444;
    --color-danger-dark: #dc2626;
    --color-danger-light: #f87171;
    --color-danger-bg: rgba(239, 68, 68, 0.1);

    --color-info: #3b82f6;
    --color-info-dark: #2563eb;
    --color-info-light: #60a5fa;
    --color-info-bg: rgba(59, 130, 246, 0.1);

    /* Severity Colors */
    --color-critical: #dc2626;
    --color-high: #f59e0b;
    --color-medium: #eab308;
    --color-low: #3b82f6;

    /* ========================================
     * GRADIENTS
     * ======================================== */

    --gradient-primary: linear-gradient(135deg, #0F2B5B 0%, #1a65d6 50%, #00B4D8 100%);
    --gradient-primary-hover: linear-gradient(135deg, #091a38 0%, #0c2249 50%, #0891b2 100%);
    --gradient-secondary: linear-gradient(135deg, #00B4D8 0%, #0891b2 100%);
    --gradient-purple: linear-gradient(135deg, #1a65d6 0%, #0c2249 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);

    /* Background Gradients */
    --gradient-bg: none;

    /* ========================================
     * TYPOGRAPHY
     * ======================================== */

    /* Font Families */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

    /* Font Sizes */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.25rem;     /* 36px */
    --font-size-5xl: 3rem;        /* 48px */

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* ========================================
     * SPACING SCALE (8px base)
     * ======================================== */

    --spacing-0: 0;
    --spacing-1: 0.25rem;   /* 4px */
    --spacing-2: 0.5rem;    /* 8px */
    --spacing-3: 0.75rem;   /* 12px */
    --spacing-4: 1rem;      /* 16px */
    --spacing-5: 1.25rem;   /* 20px */
    --spacing-6: 1.5rem;    /* 24px */
    --spacing-8: 2rem;      /* 32px */
    --spacing-10: 2.5rem;   /* 40px */
    --spacing-12: 3rem;     /* 48px */
    --spacing-16: 4rem;     /* 64px */
    --spacing-20: 5rem;     /* 80px */
    --spacing-24: 6rem;     /* 96px */

    /* ========================================
     * BORDER RADIUS
     * ======================================== */

    --radius-sm: 0.5rem;     /* 8px */
    --radius-md: 0.75rem;    /* 12px */
    --radius-lg: 1rem;       /* 16px */
    --radius-xl: 1.25rem;    /* 20px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* ========================================
     * SHADOWS
     * ======================================== */

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* Glow Shadows */
    --shadow-glow-primary: 0 0 20px rgba(0, 180, 216, 0.15);
    --shadow-glow-secondary: 0 0 20px rgba(0, 180, 216, 0.15);
    --shadow-glow-danger: 0 0 20px rgba(239, 68, 68, 0.15);

    /* ========================================
     * GLASSMORPHISM EFFECTS
     * ======================================== */

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-bg-strong: rgba(255, 255, 255, 0.98);
    --glass-blur: blur(12px);
    --glass-blur-strong: blur(20px);

    /* ========================================
     * TRANSITIONS
     * ======================================== */

    --transition-fast: 150ms ease-in-out;
    --transition-normal: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;

    /* ========================================
     * Z-INDEX LAYERS
     * ======================================== */

    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;

    /* ========================================
     * LAYOUT DIMENSIONS
     * ======================================== */

    --sidebar-width: 260px;
    --sidebar-width-collapsed: 64px;
    --header-height: 64px;
    --page-padding: 2rem;
    --content-max-width: 1600px;
}

html.dark {
    --color-bg-dark: #0A1628;
    --color-bg-darker: #061127;
    --color-bg-card: #1E293B;
    --color-bg-elevated: #1e293b;
    --color-bg-hover: #334155;
    --color-bg-glass: rgba(15, 23, 42, 0.8);
    --color-bg-glass-light: rgba(30, 41, 59, 0.6);

    --color-text-primary: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-tertiary: #94a3b8;
    --color-text-muted: #64748b;
    --color-text-disabled: #475569;

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.05);
    --color-border-strong: rgba(255, 255, 255, 0.12);
    --color-border-hover: rgba(255, 255, 255, 0.15);

    --gradient-bg: radial-gradient(circle at 20% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
                   radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4),
                 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5),
                 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5),
                 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);

    --shadow-glow-primary: 0 0 20px rgba(0, 180, 216, 0.3),
                           0 0 40px rgba(0, 180, 216, 0.15);
    --shadow-glow-secondary: 0 0 20px rgba(6, 182, 212, 0.3),
                             0 0 40px rgba(6, 182, 212, 0.15);
    --shadow-glow-danger: 0 0 20px rgba(239, 68, 68, 0.3),
                          0 0 40px rgba(239, 68, 68, 0.15);

    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-bg-light: rgba(30, 41, 59, 0.6);
    --glass-bg-strong: rgba(15, 23, 42, 0.95);
}
