/* ============================================
   CMMS Industrial - Dark Theme
   Design System Industrial - ISO Compliant
   ============================================ */

:root {
    /* Paleta Principal - Dark Mode */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-tertiary: #1a2332;
    --bg-card: #1e293b;
    --bg-hover: #243447;
    --bg-input: #162030;
    
    /* Cores de Status Industrial (ISO Standard) */
    --status-planejada: #3498db;
    --status-planejada-bg: rgba(52, 152, 219, 0.15);
    --status-executando: #f1c40f;
    --status-executando-bg: rgba(241, 196, 15, 0.15);
    --status-atrasada: #e74c3c;
    --status-atrasada-bg: rgba(231, 76, 60, 0.15);
    --status-concluida: #2ecc71;
    --status-concluida-bg: rgba(46, 204, 113, 0.15);
    
    /* Cores de Interface */
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    /* Cores de Acento */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    
    /* Cores de Feedback */
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    /* Bordas */
    --border-color: #334155;
    --border-light: #475569;
    
    /* Sombras */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    
    /* Efeitos */
    --glow-blue: 0 0 15px rgba(59, 130, 246, 0.3);
    --glow-green: 0 0 15px rgba(16, 185, 129, 0.3);
    --glow-red: 0 0 15px rgba(239, 68, 68, 0.3);
    
    /* Tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Dimensões */
    --sidebar-width: 260px;
    --sidebar-collapsed: 60px;
    --header-height: 60px;
    
    /* Transições */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Border Radius (Forçado para 0 - Padrão Industrial Quadrado) */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --radius-xl: 0;
    --radius-full: 0;
}

/* Reset Global */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    color: var(--text-primary);
    overflow: hidden;
    height: 100%;
    width: 100%;
    line-height: 1.5;
}

/* Scrollbar Personalizada */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Utilitários */
.screen {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.screen.active {
    display: flex;
    animation: dark-fadeIn var(--transition-normal) ease;
    z-index: 100;
    position: relative;
}

@keyframes dark-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Links */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-cyan);
}

/* Seleção de texto */
::selection {
    background: var(--accent-blue);
    color: white;
}

/* Focus visível para acessibilidade */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}
