body {
    display: flex;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f2f4f7;
    color: #333;
}

/* ----- SIDEBAR ----- */
.sidebar {
    width: 280px;
    height: 100vh;
    background: linear-gradient(to bottom, royalblue, seagreen);
    color: white;
    padding-top: 40px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    left: 0;
    top: 0;
}

.sidebar h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: floralwhite;
    text-decoration: none;
    font-size: 16px;
    border-left: 4px solid transparent;
    transition: background 0.3s, border-left 0.3s;
}

.sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #f1c40f;
}

/* Sous-menu */
.menu-item.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    flex-direction: column;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.submenu a {
    font-size: 14px;
    padding: 8px;
    color: #dfe6e9;
    transition: background 0.3s, padding-left 0.3s;
}

.submenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 18px;
}

.submenu-toggle::after {
    content: "▸";
    float: right;
    margin-right: 10px;
    transition: transform 0.3s;
}

.menu-item.open .submenu-toggle::after {
    transform: rotate(90deg);
}

.menu-item.open .submenu {
    display: flex;
}

/* ----- MAIN CONTENT ----- */
.main-content {
    margin-left: 280px;
    padding: 40px;
    width: calc(100% - 280px);
}
/* ----- BANNIÈRE D’ACCUEIL ----- */
.welcome-banner {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.welcome-banner img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

.welcome-text {
    max-width: 600px;
}

.welcome-text h1 {
    font-size: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.welcome-text p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.cta-buttons {
    margin-top: 20px;
}

.cta-buttons .btn {
    margin-right: 10px;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}
/* --- Boutons d'action --- */
.cta-buttons {
    margin-top: 25px;
}

.btn {
    padding: 10px 20px;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0069d9;
}

.btn-outline {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
}

/* Description en arabe */
.welcome-text p[dir="rtl"] {
    font-size: 16px;
    line-height: 1.8;
    text-align: right;
    background-color: #f9f9f9;
    padding: 12px;
    border-radius: 8px;
    margin-top: 20px;
}


.styled-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    font-size: 16px;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.styled-table th, .styled-table td {
    padding: 16px 18px;
    text-align: left;
}

.styled-table thead {
    background-color: #3498db;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.styled-table tbody tr:nth-child(even) {
    background-color: #f7f9fb;
}

.styled-table tbody tr:hover {
    background-color: #f0f8ff;
}

.actions .btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: white;
    margin-right: 6px;
}

.actions .edit {
    background-color: #f39c12;
}

.actions .delete {
    background-color: #e74c3c;
}

.actions .btn:hover {
    opacity: 0.85;
}