/* === Sidebar Base === */
.sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-right: 1px solid #e0e0e0;
  box-shadow: 2px 0 6px rgba(0,0,0,0.03);
  z-index: 1030;
  transition: left 0.3s ease;
}

/* === Sidebar Collapsed === */
.sidebar-collapsed .sidebar {
  left: -250px;
}

.sidebar-collapsed .detail-container {
  margin-left: 0;
}

/* === Sidebar Header === */
.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-logo {
  height: 40px;
  width: auto;
}

/* === Sidebar Links === */
.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  color: #333;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.nav-link i {
  color: #2356F3;
  margin-right: 10px;
  font-size: 1rem;
}

.nav-link:hover {
  background-color: rgba(35, 86, 243, 0.08);
  border-left-color: #2356F3;
  text-decoration: none;
  color: #000;
}

.active-section {
  background-color: rgba(35, 86, 243, 0.1);
  border-left-color: #2356F3;
  color: #000;
}

/* === Divider === */
.sidebar-divider {
  border-top: 1px solid rgba(0,0,0,0.05);
  margin: 0.5rem 0;
}

/* === Sidebar Footer === */
.sidebar-footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  font-size: 0.8rem;
  background: #fafafa;
}

/* === Main Content === */
.detail-container {
  margin-left: 250px;
  padding: 80px 40px 40px;
  transition: margin-left 0.3s ease;
}

/* === Navbar Adjustments === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1040;
  background-color: #fff;
  border-bottom: 1px solid #eee;
}

/* === Mobile Behavior === */
@media (max-width: 991.98px) {
  .sidebar {
    left: -250px;
  }
  .sidebar.active {
    left: 0;
  }
  .detail-container {
    margin-left: 0 !important;
    padding: 80px 20px;
  }
}

/* === Submenu Styling === */
.has-submenu {
  position: relative;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}


.submenu .nav-link {
  font-size: 0.85rem;
  padding: 4px 12px;
  color: #555;
}

.submenu .nav-link:hover {
  background-color: rgba(35, 86, 243, 0.08);
  color: #000;
}

.has-submenu.open > .submenu {
  display: block;
  max-height: 300px; /* adjust as needed */
}

.has-submenu.open .chevron-icon {
  transform: rotate(90deg);
}

/* Smooth scroll for modern browsers */
.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15);
  border-radius: 3px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.3);
}


