/* side menu */
/* --- Sidebar layout (header fixed, content scrolls) --- */
#bdSidebar {
  position: fixed;
  top: 52px;
  /* height of your top navbar */
  bottom: 0;
  width: 270px;
  border-right: 2px solid #198754;
  background: #212529;
  /* Dark background for whole sidebar */
  color: #fff;
  display: flex;
  flex-direction: column;
}


/* Fixed header inside the sidebar */
#bdSidebar .sidebar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #212529;
  /* ensure header matches sidebar */
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* The ONLY scrollable region */
#bdSidebar .sidebar-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  background: #212529;
  /* ensure scrollable area is also dark */

  /* Hide scrollbar cross-browser */
  -ms-overflow-style: none;
  /* IE 10+ */
  scrollbar-width: none;
  /* Firefox */
}

#bdSidebar .sidebar-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  /* Chrome / Safari / Edge */
}

/* Your existing link styles (kept as-is) */
#bdSidebar .nav-link {
  transition: all 0.3s ease-in-out;
  font-weight: 500;
}

#bdSidebar .nav-link:hover {
  background-color: rgba(25, 135, 84, 0.2);
  color: #ffc107 !important;
  transform: translateX(5px);
}

#bdSidebar .nav-link.active {
  background-color: #198754 !important;
  color: #fff !important;
  font-weight: 600;
  border-left: 4px solid #ffc107;
}

#bdSidebar .nav-item i {
  width: 20px;
}

#bdSidebar hr {
  border-color: rgba(255, 255, 255, .15);
  /* subtle line in dark */
  background: #212529;
  /* match sidebar background */
  margin: 0.5rem 0;
}

#bdSidebar .sidebar-footer {
  background: #212529;
  /* match sidebar background */
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: #adb5bd;
  /* softer text */
  font-size: 0.85rem;
}

/* Sidebar text */
.mynav,
.mynav1,
.topics,
.notification-badge {
  font-size: clamp(12px, 1vw, 16px);
  /* ✅ Responsive font size */
}

.mynav {
  color: #fff;
  font-size: 13px;
}

.mynav1 {
  font-size: 14px;
}

.mynav li a {
  color: #fff;
  text-decoration: none;
  width: 100%;
  display: block;
  border-radius: 5px;
  padding: 8px 5px;
}

.mynav li a.active {
  background: rgba(255, 255, 255, 0.2);
}

.mynav li a:hover {
  background: rgba(255, 255, 255, 0.2);
  font-size: 15px;
}

.mynav li a i {
  width: 25px;
  text-align: center;
}

/*  side menu topic and sub topic*/
.topics {
  font-weight: bold;
  color: #fff;
  font-size: 14px;
}

/* my red asterix*/
.require {
  font-size: 8px;
  color: red;
}

.notification-badge {
  background-color: rgba(255, 255, 255, 0.7);
  float: right;
  color: #222;
  font-size: 14px;
  padding: 0px 8px;
  border-radius: 2px;
}

.content {
  letter-spacing: .3px;
  margin-left: 270px;
  /* Same as sidebar width */

}

.content-wrapper {
  margin-top: 30px;
  margin-left: 270px;
  /* sidebar width */
  width: calc(100% - 270px);
}

@media (min-width: 992px) {
  .content {
    margin-left: 270px;
    /* Same as sidebar width */
  }

}

@media (max-width: 992px) {
  .content {
    margin-left: 0px;
    /* Same as sidebar width */
  }
  
  .content-wrapper {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 620px) {
  .content {
    font-size: 15px;
    /* Same as sidebar width */
    margin-left: -1px;
  }
}
