/* =============================================
   VARIABLES - Componente Compartilhado
   /shared/variables.css

   Variaveis CSS globais para tema dark neon
   Usado em: todos os paineis administrativos
   ============================================= */

:root {
    /* ===== CORES NEON ===== */
    --neon-blue: #00D4FF;
    --neon-cyan: #00D4FF;
    --neon-green: #00FF88;
    --neon-red: #FF0055;
    --neon-yellow: #FFD700;
    --neon-purple: #9945FF;
    --neon-orange: #FF6B35;

    /* ===== CORES SEMANTICAS ===== */
    --color-success: #10B981;
    --color-danger: #EF4444;
    --color-warning: #F97316;
    --color-info: #3B82F6;
    --color-neutral: #3B82F6;
    --color-primary: #8B5CF6;

    /* ===== BACKGROUNDS ===== */
    --dark-bg: #0a0e1a;
    --darker-bg: #060812;
    --card-bg: #111827;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Aliases para compatibilidade */
    --color-bg-primary: #0a0e1a;
    --color-bg-secondary: #111827;
    --color-bg-tertiary: rgba(255, 255, 255, 0.05);

    /* ===== TEXTO ===== */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-tertiary: rgba(255, 255, 255, 0.4);

    /* Aliases para compatibilidade */
    --color-text-primary: #ffffff;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-tertiary: rgba(255, 255, 255, 0.4);
    --color-text-muted: rgba(255, 255, 255, 0.3);

    /* ===== BORDAS ===== */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-light: rgba(255, 255, 255, 0.05);

    /* ===== SOMBRAS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.3);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.37);

    /* ===== ESPACAMENTO ===== */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --radius-pill: 50px;

    /* ===== TRANSICOES ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s ease;
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    /* ===== TIPOGRAFIA ===== */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Orbitron', monospace;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;

    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.6;

    /* ===== Z-INDEX HIERARCHY =====
       Sistema hierarquico de z-index para evitar conflitos.
       SEMPRE usar estas variaveis ao inves de valores hardcoded.
       Ordem: base < dropdown < sticky < navbar < modal < toast < loading
    */
    --z-base: 1;
    --z-dropdown: 1000;        /* Custom selects, menus dropdown */
    --z-sticky: 1020;          /* Colunas sticky em tabelas */
    --z-navbar: 1030;          /* Navbar fixa */
    --z-modal-backdrop: 1040;  /* Backdrop escuro do modal */
    --z-modal: 1050;           /* Conteudo do modal */
    --z-toast: 1060;           /* Notificacoes toast */
    --z-tooltip: 1070;         /* Tooltips */
    --z-loading: 1080;         /* Overlay de loading (acima de tudo) */
    --z-max: 9999;             /* Apenas para casos extremos */

    /* Aliases para compatibilidade */
    --z-fixed: 1020;

    /* ===== NAVBAR ===== */
    --navbar-height: 70px;
    --navbar-padding: 20px 40px;

    /* ===== GRADIENTES ===== */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), #57D4CA);
    --gradient-neon: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    --gradient-success: linear-gradient(135deg, var(--neon-green), #38f9d7);
    --gradient-danger: linear-gradient(135deg, var(--neon-red), #ff4444);
}

/* ===== DARK MODE (padrao) ===== */
/* O sistema ja usa dark mode por padrao, mas incluido para compatibilidade futura */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #0a0e1a;
        --card-bg: #111827;
    }
}
