 body {
     margin: 0;
     font-family: "Poppins", sans-serif;
     background: #f7f9fc;
     box-sizing: border-box;
 }

 .layout {
         display: flex
;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
 }

 :root {
    /* --site-color: #e28413; */
    --site-color: #114387;
 }

 .sidebar {
     width: 300px;
     background: #0f0f0f;
     color: #fff;
     flex-shrink: 0;
     min-height: 100vh;
     padding: 20px;
     transition: all 0.5s ease;
     position: relative;
 }

 /* .main {
     flex: 1;
     padding: 20px;
 } */

 /* Sidebar hidden */
 .sidebar:not(.active) {
     transform: translateX(-100%);
     width: 0;
     display: none;
     overflow: hidden;
     transition: all 0.4s ease;
 }

 /* Jab sidebar hidden ho to main full width le le */
 .sidebar:not(.active)~.main {
     width: 100%;
     margin-left: 0px;
 }

 /* .show-sidebar-button2 {
     position: fixed;
     top: 175px;
     left: -7px;
     z-index: 2000;
 } */


 .user-profile {
  display: flex;
  /* align-items: center; */
  gap: 15px;
  justify-content: flex-start;
  flex-direction: column;
  background: var(--site-color);
  border: 2px solid #fff;
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bb{
    position: absolute;
    top: -15px;
    right: -13px;
    width: 40px ;
    height: 40px;
    border-radius: 50%;
    background-color: #0f0f0f;
}
.user-info p{
    margin-bottom: 0;
}



/* .user-profile:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.img-user {
  flex-shrink: 0;
} */

.img-user img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.img-user{
    position: relative;
    width: max-content;
}
.active-status{
        position: absolute;
    bottom: 11px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50px;
    background-color: lightgreen;
}

.user-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
  color: #fff;
  font-weight: 600;
}

.user-info .user-role {
  font-size: 14px;
  color: #d0f1f3;
  margin-top: 3px;
  opacity: 0.9;
}
.user-info p{
    font-size: 13px;
}

 

 /* Buttons */
 /* .hide-sidebar-button2,
 .show-sidebar-button2 {
     position: absolute;
     width: max-content;
     top: 3px;
     right: -15px;
     z-index: 1000;
 } */

 .hide-sidebar-button2 i,
 .show-sidebar-button2 i {
     cursor: pointer;
     font-size: 20px;
     background: linear-gradient(135deg, #32bbed, #006e74);
     color: #fff;
     padding: 7px 12px;
     border-radius: 5px;
     text-align: center;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
     transition: all 0.3s ease;
 }

 /* Special difference for hide button (close) */
 .hide-sidebar-button2 i {
     background: linear-gradient(135deg, #750000, #ff4c4c);
 }


 .sidebar h2 {
     text-align: center;
     margin-bottom: 30px;
 }

 .sidebar ul {
    list-style: none;
    padding: 0;
    border: 1px solid #4d4d4d;
    border-radius: 4px;
    overflow: hidden;
}

 /* .sidebar ul li {
     margin: 5px 0;
 } */

 .sidebar ul li a {
     text-decoration: none;
     color: #fff;
     display: flex;
        align-items: center;
        justify-content: space-between;
     padding: 10px;
     /* border-radius: 3px; */
     transition: background-color 0.3s;
     position: relative;
     overflow: hidden;
 }

 .sidebar ul li a i{
    padding: 15px 10px;
    position: absolute;
    right: 10px;
    color: gray;
 }


 .sidebar ul li a:hover,
 .sidebar ul li a.active {
     background: linear-gradient(270deg, lightgray, var(--site-color))
 }
  .sidebar ul li a:hover i,
 .sidebar ul li a.active i {
     /* box-shadow: 0 2px 6px rgba(255, 255, 255); */
    /* background: #1f1f1f; */
    color: var(--site-color);
 }

 /* Navbar */
 .navbar2 {
     background: #1f1f1f;
     color: #fff;
     padding: 0 20px;
     display: none;
     justify-content: space-between;
     align-items: center;

     width: 100%;
     z-index: 10;
     transition: all 0.5s ease;
 }

 .navbar2 h2 {
     font-size: 18px;
     margin: 0;
 }

 .navbar2.active {
     display: flex;
     height: 60px;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
 }

 .navbar2 .menu {
     display: flex;
     gap: 15px;
 }

 .navbar2 .menu li {
     list-style: none;
 }

 .menu li a {
     border-bottom: 1px solid #4f4f4f;
 }

 .navbar2 .menu a {
     color: #fff;
     text-decoration: none;
     padding: 6px 12px;
     border-radius: 4px;
     transition: background 0.3s;
     border: 1px solid var(--site-color);
     font-size: 13px;
 }

 .navbar2 .menu a:hover,
 .navbar2 .menu a.active {
     background: var(--site-color);
 }

 .navbar2 span.exit-btn {
     cursor: pointer;
     background: #a20f00;
     padding: 6px 12px;
     border-radius: 4px;
     transition: background 0.3s;
 }

 .navbar2 span.exit-btn:hover {
     background: #e74c3c;
 }


 .main {
     flex: 1;
     padding: 20px;
     transition: all 0.5s ease;
     position: relative;    min-width: 0;
    max-width: 100%;
    overflow: hidden;
 }

 /* Pages */
 .page {
     transform: translateX(0);
     background: #fff;
     padding: 20px;
     border-radius: 5px;
     box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
     /* opacity: 0; */
     /* transform: translateY(20px); */
     transition: all 0.5s ease;
 }

 /* Inactive pages */
 /* .page:not(.active) {
     pointer-events: none;
     display: none;
 } */

 /* Active page */
 .page.active {
     opacity: 1;
     transform: translateY(0);
     pointer-events: auto;
 }





 .l-2 {
     margin: 7px 0px 7px 15px;
     font-size: 20px;
     font-weight: 600;
 }

 #course-title-main-div {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 15px;
     background: black;
     padding: 10px 0px 10px 10px;
     border-radius: 5px;
     /* margin-bottom: 25px; */
     width: 320px;
 }

 #course-title-main {
     color: white;
     font-size: 13px;
     white-space: nowrap;
     /* single line */
     overflow: hidden;
     /* hide extra text */
     text-overflow: ellipsis;
     /* show ... */
     max-width: 260px;
     /* adjust as per layout */
     display: inline-block;
 }

 .lec-data {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     align-items: center;
     background: #fff;
     border: 1px solid #e5e7eb;
     border-left: 4px solid #00abc9;
     /* Stylish accent */
     padding: 5px 10px;
     border-radius: 5px;
     font-family: "Segoe UI", sans-serif;
     max-width: 420px;
     margin: 7px 0;
     box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
 }

 /* Course Number (left side) */
 .course-no span {
     font-weight: 700;
     font-size: 12px;
     color: #006e74;
     background: #e6f8fa;
     padding: 4px 10px;
     border-radius: 5px;
 }

 /* Right side column */
 .total-lectures {
     display: flex;
     flex-direction: column;
     text-align: right;
     gap: 4px;
 }

 .total-lectures span {
     font-size: 10px;
     font-weight: 500;
     color: #444;
 }

 /* ================ */

 .sd {
     display: flex;
     align-items: center;
     gap: 8px;
 }

 .bars {
     display: none;
     font-size: 19px;
     background: #32bbed;
     color: #fff;
     padding: 3px 10px;
     border-radius: 4px;
     cursor: pointer;
     z-index: 2001;
 }

 .bars:hover {
     background: #006e74;
 }


 /* ================== */

