/* ===========================
   Status Operadora — Design Tokens
   Centralização de variáveis CSS globais para escalabilidade.
   =========================== */

:root {
    /* Colors - Brand (Premium Blue/Cyan) */
    --primary: #0ea5e9;
    --primary-rgb: 14, 165, 233;
    --primary-light: #38bdf8;
    --primary-dark: #0284c7;
    --brand-purple: #4f46e5;
    --brand-purple-rgb: 79, 70, 229;
    --accent: var(--primary);

    /* Colors - Semantic */
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --info: #3b82f6;
    --info-rgb: 59, 130, 246;
    --orange: #f97316;

    /* Colors - Neutrals (Light Theme) */
    --bg: #f4f5f8;
    --bg-rgb: 244, 245, 248;
    --card-bg: #ffffff;
    --card-bg-rgb: 255, 255, 255;
    --text: #222638;
    --text-rgb: 34, 38, 56;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e2e4eb;
    --border-light: #f0f2f5;
    --sidebar-bg: #262a3c;
    --sidebar-hover: rgba(var(--primary-rgb), 0.12);
    --sidebar-active: rgba(var(--primary-rgb), 0.18);

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

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-xs: 0.69rem;
    --font-sm: 0.75rem;
    --font-md: 0.81rem;
    --font-lg: 0.875rem;
    --font-xl: 1.125rem;
    --font-xxl: 1.5rem;
    --font-bold: 700;
    --font-semibold: 600;
    --font-medium: 500;

    /* Shadows & Radii */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 240px;

    /* Tier Colors (RGB components for transparency control) */
    --tier-basic-rgb: 59, 130, 246;      /* Blue */
    --tier-plus-rgb: 16, 185, 129;       /* Green */
    --tier-ultra-rgb: 124, 58, 237;      /* Purple */
    --tier-enterprise-rgb: 14, 165, 233;   /* Sky */
    --tier-admin-rgb: 244, 63, 94;       /* Rose/Red */

    /* KPI Icon Backgrounds */
    --kpi-icon-info-bg:    rgba(59, 130, 246, 0.12);
    --kpi-icon-success-bg: rgba(16, 185, 129, 0.12);
    --kpi-icon-danger-bg:  rgba(239, 68, 68, 0.12);
    --kpi-icon-success-soft-bg: rgba(16, 185, 129, 0.08);
    --kpi-icon-purple-bg:  rgba(139, 92, 246, 0.12);

    /* Chart Palette — consumido via getComputedStyle no JS */
    --chart-color-1: #3b82f6;
    --chart-color-2: #10b981;
    --chart-color-3: #f59e0b;
    --chart-color-4: #ef4444;
    --chart-color-5: #8b5cf6;
    --chart-color-6: #ec4899;
    --chart-color-7: #06b6d4;

    /* Active filter chip */
    --filter-chip-bg:     rgba(59, 130, 246, 0.1);
    --filter-chip-border: rgba(59, 130, 246, 0.2);
}

/* Dark Theme Tokens Overrides */
[data-theme="dark"] {
    --bg: #0b0f19;
    --bg-rgb: 11, 15, 25;
    --card-bg: #111827;
    --card-bg-rgb: 17, 24, 39;
    --text: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #1e293b;
    --border-light: #0f172a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5);

    /* Skeleton Tokens Dark */
    --skeleton-bg: #2d3748;
    --skeleton-shimmer: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
}
