/* Sidebar Styles */
.sidebar {
    min-height: calc(100vh - 56px);
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.sidebar-section-toggle {
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.sidebar-section-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 5px;
}

.sidebar-section-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.sidebar-section-toggle .fa-chevron-down {
    transition: transform 0.3s ease;
}

.nav-link {
    border-radius: 5px;
    margin-bottom: 2px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background-color: rgba(33, 37, 41, 0.05);
    transform: translateX(2px);
}

.nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

.nav-link.active i {
    color: white !important;
}

/* Collapse animation */
.collapse {
    transition: height 0.3s ease;
}

/* Mobile sidebar */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 56px !important;
        left: 0;
        z-index: 1040;
        width: 100% !important;
        height: calc(100vh - 56px);
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-enabled {
        margin-left: 0 !important;
        padding-top: 56px !important;
    }
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}