 .status-bar {
    margin-top: 10px;
    padding: 5px;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #333;
    text-align: center;
}
footer {
    padding: 10px 20px;
    background-color: #343a40; /* Fond sombre */
    color: #ffffff; /* Texte blanc */
    text-align: center;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    border-top: 1px solid #444; /* Légère séparation */
}

footer p {
    margin: 0;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #17a2b8; /* Couleur de survol (bleu) */
}

footer .social-icons {
    margin-top: 5px;
}

footer .social-icons i {
    font-size: 18px;
    margin: 0 8px;
    color: #ffffff;
    cursor: pointer;
    transition: color 0.3s ease;
}

footer .social-icons i:hover {
    color: #17a2b8;
}


.row-sos {
    background-color: rgba(255, 0, 0, 0.2) !important;
    border-left: 5px solid rgba(255, 0, 0, 0.8); /* Bordure rouge */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Transition douce */
}

.row-test {
    background-color: rgba(0, 255, 0, 0.2) !important;
    border-left: 5px solid rgba(0, 255, 0, 0.8); /* Bordure verte */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.row-default {
    background-color: rgba(200, 200, 200, 0.2) !important;
    border-left: 5px solid rgba(150, 150, 150, 0.8); /* Bordure grise */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.row-sos:hover,
.row-test:hover,
.row-default:hover {
    background-color: rgba(250, 250, 150, 0.3); /* Changement de couleur au survol */
   
}







         .controls {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 20px auto;
        max-width: 90%;
    }

    .control-item {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .control-item select,
    .control-item input {
        padding: 10px;
        font-size: 1em;
        border: 1px solid #ddd;
        border-radius: 6px;
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .control-item button {
        padding: 10px 20px;
        font-size: 1em;
        background-color: #4caf50;
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .control-item button:hover {
        background-color: #45a049;
        transform: translateY(-2px);
    }
         /* Diagnostic Container */
    .diagnostic-container {
        display: flex;
        justify-content: space-around;
        margin: 20px auto;
        padding: 15px;
        max-width: 90%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 10px;
        border-left: 5px solid #4caf50;
    }

    .diagnostic-item {
        font-size: 1.2em;
        font-weight: 500;
    }
       /* Popup principale */
.popup {
    display: none; /* Par défaut, masqué */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2c2f33; /* Fond sombre */
    border-radius: 12px; /* Coins arrondis */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5); /* Ombre sombre */
    width: 90%; /* Largeur adaptable */
    max-width: 700px; /* Largeur maximale */
    z-index: 1000; /* Toujours au-dessus */
    overflow: hidden;
    animation: fadeIn 0.3s ease; /* Animation d'apparition */
}
/* Keyframes pour animation fade-in classique */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation spécifique pour les mobiles */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%); /* Commence hors de l'écran en bas */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Position finale */
    }
}

/* Utilisation de l'animation slideUp pour les appareils mobiles */
/* Media Query pour écrans mobiles */
@media (max-width: 768px) {
    .popup {
        width: 95%; /* Réduction de la largeur sur mobile */
        max-width: 320px; /* Largeur spécifique pour les petits écrans */
        animation: slideInMobile 0.4s ease; /* Glissement fluide sur mobile */
    }
}
/* Contenu de la popup */
.popup-content {
    padding: 20px;
    font-family: 'Roboto', sans-serif;
    color: #f0f0f0; /* Texte clair */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-content h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #00aaff; /* Bleu cyan moderne */
}

/* Champs alignés en parallèle */
.control-item {
    display: flex;
    justify-content: space-between; /* Aligner en parallèle */
    align-items: center;
    gap: 10px;
}

.control-item label {
    width: 30%; /* Largeur fixe pour les labels */
    font-size: 14px;
    font-weight: bold;
    color: #c0c0c0; /* Couleur grise claire */
    text-align: right; /* Alignement à droite */
}

.control-item input[type="text"] {
    width: 70%; /* Largeur fixe pour les inputs */
    padding: 10px;
    border: 1px solid #555; /* Bordure douce sombre */
    border-radius: 8px;
    font-size: 14px;
    color: #f0f0f0; /* Texte clair */
    background-color: #40444b; /* Fond sombre */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5); /* Effet enfoncé */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.control-item input[type="text"]:focus {
    border-color: #00aaff; /* Bleu cyan moderne */
    box-shadow: 0 0 5px rgba(0, 170, 255, 0.5); /* Lumière bleu */
    outline: none;
}

/* Section latence */
#latency-info {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #40444b; /* Fond sombre */
    border: 1px solid #555;
    border-radius: 8px;
    font-size: 14px;
    color: #c0c0c0; /* Texte clair */
}

