/* ============================================================
   ESTILOS IMPACTUSNET - PADRÃO NOC PROFISSIONAL
   ============================================================ */

.status-container {
    padding: 60px 0;
    background: #f8f9fa;
    min-height: 80vh;
}

.status-board {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    margin-top: -40px;
}

/* Cabeçalho e Indicador de Atualização */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.indicator { display: flex; align-items: center; font-weight: 600; color: #333; }

.dot-pulse {
    height: 10px; width: 10px; background-color: #2ecc71;
    border-radius: 50%; margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Grid de Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* Bloco de cada Serviço */
.service-item {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

.service-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.service-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.service-logo {
    width: 20px; height: 20px;
    object-fit: contain;
}

/* --- Badges de Status (Etiquetas) --- */
.status-label {
    font-size: 0.6rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* Operacional */
.status-ok { 
    color: #2ecc71; background: #eafaf1; border-color: #2ecc71; 
}

/* Instabilidade Moderada (30%+) */
.status-warning { 
    color: #f39c12; background: #fef5e7; border-color: #f39c12; 
}

/* Instabilidade Grave (50%+) */
.status-grave { 
    color: #e67e22; background: #fdf2e9; border-color: #e67e22; 
}

/* DOWN (75%+) */
.status-alert { 
    color: #e74c3c; background: #fdf2f2; border-color: #e74c3c;
    animation: pulse-alert 1.5s infinite;
}

@keyframes pulse-alert {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* --- Container do Gráfico (Linha de Tendência) --- */
.hist-container {
    width: 100%;
    height: 50px;
    margin-top: auto;
    background: #fafafa;
    border-radius: 4px;
    overflow: hidden;
}

.status-line-svg { width: 100%; height: 100%; }

.line-path {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.6s ease, all 0.6s ease;
}

/* Cores das Linhas baseadas no estresse */
.line-ok { 
    stroke: #2ecc71; 
    filter: drop-shadow(0px 2px 2px rgba(46, 204, 113, 0.1)); 
}
.line-warning { stroke: #f39c12; }
.line-alert { stroke: #e74c3c; }

/* Histórico de Incidentes (Rodapé) */
.incident-history { margin-top: 40px; }
.incident-card {
    background: #fff; border-left: 4px solid #0056b3;
    padding: 15px; margin-bottom: 10px; border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
