#menu>li>a{background:#fff}#menu>li>a.active{background:rgba(0,0,0,.08) !important;color:#000;font-weight:bold;border-left: 4px solid #be5109;}
#sidebar {
    transition: width 0.3s ease, left 0.3s ease;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 1000;
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}
#sidebar.sidebar-student {
    width: 80px;
}
#sidebar.sidebar-student .bi {
    font-size: 1.1rem !important;
}
#sidebar.sidebar-student .nav-link {
    font-size: 10px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
}
#sidebar.sidebar-student .nav-link span {
    font-size: 9px;
    margin-left: 0 !important;
}
.sidebar-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 2rem;
    display: flex;
    flex-direction: column;
}
.sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
    #sidebar {
        position: fixed;
        left: -280px; /* Hide off-screen */
        top: 0;
        bottom: 0;
        z-index: 1050;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1) !important;
    }
    #sidebar.active-mobile {
        left: 0;
    }
    #sidebarCollapse {
        display: none !important;
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1045;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.show {
        display: block;
    }
    #sidebar.sidebar-student {
        width: 80px; /* Keep it compact on mobile as requested */
    }
    #sidebar.sidebar-student .nav-link {
        font-size: 1.5rem !important; /* Slightly larger icons for mobile */
        text-align: center !important;
        padding: 12px 0 !important;
        width: 100%;
        border-radius: 0 !important; /* Square look for full width */
        border-left: 0 !important;
        border-right: 0 !important;
    }
    #sidebar.sidebar-student .nav-link br {
        display: none;
    }
    #sidebar.sidebar-student .nav-link span {
        display: none !important; /* Hide text labels on mobile for students */
    }
    #sidebar.sidebar-student .nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    #sidebar.sidebar-student li {
        width: 100%;
        padding: 0 !important;
    }
}

#sidebar .bi{font-size:1.2rem !important;margin:-5px 0 5px}
#sidebar #sidebarCollapse{width:fit-content;position:absolute;top:20px;right:-26px;border:1px solid rgba(0,0,0,.2);border-left:0;padding:4px 6px 4px 4px;border-radius:0 8px 8px 0;background:#fff;z-index:1000;cursor:pointer;box-shadow:4px 0 5px -3px rgba(0,0,0,.1)}
#sidebar .nav-link{color:rgba(0,0,0,.6666666667);transition:.3s background,.3s color;white-space:nowrap;overflow:hidden}
#sidebar .active{background-color:rgba(0,0,0,.08) !important}
#sidebar .nav-pills{width:100%}
#sidebar .nav-pills li{width:100%}
#sidebar .collapse{padding-left:20px;transition:height .3s ease}
#sidebar .collapse>li::before{content:" ";position:absolute;border-left:thin solid rgba(0,0,0,.2);border-bottom:thin solid rgba(0,0,0,.2);border-radius:0 0 0 5px;width:10px;height:30px;margin:-14px 0 -20px 0}
#sidebar .collapse .nav-link{margin-left:10px;padding:5px 0}
#sidebar .collapse .active{padding:5px 10px;background-color:#be5109 !important;color:#fff;border-radius: 4px;border-left: none;}
#sidebar.minified{width:70px}
#sidebar.minified .expanded{display:none !important}
#sidebar.minified .active{background-color: rgba(190, 81, 9, 0.1) !important; color: #be5109 !important; border-left: none;}
#sidebar.minified .nav-link.active .bi{color: #be5109 !important;}
#sidebar.minified .collapse{position:absolute;z-index:1000;min-width:250px;background:#fff;padding:10px;border-radius:10px;box-shadow:5px 5px 10px rgba(0,0,0,.2);margin-left:60px !important;margin-top:-40px !important}
#sidebar.minified .collapse>li:first-child::before{content:" ";position:absolute;border-left:thin solid rgba(0,0,0,.2);border-top:thin solid rgba(0,0,0,.2);border-radius:5px 0 0 0;width:10px;height:4px;margin:11px 0 0 0;border-bottom:none}
#sidebar .icon-link{padding-left:17px !important}
#sidebar .icon-link,#sidebar .nav-link{font-size:12px}
#sidebar .btn-blank.active{background-color:rgba(0,0,0,.08) !important; border: 1px solid rgba(0,0,0,.2) !important;}
.profile-card{transition:all .3s ease}
.profile-card:hover{background-color:rgba(0,0,0,.05) !important}
#sidebar.minified .profile-card{border:none !important;background:0 0 !important;box-shadow:none !important;padding:5px 0 !important;justify-content:center !important}
#sidebar.minified .profile-card.active{background-color: rgba(0,0,0,0.05) !important;}
#sidebar.minified .profile-card .profile-img-wrapper{width:100% !important;display:flex;justify-content:center;padding-left:2px}
#sidebar.minified .profile-card img{border:2px solid rgba(0,0,0,.2) !important;box-shadow:0 2px 4px rgba(0,0,0,.1)}
.rotate{margin:7px 3px;transform:rotate(-90deg)}
.rotate a{width:95%}
.rotate a div{display:block}
.nav-tabs-cust .nav-link{color:rgba(0,0,0,.6)}
.nav-tabs-cust .active{border-bottom:3px solid #3d97e5;color:#3d97e5;font-weight:bold}
.list-group .active{background-color:rgba(61,151,229,.5)}