/* Boutons */
.popup-content button {
    display: inline-block;
    padding: 10px 20px;
    margin: 0px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    background-color: #00aaff; /* Bleu cyan moderne */
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.popup-content button:hover {
    background-color: #008fcc; /* Bleu légèrement plus sombre */
    transform: translateY(-2px);
}

.popup-content button:active {
    background-color: #006b99; /* Bleu encore plus sombre */
    transform: translateY(1px);
}

/* Bouton fermer */
#close-search {
    background-color: #e74c3c; /* Rouge moderne */
}

#close-search:hover {
    background-color: #c0392b;
}

/* Bouton vider les résultats */
#clear-results {
    background-color: #f39c12; /* Orange pour vider */
    color: #333;
}

#clear-results:hover {
    background-color: #d35400;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries pour Responsiveness */
@media (max-width: 768px) {
    .popup {
        width: 100%;
        max-width: 95%;
    }

    .popup-content {
        padding: 15px;
    }

    .control-item {
        flex-direction: column; /* Empile les champs sur petits écrans */
        align-items: flex-start;
    }

    .control-item label,
    .control-item input[type="text"] {
        width: 100%; /* Utilise toute la largeur */
        text-align: left;
    }

    .popup-content h2 {
        font-size: 18px;
    }
}


        body {
            font-family: 'Roboto', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f9f9fb;
            color: #333;
        }

header {
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center;    /* Centre verticalement */
    padding: 10px;
    background-color: #343a40;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-direction: column; /* Met tout le contenu en colonne */
}

header h1 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 20px; /* Ajouter un espace sous le titre */
    text-align: center; /* Assure l'alignement au cas où */
    font-family: 'Roboto', sans-serif;
}

header .menu-icon {
    font-size: 24px;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.3s ease;
    margin-bottom: 10px; /* Ajouter un espace sous l'icône */
}

header .menu-icon:hover {
    transform: scale(1.2); /* Zoom au survol */
}

header .menu-controls {
    display: flex;
    flex-direction: column; /* Aligner en colonne */
    align-items: center; /* Centrer les éléments */
    gap: 20px;
    max-width: 300px; /* Largeur maximale du menu */
    margin: 0 auto; /* Centrer le menu horizontalement */
}

header .control-item.vertical-buttons {
    display: flex;
    flex-direction: column; /* Aligner les boutons verticalement */
    align-items: center; /* Centrer horizontalement */
    gap: 10px; /* Espace entre les boutons */
    width: 100%; /* Boutons prennent la largeur du conteneur */
}

header .control-item button {
    background-color: transparent;
    border: 1px solid #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%; /* Boutons s'adaptent à la largeur disponible */
    text-align: center; /* Centre le texte dans le bouton */
    max-width: 250px; /* Largeur maximale des boutons */
}

header .control-item button:hover {
    background-color: #ffffff;
    color: #343a40;
}


header .control-item button {
    background-color: transparent;
    border: 1px solid #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 200px; /* Largeur uniforme des boutons */
    text-align: center; /* Centre le texte dans le bouton */
}

header .control-item button:hover {
    background-color: #ffffff;
    color: #343a40;
}