/* Resume Course Card */
.resume-course1 {
  margin: 40px 0px 15px 0px;
}

.course-header1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 5px;
  padding: 15px 20px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  gap: 20px;
  flex-wrap: wrap;
}

.course-info1 {
  flex: 1;
  min-width: 200px;
}

.course-title1 {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}

/* Compact Progress Bar */
.progress-bar-container1 {
  width: 180px;
  height: 6px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar1 {
  height: 100%;
  background: linear-gradient(90deg, #0291aa, #00C6FF);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Course Meta Info */
.course-meta1 {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: #444;
  flex-wrap: wrap;
  font-weight: 600;
}

.course-meta1 i {
  color: #ffffff;
    border: 2px solid;
    padding: 4px;
    background: #019fbb;
    border-radius: 3px;
}

/* Resume Button */
.resume-btn1 {
  background: #ab3fbe;
  color: #fff;
  border: none;
  padding: 8px 25px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.resume-btn1 i {
  margin-right: 6px;
}

.resume-btn1:hover {
  background: #620672;
  box-shadow: 0 3px 10px rgba(0, 142, 255, 0.3);
  color: #fff;
    transform: translateX(4px);
}

/* Responsive for smaller screens */
@media (max-width: 767px) {
  .course-header1 {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 10px;
  }

  .progress-bar-container1 {
    width: 100%;
  }

  .course-meta1 {
    justify-content: flex-start;
    gap: 10px;
  }

  .resume-btn1 {
    width: 100%;
    text-align: center;
  }
}



 /* responsive design for smaller screens */

 /* Mobile behavior */
 @media (max-width: 991px) {
     .bars {
         display: block;
         /* Show hamburger */
     }

     #navbar2-menu {
         display: none;
         /* Hide top menu in mobile */
     }
 }


@media (max-width:767px){

    /* By default, sidebar is hidden on mobile */
    .sidebar {
        display: none;
        width: 0;
        overflow: hidden;
        position: absolute;
        transition: all 0.4s ease;
    }

    .sidebar.active {
        display: block;
        width: 270px;
        overflow: visible;
        position: absolute;
        z-index: 1;
    }

    .layout{
        display: block;
    }

    .main {
        width: 100% !important;
        padding: 20px 5px 20px 5px !important;
    }

    .lecture-sidebar {
        display: none;
        width: 0;
        position: absolute;
        transition: all 0.4s ease;
    }
    .lecture-sidebar.active {
        display: block;
        width: 250px;
    }
    #course-title-main-div{
        width: 270px;
    }
    #course-title-main{
        width: 230px;
    }

    .page {
        padding: 30px 15px;
    }
    .footer::before{
        z-index: 2;
    }
    .hide-sidebar-button2 i, .show-sidebar-button2 i{
        font-size: 18px;
        border-radius: 2px;
    }
}



