/* Styles pour la barre latu00e9rale */
:root {
    --primary-color: #0078D7; /* Bordeaux */
    --secondary-color: #708238; /* Vert olive */
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --border-color: #dee2e6;
    --hover-bg: rgba(139, 0, 0, 0.1);
    --active-bg: rgba(139, 0, 0, 0.2);
}

.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
    margin-left: -15px; /* Compense le padding du container */
    width: calc(100% + 30px); /* Ajuste la largeur pour compenser les marges nu00e9gatives */
}

.sidebar {
    width: 250px;
    background-color: var(--light-bg);
    border-right: 1px solid var(--border-color);
    padding: 20px 0;
    position: fixed;
    height: 100%;
    overflow-y: auto;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    left: 0;
    top: 0;
}

.sidebar .user-info {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 15px;
    text-align: center;
}

.sidebar .user-info .user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.sidebar .nav-link {
    padding: 12px 15px;
    color: #333;
    border-left: 3px solid transparent;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.sidebar .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.sidebar .nav-link:hover {
    background-color: var(--hover-bg);
    border-left-color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--active-bg);
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 20px;
    transition: all 0.3s;
    width: calc(100% - 250px);
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    .sidebar.active {
        margin-left: 0;
    }
    .main-content {
        margin-left: 0;
    }
    .main-content.active {
        margin-left: 250px;
    }
}
