/* --- Barre de statut (Top Bar) --- */
.top-bar { 
    max-width: 900px; 
    margin: 0 auto 20px auto; 
    display: flex;  
    justify-content: space-between; 
    align-items: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white; 
    padding: 25px; 
    border-radius: 15px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.nav-menu_graph {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
   }

.nav-menu_graph::-webkit-scrollbar { display: none; } /* Cache la scrollbar sur mobile */

.nav-menu_graph a {
    background: #f8fafd;
    color: var(--accent-blue);
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 1.5px solid #e0e6ed;
    flex-shrink: 0;
}

.nav-menu_graph a:hover, .nav-menu_graph a.active {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
    transform: translateY(-1px);
}

/* --- Statuts et Badges --- */
.status { 
    font-weight: bold; 
    padding: 6px 16px; 
    border-radius: 20px; 
    display: inline-flex; 
    align-items: center; /* Aligne horizontalement point et texte */
    justify-content: center;
    font-size: 0.85rem;
    gap: 12px; /* L'espace de 10-12px entre le point et le texte */
    line-height: 1;
    color: white !important;
}

/* --- Le point unique dessiné en CSS --- */
.pulse { 
    display: inline-block;
    width: 10px;  /* Largeur du point */
    height: 10px; /* Hauteur du point */
    background-color: white !important; 
    border-radius: 50%;
    flex-shrink: 0; /* Empêche la déformation */
    animation: pulse-animation 2s infinite ease-in-out;
}

/* --- L'animation de pulsation --- */
@keyframes pulse-animation {
    0% { 
        opacity: 1; 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% { 
        opacity: 0.4; 
        transform: scale(1.2); 
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0);
    }
    100% { 
        opacity: 1; 
        transform: scale(1); 
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.online { background: #27ae60 !important; border: 1px solid #2ecc71; }
.offline { background: #c0392b !important; border: 1px solid #e74c3c; }

/* --- Reste du CSS (Dashboard & Cards) --- */
.dashboard { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
    max-width: 900px; 
    margin: 0 auto;
    min-height: 800px; 
}

.card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column; 
    /* Aligne les éléments enfants au centre horizontalement */
    align-items: center; 
}

.card h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
    /* Force le texte à se centrer à l'intérieur de sa propre zone */
    text-align: center; 
    width: 100%;
}

.chart-box {
    width: 100%;
    height: 250px;
    position: relative;
}