﻿aside {
    color: #fff;
    padding-left: 10px !important;
    height: 100vh;
    width: 80px !important;
    background-image: linear-gradient(30deg, #011a42, #24649b);
    border-top-right-radius: 0px;
    position: fixed !important;
    top: 0;
    z-index: 10000;
    transform: translateX(0%);
    transition: all 0.3s;
    overflow: auto;
}
.tile-icon {
    font-size: 35px !important;
}
    .sidemenu {
        width: 100px !important;
        color: #fff;
        padding-left: 0px !important;
        margin-left: 0px !important;
        height: 100vh;
        background-image: linear-gradient(30deg, #011a42, #24649b);
        border-top-right-radius: 0px;
        /*position: fixed;*/
        
        
        transform: translateX(0%);
        transition: all 0.3s;
    }
    aside.active, .sidemenu.active {
        /*transform: translateX(210);*/
        width: 210px !important;
        width: calc(100 - 50px)210px !important;
    }
    .contentsection.active {
        /*transform: translateX(210);*/
        width: calc(100% - 210px) !important;
    }
    .contentsection {
        /*transform: translateX(210);*/
        width: calc(100% + 210px) !important;
    }
    .flex-div
    {
        display:flex;
    }

    aside a {
        position: relative;
        overflow: hidden;
        white-space: nowrap;
        color: #fff;
        display: block;
        padding: 12px 0px 12px 8px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        width: 100%;
    }

        aside a:hover {
            color: #fff;
            background: #ffb606;
            outline: none;
            position: relative;
            background-color: #ffb606;
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
        }

        aside a i {
            display: inline-block;
            font-size: 18px !important;
            width: 20px;
            text-align: center;
            vertical-align: middle;
            transition: all 0.3s ease;
            margin-right: 5px;
            padding-left: 14px;
        }

    aside.active a {
        text-align: left;
    }
.brand_logo {
    height: 60px !important;
    position: relative;
    background-color: #335e8a;
    border-radius: 50%;
}

    aside a span {
        display: none;
        font-size: 14.28px !important;
        opacity: 0;
        width: 0;
        transition: all 0.3s ease;
        vertical-align: middle;
    }

    aside.active a span {
        display: inline-block;
        opacity: 1;
        width: auto;
        margin-left: 10px;
    }

    aside.active a i {
        text-align: left;
    }

    aside a:hover::after {
        content: "";
        position: absolute;
        background-color: transparent;
        right: 0;
        height: 0px;
        width: 0px;
        border-bottom-right-radius: 18px;
        box-shadow: 0 20px 0 0 #ffb606;
    }

    aside a:hover::before {
        content: "";
        position: absolute;
        background-color: transparent;
        right: 0;
        height: 0px;
        width: 0px;
        border-top-right-radius: 18px;
        box-shadow: 0 -20px 0 0 #ffb606;
    }

    aside p {
        margin: 0;
        padding: 40px 0;
    }

.navbar {
    max-height: 70px !important;
    min-height: 70px !important;
    height: 70px !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    margin-left: 0px !important;
    transition: all 0.3s;
}

.navbar-brand {
    padding-left: 10px;
}

body {
    font-family: 'Roboto';
    width: 100%;
    height: 100vh;
    margin: 0;
    transition: all 0.3s;
}

#divMenuToggle,#btnMenuClose {
    display: none;
    height: 0px;
    margin-top:4px !important;
}
#menuToggle {
    margin-top: 14px !important;
}
#mmenuToggle{
    display:none;
}
#mbtnProfile {
    display: none !important;
}

#divMenuToggle.active, #btnMenuClose.active {
    display: none;
    color: white;
}

/* Mobile menu button */
.menu-btn-div {
    height: 50px;
}

.menu-btn {
    display: block;
    z-index: 2;
    background: #ffb606;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}
/* Main content area */
.main-content {
    margin-left: 10px;
    padding: 15px;
}

/* Responsive styles */
@media (max-width: 768px) {
    aside,.sidemenu {
        transform: translateX(0%);
        width: 80px !important;
    }

    body {
        padding-left: 0;
    }

    aside.active,.sidemenu.active {
        transform: translateX(100);
        width: 270px;
    }
}

/* Adjust for very small screens */
@media (max-width: 576px) {
    aside, .sidemenu {
        width: 0px !important;
        display: none !important;
        padding-left: 0px !important;
    }

    aside.active, .sidemenu.active {
        width: 100vw !important;
        display: block !important;
    }

    .navbar-brand {
        padding-left: 5px;
    }
    #menuToggle{
        display:none !important;
        height:0px !important
    }
    #mmenuToggle {
        display: block !important;
        height: auto !important
    }
    #mbtnProfile {
        display: block !important;
        height: auto !important
    }
    #divMenuToggle.active, #btnMenuClose.active {
        display: block;
        color: white;
        height: auto;
    }
    #divMenuToggle, #btnMenuClose {
        display: none;
        color: white;
        height: auto;
    }
    .main-content {
        margin-left: 0px;
    }
    .student-info {
        visibility: hidden !important;
    }
    .student-info.active {
        visibility: visible !important;
        justify-content:flex-end;
        top: 70px;
        position: absolute;
        background-color: whitesmoke;
        width: 100vw;
        padding-right:20px;
        left: 0;
    }
}

/*Make the Top Nabvar sticky on top*/
.topbar {
    position: sticky;
    top: 0;
    z-index: 9999;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.studentprofilepicture{
    border-radius: 50% !important;
    height:60px !important;
    margin-top:5px;
}
.student-info {
    visibility: visible;
    position: relative;
    display:inline-flex !important;
}
.profile-container {
    position: relative; /* This positions the popup relative to the profile picture */
    top:-3px;
}

.topbar-mobile-btn{
    display:inline-flex !important;
    margin-top:18px !important;
    margin-bottom:auto;
}
.section-body {
    border-radius: 5px;
    padding-left: 0px;
    padding-right: 0px;
}
.section-header {
    background-image: linear-gradient(135deg, #3c82be 0%, #042c6ec4 100%);
    color: white;
    height: 50px;
    align-content: center;
    padding-left: 15px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    opacity: 0;
    display:block !important;
    padding-top:0px !important;
    padding-bottom:0px !important;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

.dropdown-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(2px);
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.dropdown-item:hover .dropdown-icon {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .dropdown-menu {
        min-width: 180px;
        right: -10px;
    }

        .dropdown-menu::before {
            right: 25px;
        }
}

@media (max-width: 480px) {
    .dropdown-menu {
        min-width: 160px;
        right: -20px;
    }

    .dropdown-item {
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Animation for menu items */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-menu.active .dropdown-item {
    animation: slideInUp 0.3s ease forwards;
}

.dropdown-menu.active .dropdown-item:nth-child(1) {
    animation-delay: 0.05s;
}

.dropdown-menu.active .dropdown-item:nth-child(2) {
        animation-delay: 0.1s;
    }