@media (max-width: 768px) {
    header {
        padding: 6px;
        font-size: 1em; /* Réduire légèrement la taille de la police sur les petits écrans */
    }
}

@media (max-width: 480px) {
    header {
        padding: 4px;
        font-size: 0.9em; /* Réduire encore plus sur les très petits écrans */
    }
}


        header h1 {
            margin: 0;
            font-size: 2em;
            font-weight: bold;
        }

        /* Menu Hamburger */
        .menu-icon {
            position: absolute;
            top: 15px;
            right: 20px;
            cursor: pointer;
            font-size: 1.5em;
        }

  .menu-controls {
    display: none;
    flex-direction: column;
    background-color: black; /* Blanc opaque pour plus de contraste */
    position: absolute;
    top: 60px;
    right: 10px;
    width: 400px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3); /* Ombre plus visible */
    animation: fadeIn 0.5s ease; /* Animation fluide */
    z-index: 100; /* Assurez-vous qu'il soit devant d'autres éléments */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.control-item input,
.control-item select,
.control-item button {
    margin-bottom: 15px;
    font-size: 1em;
    padding: 10px;
    border: 1px solid #ccc; /* Couleur de bordure légèrement plus foncée */
    border-radius: 6px;
    width: 100%;
    background-color: #f8f8f8; /* Légèrement gris pour contraste */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1); /* Effet 3D */
}

.control-item button {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2); /* Plus prononcé */
    transition: all 0.3s ease;
}

.control-item button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Augmenter l'effet d'ombre */
}

.control-item button#clear-data-btn {
    background-color: #e53935; /* Rouge pour effacer */
}

.control-item button#clear-data-btn:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
}

/* Animation Hover des inputs */
.control-item input:hover,
.control-item select:hover {
    border-color: #4caf50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); /* Lumière verte */
}



        /* Table Styling */
     table {
    width: 90%; /* Légère augmentation de la largeur */
    margin: 15px auto;
    border-collapse: separate; /* Sépare les cellules pour des bordures distinctes */
    border-spacing: 0; /* Pas d'espaces inutiles entre les cellules */
    border: 1px solid #ccc; /* Bordure principale */
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table th,
table td {
    padding: 8px 12px; /* Plus d'espace pour une meilleure lisibilité */
    text-align: center;
    border-bottom: 1px solid #ddd; /* Bordure interne plus visible */
    font-size: 0.95em; /* Taille de police légèrement augmentée */
}

table th {
    background-color: #4caf50; /* Vert agréable pour le header */
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

table tr:hover td {
    background-color: #f1faff; /* Couleur de survol */
}

table tr:last-child td {
    border-bottom: none; /* Supprime la dernière bordure */
}

        .details-btn {
            font-size: 0.8em;
            padding: 5px 10px;
            background-color: #3b5998;
            color: white;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        .details-btn:hover {
            background-color: #2d4373;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .menu-controls {
                width: 90%;
                top: 60px;
                right: 5%;
            }

            table th, table td {
                padding: 5px 8px;
                font-size: 0.75em;
            }
        }

        .data-status {
        margin-top: 10px;
        font-size: 0.9rem;
        text-align: center;
        font-weight: bold;
        color: #333;
        background: #f1f1f1;
        padding: 5px 10px;
        border-radius: 5px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .data-status.frozen {
        background-color: rgba(255, 0, 0, 0.2); /* Rouge pâle pour l'état gelé */
        color: #ff0000; /* Texte rouge pour l'état gelé */
    }

    .data-status.running {
        background-color: rgba(0, 255, 0, 0.2); /* Vert pâle pour l'état en cours */
        color: #008000; /* Texte vert pour l'état en cours */
    }



/* Conteneur global pour les contrôles et la barre de statut */
#header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #f8f9fa; /* Couleur de fond légère */
    border-bottom: 1px solid #ddd; /* Séparation avec le contenu principal */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    margin: 0;
}

/* Alignement du calendar-container */
#calendar-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacement entre les éléments */
    margin: 0;
}

/* Champs de date dans calendar-container */
#calendar-container input[type="date"] {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #495057;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

#calendar-container input[type="date"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* Boutons dans calendar-container */
#calendar-container button {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #6c757d;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#calendar-container button:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

#calendar-container button:active {
    background-color: #4e555b;
    transform: translateY(1px);
}

