/* Charte graphique provisoire — à ajuster une fois la charte officielle définie */
/* TODO: remplacer la couleur de sidebar (#1e2538) par les couleurs de la charte
   graphique officielle une fois fournie. */

.dashboard-body {
    background: #f8f9fa;
}

.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #1e2538;
    color: #fff;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1030;
}

.sidebar-brand {
    height: 60px;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 0 1.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar-brand:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.sidebar-brand .brand-icon {
    color: #4dabf7;
    font-size: 1.4rem;
}

.sidebar-nav {
    padding: 1rem .75rem;
}

.sidebar-nav .nav-link {
    color: #c2c8d6;
    border-radius: .5rem;
    padding: .65rem .85rem;
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .25rem;
    transition: background .15s ease, color .15s ease;
}

.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.sidebar-nav .nav-link.active {
    background: #0d6efd;
    color: #fff;
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-topbar {
    height: 60px;
    flex-shrink: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.dashboard-topbar .sidebar-toggle-btn {
    border: 0;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.dashboard-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Breadcrumb */
.dashboard-content .breadcrumb {
    margin-bottom: 1.25rem;
    font-size: .9rem;
}

.dashboard-content .breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    border-radius: .25rem;
}

.dashboard-content .breadcrumb-item a:hover {
    color: #0d6efd;
    text-decoration: underline;
}

.dashboard-content .breadcrumb-item a:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

.dashboard-content .breadcrumb-item.active {
    color: #1e2538;
    font-weight: 600;
}

/* Stat card icon circle */
.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* Backdrop when sidebar open on mobile */
.sidebar-backdrop {
    display: none;
}

/* Responsive : sidebar masquée sous 768px, ouverte via .sidebar-open */
@media (max-width: 767.98px) {
    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s ease-in-out;
    }

    .dashboard-wrapper.sidebar-open .dashboard-sidebar {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .dashboard-wrapper.sidebar-open .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 1025;
    }
}
