/* SIDEBAR STYLES */
#sidebar-wrapper {
    background: linear-gradient(180deg, #0d2c4b 0%, #1a4a6e 100%);
    color: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    left: 0;
    top: 0;
    transition: transform 0.3s ease, margin-left 0.3s ease;
    width: 250px; /* Fixed width */
}

.sidebar-heading {
    background: rgba(255, 255, 255, 0.1) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

/* List group items */
.list-group-item {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}
.list-group-item span {
    font-size: 15px;
}
.list-group-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Active state styling */
.list-group-item.active {
    background: linear-gradient(135deg, rgba(13, 202, 240, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    color: white !important;
    border-left: 4px solid #0dcaf0 !important;
    font-weight: 600;
    position: relative;
}
.list-group-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0dcaf0;
    border-radius: 0 2px 2px 0;
}
.list-group-item:not(.active):hover {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: calc(1rem - 4px);
}

/* Logout button styling */
.list-group-item.text-danger {
    color: #f8d7da !important;
}
.list-group-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    color: white !important;
    border-left: 4px solid #dc3545;
}

/* Icons & Avatar */
.list-group-item i {
    width: 20px;
    text-align: center;
}
.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.list-group-flush {
    max-height: 600px;
    overflow-y: auto;
}

/* Toggle Button & Overlay */
#desktopSidebarToggle {
    position: fixed;
    left: 210px;
    z-index: 1002;
    transition: all 0.3s ease;
    width: 35px;
    height: 80px;
    color: white;
}
#wrapper.sidebar-toggled #sidebar-wrapper {
    transform: translateX(-250px);
}
#wrapper.sidebar-toggled #desktopSidebarToggle {
    color: black;
    font-weight: bold;
    left: 0px;
}
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}
/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        transform: translateX(-100%);
    }
    #sidebar-wrapper.mobile-open {
        transform: translateX(0);
    }
    .sidebar-overlay.active {
        display: block;
    }
}
/* Animations */
@keyframes slideIn {
    from { transform: translateX(-10px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.list-group-item.active .bi-chevron-right {
    animation: slideIn 0.3s ease;
}