/* --- Fond général et typographie --- */
body {
    background: white;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #223046;
    margin: 0;
    min-height: 100vh;
}

.admin-content {
    background: white !important;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.dropdown-toggle {
    background: none !important;
    border: none !important;
    color: #6c757d;
    padding: 5px 10px;
    box-shadow: none !important;
}

.dropdown-toggle:hover,
.dropdown-toggle:focus {
    background: none !important;
    color: #495057;
}

.dropdown-menu {
    min-width: 180px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    margin-right: 10px;
    color: #6c757d;
    font-size: 16px;
}

.dropdown-item:hover i {
    color: #495057;
}

.dropdown > a {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0 5px;
}

.dropdown > a:hover {
    color: #343a40 !important;
}

/* --- Espacement sous le header --- */
.admin-with-header {
    margin-top: 70px; /* Espace pour que le contenu commence sous le header */
}

/* --- Layout principal --- */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-layout.admin-with-header {
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 16px;
    padding: 28px 20px 20px 20px;
    box-shadow: 0 6px 24px rgba(2, 62, 115, 0.08), 0 1.5px 4px rgba(2, 62, 115, 0.04);
    min-width: 240px;
    max-width: 270px;
    font-family: inherit;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    margin-bottom: 36px;
    text-align: center;
}

.sidebar-header h3 {
    color: #023e73;
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.menu-section {
    margin-bottom: 32px;
}

.admin-content {
    margin-top: 100px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu-section h4 {
    color: #7b8a99;
    font-size: 0.92rem;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-left: 8px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.nav {
    padding-left: 0;
    margin-bottom: 0;
}

.nav-item {
    list-style: none;
}

.nav-link {
    color: #223046;
    padding: 11px 18px;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    font-size: 1.04rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    box-shadow: none;
    position: relative;
}

.nav-link:hover, .nav-link:focus {
    background: #e3ecf7;
    color:#6c757d
    box-shadow: 0 2px 8px rgba(2, 62, 115, 0.07);
    text-decoration: none;
}

.nav-link.active, .nav-link.router-link-active {
    background: linear-gradient(90deg, #023e73 60%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(2, 62, 115, 0.10);
}

.nav-link i {
    margin-right: 14px;
    font-size: 1.25rem;
    opacity: 0.88;
    min-width: 22px;
    text-align: center;
}

/* --- Contenu principal --- */
.admin-content {
    flex: 1;
    padding: 40px 40px 40px 40px;
    background: transparent;
    min-width: 0;
}

@media (max-width: 900px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        min-width: 100%;
        max-width: 100%;
        border-radius: 0;
        padding: 18px 8px;
    }
    .sidebar-header h3 {
        font-size: 1.2rem;
    }
    .admin-content {
        padding: 18px 6px;
    }
    .admin-with-header {
        margin-top: 56px; /* Moins d'espace sur mobile si le header est plus petit */
    }
    .admin-layout.admin-with-header {
        min-height: calc(100vh - 56px);
    }
}

/* --- Titres --- */
.admin-content h1, .admin-content h2, .admin-content h3 {
    color: #023e73;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

.admin-content h1 {
    font-size: 2.1rem;
}
.admin-content h2 {
    font-size: 1.5rem;
}
.admin-content h3 {
    font-size: 1.2rem;
}

/* --- Boutons --- */
.btn, .button {
    background: linear-gradient(90deg, #023e73 60%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px rgba(2, 62, 115, 0.07);
    margin-bottom: 8px;
    text-decoration: none;
    display: inline-block;
}
.btn:hover, .button:hover {
    background: #2563eb;
    color: #fff;
}

/* --- Tableaux --- */
.admin-content table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(2, 62, 115, 0.06);
    margin-bottom: 32px;
}
.admin-content th, .admin-content td {
    padding: 14px 16px;
    text-align: left;
}
.admin-content th {
    background: #e3ecf7;
    color: #023e73;
    font-weight: 600;
    border-bottom: 2px solid #c3cfe2;
}
.admin-content tr:nth-child(even) {
    background: #f5f7fa;
}
.admin-content tr:hover {
    background: #e3ecf7;
}

/* --- Formulaires --- */
.admin-content input[type="text"],
.admin-content input[type="email"],
.admin-content input[type="password"],
.admin-content select,
.admin-content textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c3cfe2;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border 0.18s;
}
.admin-content input:focus,
.admin-content select:focus,
.admin-content textarea:focus {
    border-color: #2563eb;
    outline: none;
}

/* --- Cartes / Box --- */
.admin-card, .admin-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(2, 62, 115, 0.06);
    padding: 24px 28px;
    margin-bottom: 32px;
}

/* --- Alertes --- */
.admin-alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 500;
}
.admin-alert-success {
    background: #e6f9ed;
    color: #1a7f4e;
}
.admin-alert-error {
    background: #ffeaea;
    color: #b91c1c;
}
.admin-alert-info {
    background: #e3ecf7;
    color: #023e73;
}

/* --- Pagination --- */
.admin-pagination {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}
.admin-pagination a, .admin-pagination span {
    padding: 7px 14px;
    border-radius: 6px;
    background: #f5f7fa;
    color: #023e73;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.18s;
}
.admin-pagination a:hover, .admin-pagination .active {
    background: #2563eb;
    color: #fff;
}

/* --- Divers --- */
::-webkit-scrollbar {
    width: 8px;
    background: #e3ecf7;
}
::-webkit-scrollbar-thumb {
    background: #c3cfe2;
    border-radius: 8px;
}
