/* Style global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #007BFF;
    color: white;
    position: fixed;
    height: 100%;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    color: white;
    font-size: 1.5em;
    margin-bottom: 30px;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin: 15px 0;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.sidebar nav ul li a i {
    margin-right: 10px;
}

.sidebar nav ul li a:hover {
    background-color: #0056b3;
    padding: 10px;
    border-radius: 5px;
}

/* Contenu principal */
.main-content {
    margin-left: 260px;
    padding: 20px;
}

header h1 {
    font-size: 2em;
    color: #007BFF;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.stat-card {
    background-color: white;
    padding: 20px;
    width: 22%;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 1.5em;
    color: #007BFF;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1.2em;
    color: #333;
}

.stat-icon {
    font-size: 2.5em;
    color: #007BFF;
    margin-bottom: 10px;
}

footer {
    background-color: #007BFF;
    color: white;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

/* Styles pour la page de connexion et d'inscription */
.login-container, .register-container {
    width: 400px;
    margin: 100px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.login-container h2, .register-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #007BFF;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

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

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #005f99;
    color: white;
}

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

tbody tr:hover {
    background-color: #f1f1f1;
}

a {
    text-decoration: none;
    color: #005f99;
}
/* Style global */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 50px auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    color: #1E90FF;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 10px 0 5px;
    color: #333;
    font-weight: bold;
}

input[type="text"],
input[type="file"],
input[type="checkbox"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 10px;
}

button[type="submit"] {
    background-color: #1E90FF;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #1c7ed6;
}

/* Amélioration du style TinyMCE */
.mce-tinymce {
    border: 1px solid #ddd !important;
    border-radius: 4px;
}

/* Styles pour rendre le design responsive */
@media (max-width: 768px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    button[type="submit"] {
        font-size: 14px;
        padding: 10px;
    }
}
/* Style pour la section checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    display: none; /* On cache le checkbox natif */
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #333;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid #1E90FF;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.checkbox-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #1E90FF;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
    border-radius: 2px;
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: translate(-50%, -50%) scale(1);
}

.checkbox-group input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #1E90FF;
    border-color: #1E90FF;
}
.manage-container {
    width: 90%;
    margin: 20px auto;
}
.add-button {
    display: inline-block;
    margin-bottom: 20px;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table, th, td {
    border: 1px solid #ddd;
}
th, td {
    padding: 12px;
    text-align: left;
}
th {
    background-color: #3498db;
}
.action-buttons {
    display: flex;
    gap: 10px;
}
.edit-btn, .delete-btn, .status-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    color: #fff;
}
.edit-btn { background-color: #3498db; }
.delete-btn { background-color: #e74c3c; }
.status-btn { background-color: #f39c12; }
.containeri {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
}

