/* Student Sidebar Styles */
.main-layout {
    display: flex;
}

.sidebar {
    width: 255px; /* Default width */
    background-color: transparent; /* Dark background */
    color: #b0b0b0; /* Light text */
    padding: 0rem 0.5rem 1rem 0.5rem;
    flex-shrink: 0;
    transition: width 0.3s ease;
    min-height: 100vh; /* Ensure sidebar takes full viewport height */
}

.sidebar.collapsed {
    width: 80px; /* Collapsed width */
}

.sidebar-header {
    border: 1px solid #E9ECEF;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    /* background: linear-gradient(0deg, rgba(255, 255, 255, 1) 53%, rgb(194 255 134) 100%); */
    position: relative;
    background: #093556;
}
/* .sidebar-header:after{
    height:100%;
    background: linear-gradient(0deg,rgba(255, 255, 255, 1) 53%, rgba(171, 227, 115, 1) 100%);
    content:"";
    position: absolute;
    top:0px;
    left:0px;
    right:0px;
    z-index:-1;
} */
.sidebar.collapsed .sidebar-header {
    justify-content: center;
    padding: 0 0 1.5rem 0;
}

.sidebar-header .avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin-right: 0px;
    margin: 0 0 10px 0;
}
.sidebar.collapsed .sidebar-header .avatar {
    margin-right: 0;
}

.sidebar-header .user-info {
    flex-grow: 1;
}

.sidebar.collapsed .sidebar-header .user-info {
    display: none;
}

.sidebar-header h3 {
    margin: 0;
    font-family: outfit-bold;
    color: #fff;
    font-size: 22px;
    margin: 3px 0 0 0;
}

.sidebar-header p {
    font-size: 17px;
    margin: 4px 0 3px 0;
    color: #fff;
    font-family: outfit-light;
}

.sidebar-nav ul {
list-style: none;
  background: #1d4f73;
  padding: 30px 15px 30px 20px;
  border-radius: 20px 0 0 30px;
  margin: 0;
  justify-content: flex-start;
  width: 100%;
}
.sidebar-nav ul li{
    width: 100%;
}
.sidebar-nav ul li a{
    width: 100%;
}
.sidebar-nav li {
    margin-bottom: 0.5rem;
}
.sidebar-nav li .sidebar-logout-btn:hover{
    background-color: #5b9f15;
}
.sidebar-nav li .sidebar-logout-btn{
    width: 100%;
    text-align: start;
    padding: 8px 10px 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    font-size: 15px;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    padding: 7px 9px 7px 9px;
    border-radius: 0.375rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size:14px;
    gap: 8px;
}
.sidebar-nav a:hover{
    background-color:#5b9f15;
}
.sidebar-nav a img{
    max-height: 24px;
    max-width: 24px;
}
.sidebar-nav a svg {
    max-height: 24px;
    max-width: 24px;
}
.sidebar-nav a svg{
    fill:#66CC00;
}

.middle_box{
padding: 30px 0 0 0;
  position: relative;
  float: left;
  width: 100%;
}


/* .sidebar-nav a svg:hover{
    fill:#66CC00;
} */


.sidebar-nav i {
    margin-right: 1rem;
    width: 20px; /* Fixed width for icons */
    text-align: center;
}

.sidebar.collapsed .sidebar-nav i {
     margin-right: 0;
     width: auto;
}

.sidebar.collapsed .sidebar-nav a span {
    display: none; /* Hide text in collapsed state */
}

.sidebar-nav .badge {
    background-color: #a6f23a; /* Accent color for badge */
    color: #1e1e2d; /* Dark text for badge */
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    margin-left: auto;
}

.sidebar-nav .has-submenu .submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-nav .has-submenu .toggle-icon {
    transition: transform 0.3s ease;
}

.sidebar-nav .has-submenu.active .toggle-icon {
    transform: rotate(180deg);
}

.sidebar-nav .submenu {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0.5rem 2.5rem; /* Indent submenu */
    display: none; /* Hidden by default */
}

.sidebar-nav .has-submenu.active .submenu {
    display: block;
}

.sidebar-nav .submenu li {
    margin-bottom: 0.25rem;
}

