/* Sidebar principal */
#sidebar {
    background: linear-gradient(to bottom, #680503, #f57c00);
    color: white;
    min-height: 100vh;
    padding-top: 20px;
    width: 260px;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s;
}

/* Avatar / utilisateur */
#sidebar .user-panel .image img {
    border-radius: 50%;
    width: 55px;
    height: 55px;
    border: 2px solid #fff;
}

#sidebar .user-panel .info a {
    font-weight: bold;
    color: #fff;
    font-size: 14px;
}

/* Liste de menu */
#sidebar .components {
    padding: 0;
    list-style: none;
    margin-top: 20px;
}

#sidebar .components li {
    padding: 10px 20px;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#sidebar .components li.active,
#sidebar .components li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

#sidebar .components li a {
    color: #fff;
    text-decoration: none;
    display: block;
}

#sidebar .components li a i {
    margin-right: 10px;
}

/* Sous-menu */
#sidebar .components ul {
    padding-left: 20px;
}

#sidebar .components ul li {
    padding: 8px 15px;
    font-size: 13px;
    font-weight: normal;
    border: none;
}

#sidebar .components ul li a {
    color: #ffe8d6;
    text-decoration: none;
}

#sidebar .components ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Bouton logout */
#sidebar .nav-item.text-center a {
    color: #fff;
    display: inline-block;
    margin-top: 20px;
}

#sidebar .nav-item.text-center a:hover {
    color: #ffddc1;
}
/* Liens parents (menus principaux) */
#sidebar .components > li > a {
    padding: 12px 20px;
    font-weight: 700;
    color: #fff;
    background-color: transparent;
    transition: background 0.3s;
    border-radius: 8px;
}

#sidebar .components > li.active > a,
#sidebar .components > li > a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Sous-menu (ul imbriqué) */
#sidebar .components ul {
    background-color: rgba(255, 255, 255, 0.05);
    margin: 0 10px 10px 10px;
    padding: 10px 10px;
    border-radius: 10px;
    list-style: none;
}

/* Sous-menu : éléments */
#sidebar .components ul li {
    margin-bottom: 8px;
}

#sidebar .components ul li a {
    display: block;
    padding: 8px 15px;
    border-radius: 6px;
    color: #ffd;
    font-size: 14px;
    background-color: transparent;
    transition: all 0.2s;
}

#sidebar .components ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
