/* Fichier CSS principal */

/* Importation des fichiers CSS spécifiques */
@import url('utilities.css');
@import url('buttons.css');
@import url('navbar.css');
@import url('flash.css');
@import url('liste_stations.css');

/* Autres styles globaux */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 5px;
    /* Compense la hauteur du menu fixe */
    padding: 30px 5px 5px;
    line-height: 1.6;
}

.css-loader {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ccc;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}

/* --- Styles pour le formulaire de connexion --- */

/* Conteneur centré */
.form-login {
    max-width: 500px;
    margin: 28px auto;
    background: #ffffff;
    padding: 22px 20px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(19, 30, 46, 0.08);
    border: 1px solid rgba(19, 30, 46, 0.04);
}

.form-login h1 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.4rem;
    color: #13202d;
    text-align: center;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: #32414a;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #d6dde3;
    border-radius: 6px;
    background: #fbfdff;
    font-size: 0.95rem;
    color: #13202d;
    transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2b9af3;
    box-shadow: 0 0 0 3px rgba(43,154,243,0.12);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: #32414a;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
}

.form-actions .btn {
    padding: 10px 16px;
    font-size: 0.98rem;
    border-radius: 6px;
    cursor: pointer;
    background: linear-gradient(180deg, #2b9af3 0%, #1678d7 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 12px rgba(43,154,243,0.18);
}

.form-actions .btn:hover {
    transform: translateY(-1px);
}

.forgot-link {
    color: #1678d7;
    text-decoration: none;
    font-size: 0.92rem;
}

.forgot-link:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .form-login {
        margin: 18px 12px;
        padding: 16px;
    }

    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .form-actions .btn {
        width: 100%;
    }

    .forgot-link {
        text-align: center;
        display: block;
        margin-bottom: 8px;
    }
}


tr.row-active {
    background-color: #d4edda; /* vert clair */
}
tr.row-inactive {
    background-color: #e2e3e5; /* gris clair */
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    padding: 0;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}
