/* ==========================================================================
   HOWTO SUPORTE - NOC WALLBOARD DARK THEME (100VH ZERO-SCROLL COCKPIT)
   ========================================================================== */

:root {
    --noc-bg-dark: #0a1128;
    --noc-surface-card: #0f172a;
    --noc-surface-border: #1e293b;
    --noc-surface-hover: #1e293b;
    --noc-neon-green: #10b981;
    --noc-neon-amber: #f59e0b;
    --noc-neon-danger: #ef4444;
    --noc-neon-cyan: #38bdf8;
    --noc-brand-accent: #84BD00;
    --noc-text-primary: #f8fafc;
    --noc-text-secondary: #94a3b8;
}

body.noc-active-body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
    background-color: var(--noc-bg-dark);
    color: var(--noc-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    user-select: none;
}

.noc-viewport-root {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
    background-color: var(--noc-bg-dark);
    padding: 8px 12px;
    gap: 8px;
    color: var(--noc-text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* 1. Header Superior do NOC (44px) */
.noc-header-bar {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--noc-surface-card);
    border: 1px solid var(--noc-surface-border);
    border-radius: 8px;
    padding: 0 16px;
    flex-shrink: 0;
}

.noc-brand-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--noc-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.noc-clock-display {
    font-family: 'Rajdhani', monospace;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--noc-neon-cyan);
    letter-spacing: 1.5px;
}

/* 2. Fita de KPIs Superiores (76px) */
.noc-kpi-ribbon {
    height: 76px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    flex-shrink: 0;
}

.noc-kpi-card {
    background-color: var(--noc-surface-card);
    border: 1px solid var(--noc-surface-border);
    border-radius: 8px;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    min-height: 0;
}

.noc-kpi-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 2.1rem;
    line-height: 1;
}

.noc-kpi-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--noc-text-secondary);
    letter-spacing: 0.5px;
}

/* 3. Grid Central de Monitoramento */
.noc-main-grid {
    display: grid;
    grid-template-columns: 58% calc(42% - 10px);
    gap: 10px;
    flex: 1;
    min-height: 0; /* Previne overflow no CSS Grid */
}

.noc-panel-container {
    background-color: var(--noc-surface-card);
    border: 1px solid var(--noc-surface-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.noc-panel-header {
    height: 38px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--noc-surface-border);
    background-color: rgba(30, 41, 59, 0.4);
    flex-shrink: 0;
}

.noc-panel-title {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--noc-text-primary);
}

.noc-panel-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

/* Custom Scrollbar Fina e Transparente */
.noc-panel-scrollable::-webkit-scrollbar {
    width: 5px;
}
.noc-panel-scrollable::-webkit-scrollbar-track {
    background: transparent;
}
.noc-panel-scrollable::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

/* 4. Cards de Incidentes Críticos P1/P2 */
.noc-ticket-card {
    background-color: #0b1329;
    border: 1px solid var(--noc-surface-border);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.noc-ticket-card.safe {
    border-left: 4px solid var(--noc-neon-green);
}

.noc-ticket-card.warning {
    border-left: 4px solid var(--noc-neon-amber);
    background-color: rgba(245, 158, 11, 0.05);
}

.noc-ticket-card.critical {
    border-left: 4px solid var(--noc-neon-danger);
    background-color: rgba(239, 68, 68, 0.10);
    animation: noc-pulse-danger 1.8s infinite;
}

.noc-ticket-card.paused {
    border-left: 4px solid var(--noc-neon-cyan);
    opacity: 0.85;
}

@keyframes noc-pulse-danger {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.noc-timer-countdown {
    font-family: 'Rajdhani', monospace;
    font-weight: 700;
    font-size: 1.45rem;
    letter-spacing: 1px;
}

/* 5. Painel Direito Superior, Central e Inferior */
.noc-right-column {
    display: grid;
    grid-template-rows: 1.1fr 1fr 1.1fr;
    gap: 8px;
    min-height: 0;
}

/* 6. Indicador de Conexão WebSocket / Pulsante */
.noc-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.noc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--noc-neon-green);
    box-shadow: 0 0 8px var(--noc-neon-green);
    animation: noc-dot-blink 1.5s infinite ease-in-out;
}

.noc-live-dot.warning {
    background-color: var(--noc-neon-amber);
    box-shadow: 0 0 8px var(--noc-neon-amber);
}

.noc-live-dot.danger {
    background-color: var(--noc-neon-danger);
    box-shadow: 0 0 8px var(--noc-neon-danger);
}

@keyframes noc-dot-blink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* 7. Responsividade Específica para Tablets (1024x768 e 1280x800) */
@media (max-width: 1280px) {
    .noc-kpi-value {
        font-size: 1.8rem;
    }
    .noc-clock-display {
        font-size: 1.2rem;
    }
    .noc-timer-countdown {
        font-size: 1.25rem;
    }
    .noc-main-grid {
        grid-template-columns: 55% calc(45% - 10px);
    }
}
