/* ================= SIDEBAR ================= */

#sidebar {
    width: 220px; /* 🔥 plus petit */
    background: linear-gradient(180deg, #0b162b 0%, #0a1324 100%);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.05);
}

/* SCROLLBAR CLEAN */

#sidebar::-webkit-scrollbar {
    width: 4px;
}

#sidebar::-webkit-scrollbar-track {
    background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.15);
}

/* ================= TOP USER ================= */

.sidebar-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 22px;
}

.avatar {
    width: 52px;   /* 🔥 plus petit */
    height: 52px;
    background: #111c35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.user-name {
    font-weight: 600;
    font-size: 13px;
    color: #ffffff;
}

.user-rank {
    font-size: 11px;
    color: #94a3b8;
}

/* ================= TITRES ================= */

.sidebar-title {
    font-size: 10px;
    letter-spacing: 1px;
    color: #64748b;
    margin: 16px 0 8px 4px;
}

/* ================= ITEMS ================= */

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;              /* ↓ réduit l'espace icône / texte */
    padding: 6px 10px;     /* ↓ réduit hauteur */
    border-radius: 8px;
    cursor: pointer;
    font-size: 12.5px;     /* léger plus compact */
    color: #94a3b8;
    transition: 0.2s;
}
.sidebar-item:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.sidebar-item.active {
    background: rgba(255,255,255,0.07);
    color: white;
}

.icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* FOOTER */

.sidebar-footer {
    margin-top: auto;
    font-size: 10px;
    color: #64748b;
    text-align: center;
    padding-top: 16px;
}

.icon {
    width: 16px;
    height: 16px;
    margin-right: 10px;
    color: #94a3b8;
}

.sidebar-item:hover .icon,
.sidebar-item.active .icon {
    color: #ffffff;
}

.sidebar-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 1px;
    color: #64748b;
    margin: 18px 0 8px 4px;
    cursor: pointer;
}

.chevron {
    width: 14px;
    height: 14px;
    transition: 0.2s;
}

.sidebar-category.collapsed .sidebar-category-content {
    display: none;
}

.sidebar-category.collapsed .chevron {
    transform: rotate(-90deg);
}