body {
    font-family: Arial, sans-serif;
}

nav {
    background-color: white; /* Fond blanc */
    color: black;
    padding: 10px;
    border-bottom: 2px solid #333;
}

ul.menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

ul.menu li {
    position: relative;
    margin-right: 20px;
}

ul.menu li a {
    color: black;
    text-decoration: none;
    padding: 10px;
    display: block;
    display: flex;
    align-items: center;
}

ul.menu li a i {
    margin-right: 8px;
    color: #007bff; /* Bleu */
}

ul.menu li a:hover,
ul.menu li:hover > a {
    background-color: #f0f0f0;
}

ul.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    display: none;
}

ul.menu li:hover > ul.submenu {
    display: block;
}

ul.submenu li {
    margin: 0;
}

ul.submenu li a {
    white-space: nowrap;
    padding: 10px;
}

ul.submenu li a:hover {
    background-color: #f0f0f0;
}

.admin-dashboard {
    padding: 20px;
    text-align: center; /* Centrer le contenu de l'administration */
}

h2 {
    text-align: center; /* Centrer le titre sur toute la largeur */
}

h3 {
    text-align: center; /* Centrer le sous-titre */
    margin-left: auto; /* Appliquer une marge automatique */
    margin-right: auto; /* Appliquer une marge automatique */
    width: 80%; /* Définir une largeur fixe pour les sous-titres */
}

.form-actions {
    margin-bottom: 20px;
}

.status-icon.active {
    color: green;
}

.status-icon.inactive {
    color: red;
}

.btn {
    background-color: #007bff; /* Bleu */
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    width: 80%;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #007bff; /* Bleu */
    color: white;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #ddd;
}

form {
    margin: 20px auto;
    width: 80%;
    text-align: left;
}

label {
    display: block;
    margin-top: 10px;
}

input, select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    margin-top: 5px;
}

button {
    background-color: #007bff; /* Bleu */
    color: white;
    border: none;
    padding: 10px 20px;
    margin-top: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

button i {
    margin-right: 5px;
}

#editUserForm, #deleteUserForm {
    margin-top: 20px;
}

#delete_message {
    margin-bottom: 10px;
}

.fa-edit, .fa-trash-alt {
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 5px;
}

/* Styles pour les popups */
.popup {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 4px;
    text-align: center;
    max-width: 90%;
    min-width: 300px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.popup button {
    margin-top: 10px;
    margin-right: 5px;
}