/* Réduction de la largeur de la status-bar */
.status-bar {
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    background-color: #28a745; /* Vert par défaut */
    border-radius: 4px;
    min-width: 120px; /* Largeur minimale */
    max-width: 150px; /* Largeur maximale */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Couleurs dynamiques pour la barre de statut */
.status-bar.running {
    background-color: #28a745; /* Vert pour Running */
}

.status-bar.frozen {
    background-color: #dc3545; /* Rouge pour Frozen */
}

.status-bar.filtered {
    background-color: #ffc107; /* Jaune pour Filtré */
}


.status-bar:hover {
    transform: translateY(-2px);
}
.status-bar.frozen-advanced {
    background-color: red; /* Violet pour "Frozen by Advanced Search" */
    color:white;
}
.control-item button {
    padding: 10px 20px;
    margin: 5px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.control-item button:hover {
    background-color: #28a745;
    color: white;
}
#search-modal {
    display: none; /* Masqué par défaut */
    flex-wrap: nowrap; /* Ne pas autoriser le passage à la ligne */
    align-items: center;
    gap: 10px; /* Espacement entre les éléments */
    padding: 10px;
    background-color: #f8f9fa; /* Fond clair */
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    width: 100%; /* Occupe la largeur totale */
    overflow-x: auto; /* Gère les débordements horizontaux si nécessaire */
    color: black; /* Couleur du texte */
}

#search-modal .control-item {
    display: flex; /* Garde les labels et inputs alignés horizontalement */
    align-items: center;
    gap: 10px; /* Espacement entre le label et l'input */
    white-space: nowrap; /* Empêche le retour à la ligne */
}

#search-modal .control-item label {
    font-size: 14px;
    color: black; /* Couleur du texte pour les labels */
}

#search-modal .control-item input {
    width: 150px; /* Largeur des champs de saisie */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    color: black; /* Couleur du texte pour les inputs */
}

#search-modal button {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #007bff; /* Couleur bleue par défaut */
    color: black; /* Texte noir sur les boutons */
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Empêche les boutons de passer à la ligne */
}

#search-modal button:hover {
    background-color: #0056b3;
}

/* Bouton de suppression */
#clear-results {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff; /* Texte blanc */
    background-color: #f39c12; /* Orange pour le bouton de suppression */
    border: none;
    border-radius: 4px; /* Coins arrondis */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#clear-results:hover {
    background-color: #e67e22; /* Couleur légèrement plus foncée au survol */
    transform: translateY(-2px); /* Légère élévation */
}

#clear-results:active {
    background-color: #d35400; /* Couleur plus sombre à l'activation */
    transform: translateY(1px); /* Bouton enfoncé */
}

/* Bouton de fermeture */
#close-search {
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff; /* Texte blanc */
    background-color: #e74c3c; /* Rouge pour le bouton de fermeture */
    border: none;
    border-radius: 4px; /* Coins arrondis */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Ombre subtile */
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#close-search:hover {
    background-color: #c0392b; /* Couleur légèrement plus foncée au survol */
    transform: translateY(-2px); /* Légère élévation */
}

#close-search:active {
    background-color: #a93226; /* Couleur plus sombre à l'activation */
    transform: translateY(1px); /* Bouton enfoncé */
}

/* Ajout d'un espacement entre les boutons pour une meilleure lisibilité */
#search-modal button {
    margin-right: 10px; /* Espacement entre les boutons */
}