.sidebar-nav .submenu a {
    padding: 0.5rem 1rem;
    background-color: #2a2a3a; /* Slightly lighter background for submenu items */
    border-radius: 0.375rem;
}

.sidebar-nav .submenu a:hover {
     background-color: #333;
}

.sidebar-nav .submenu i {
     margin-right: 0;
}

.content {
    flex-grow: 1;
    padding: 1.5rem;
    /* Adjust margin to create space between sidebar and content */
    margin-left: 270px; /* Equal to default sidebar width */
    transition: margin-left 0.3s ease;
    padding-top: 0; /* Remove top padding */
}

.sidebar.collapsed ~ .content {
    margin-left: 80px; /* Equal to collapsed sidebar width */
}

/* Full width for content when sidebar is hidden */
.main-layout .content {
    margin-left: 0; /* Remove margin when sidebar is not present */
}

body {
    overflow-x: hidden; /* Prevent horizontal scrollbar due to sidebar */
    padding-top: 0; /* Remove default body top padding */
}

/* Profile Edit Link in Header */
.profile-edit-link {
    color: #b0b0b0;
    margin-left: auto;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    position: absolute;
    right: -20px;
    top: 40%;
    bottom: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #b1e57d;
}
.profile-edit-link .fa-user-edit:before, .fa-user-pen:before {
    content: "\f4ff";
    color: #66CC00;
}
.profile-edit-link:hover {
    color: white; /* Highlight on hover */
}

.sidebar.collapsed .profile-edit-link {
    margin-left: 0; /* Remove margin in collapsed state */
}

.sidebar.collapsed .profile-edit-link i {
     margin-right: 0;
     width: auto;
} 


  @media (max-width: 1199.98px){
    .left_box_blue {
        width: 28%;
    }
    .sidebar-nav ul{
        padding: 20px 13px 20px 13px;
    }
    .sidebar-nav a{
        font-size: 13px;
        gap: 6px;
        padding: 7px 7px 7px 7px;
    }
    .sidebar-nav a img {
        max-height: 22px;
        max-width: 22px;
    }
    .sidebar{
        width: 206px;
    }
    .series_list_main{
        gap: 13px;
    }
    .dash_test_inner{
        padding: 10px;
    }
    .start_test_box a{
        padding: 5px 13px;
    }
    .series_list{
        width: 31%;
    }

    
  }

    @media (max-width: 1099.98px){
        .left_box_blue {
            width:25.5%;
        }
    }


@media (max-width: 991.98px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        height: 100%;
        width: 260px;
        background-color: #1d4f73;
        transition: left 0.3s ease;
        z-index: 9999;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
        top: 80px;
    }

    .sidebar.active-sidebar {
        left: 0;
    }
    .sidebar-close{
        border: none;
        padding: 0px;
        line-height: normal;
        background: #3e7399;
        outline: none;
        box-shadow: none;
        padding: 10px 18px;
        position: absolute;
        right:-55px;
        border-radius: 0px 24px 24px 0px;
    }
    .sidebar-toggle {
        background-color: #1d4f73;
        color: white;
        border: none;
        padding: 10px 15px;
        font-size: 18px;
        cursor: pointer;
        margin: 10px;
        position: relative;
        z-index: 10000;
        position: absolute;
        z-index: 99;
        right:-55px;
        border-radius: 0px 24px 24px 0px;
    }
    .sidebar .close_icon{
        display:none
    }
    .sidebar .open_icon{
        display:block
    }
    .active-sidebar .close_icon{
        display:block
    }
    .active-sidebar .open_icon{
        display:none
    }
    /* Optional: dark background overlay when sidebar is open */
    .sidebar-wrapper::after {
        content: '';
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0,0,0,0.4);
        z-index: 9998;
    }

    .sidebar.active-sidebar ~ .sidebar-wrapper::after {
        display: block;
    }
    /* .sidebar{
        margin: 0 0 0 -360px;
        transition-duration:0.7s;
    }
    .active-sidebar{
        margin: 0 0 0 0px;
    } */
    .left_box_blue {
        width: 25.5%;
        display: none;
    }
    .open_close_icon{
        max-height:20px;
    }
}

