/* Styles généraux */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
}

/* Conteneur principal centré */
.container {
    margin-top: 80px;
    width: 90%;
    max-width: 600px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    box-sizing: border-box;
}

/* En-tête fixé et centré */
.header {
    width: 90%;
    max-width: 600px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8f8f8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Correction du centrage du texte */
p, h2 {
    margin: 10px 0;
    text-align: center;
}

/* Centrage du tableau */
.table-container {
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

/* Ajustement des cellules */
th, td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 16px;
}

/* En-têtes de tableau */
th {
    background-color: #007bff;
    color: white;
}

/* Boutons */
button, .btn {
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    display: inline-block;
}

button {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
}

button:hover {
    background: #0056b3;
    transform: scale(1.03);
}

/* Barre supérieure avec le nom du juge et bouton logout */
.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Bouton de déconnexion */
.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.1s ease;
}

.btn-logout:hover {
    background: #c82333;
    transform: scale(1.05);
}

/* Styles spécifiques à la page de connexion */
#login-container {
    width: 90%;
    max-width: 400px;
    margin: 10vh auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

#login-title {
    font-size: 24px;
    margin-bottom: 20px;
}

#login-form input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

#login-form button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.1s ease;
    cursor: pointer;
}

#login-form button:hover {
    background: #0056b3;
    transform: scale(1.03);
}

#error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
        margin-top: 100px;
        padding: 15px;
    }

    th, td {
        font-size: 14px;
        padding: 8px;
    }

    .btn {
        padding: 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 100%;
        margin-top: 80px;
        padding: 10px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 6px;
    }

    button, .btn {
        font-size: 14px;
        padding: 10px;
    }
}