/* =======================================================
   INDICADORES DE STATUS - NETVOO SOLUÇÕES EM TI
   Arquivo: assets/css/status-indicators.css
   Última Modificação: v1.0 - 21/08/2025 18:40:00
   ======================================================= */

.status-indicators-container {
    background: linear-gradient(135deg, #01050d 0%, #0a0f1a 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 40px 0;
    border: 2px solid #1a1f2a;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.status-indicators-title {
    text-align: center;
    color: #f91d2d;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.status-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.status-indicator {
    background: #1a1f2a;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border-left: 5px solid #007bff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.status-indicator:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.status-indicator.online {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #1a1f2a 0%, #0a0f1a 100%);
}

.status-indicator.offline {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #1a1f2a 0%, #0a0f1a 100%);
}

.status-indicator h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-badge.online {
    background: linear-gradient(135deg, #ffff00 0%, #ffd700 100%);
    color: #000000;
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3);
}

.status-badge.offline {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.status-indicator.online .status-badge.online {
    animation: pulse-online 2s infinite;
}

.status-indicator.offline .status-badge.offline {
    animation: pulse-offline 2s infinite;
}

.status-description {
    color: #f91d2d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 10px;
    opacity: 0.9;
}

.status-update-info {
    text-align: center;
    color: #17a2b8;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 20px;
    padding: 15px;
    background: #1a1f2a;
    border-radius: 10px;
    border: 1px solid #17a2b8;
}

.status-update-info i {
    margin-right: 8px;
    color: #f91d2d;
}

/* Animações */
@keyframes pulse-online {
    0% { box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 255, 0, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(255, 255, 0, 0.3); }
}

@keyframes pulse-offline {
    0% { box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(220, 53, 69, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3); }
}

/* Responsividade */
@media (max-width: 768px) {
    .status-indicators-container {
        padding: 20px;
        margin: 20px 0;
    }
    
    .status-indicators-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .status-indicators-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .status-indicator {
        padding: 15px;
    }
    
    .status-indicator h4 {
        font-size: 1rem;
    }
    
    .status-badge {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
}

/* Estados de carregamento */
.status-indicator.loading {
    opacity: 0.7;
    pointer-events: none;
}

.status-indicator.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f91d2d;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
