/* ===============================
   SIDEBAR FINAL (MINIMAL PRO)
================================= */

.main-sidebar {
  background: linear-gradient(180deg, #020617, #0f172a) !important;
  
}

/* MAIN MENU */
.sidebar-menu > li > a {
  font-size: 15px;        /* 👈 perfect size */
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #9ca3af !important; /* soft gray */
}

/* ICON */
.sidebar-menu li a i {
  font-size: 15px;
  color: #6b7280 !important;
}

/* HOVER */
.sidebar-menu > li > a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff !important;
}

/* ACTIVE (🔥 CLEAN, NOT HEAVY) */
.sidebar-menu > li.active > a,
.sidebar-menu > li.menu-open > a {
  background: rgba(255,255,255,0.06) !important;
  color: #ffffff !important;
  font-weight: 600;
  border-radius: 8px;
}

/* ACTIVE ICON */
.sidebar-menu li.active > a i {
  color: #ffffff !important;
}

/* ===============================
   SUBMENU FIX (PREMIUM CLEAN)
================================= */

.treeview-menu {
  margin: 6px 0 8px 36px;  /* 👈 better spacing */
  padding: 6px 0;
  background: transparent;
}

/* submenu item */
.treeview-menu li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: #94a3b8 !important;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* hover */
.treeview-menu li a:hover {
  background: rgba(255,255,255,0.06);
  color: #ffffff !important;
}

/* active submenu */
.treeview-menu li.active a {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 500;
}

/* remove bullet / line */
.treeview-menu li {
  list-style: none;
  margin-bottom: 4px;
}

/* ===============================
   TOP HEADER THEME FIX
================================= */

/* Header main */
.main-header {
  background: linear-gradient(90deg, #2563eb, #22c55e) !important;
  box-shadow: none !important; /* remove dark top line */
}

/* Navbar */
.main-header .navbar {
  background: transparent !important;
  box-shadow: none !important;
}

/* Remove any header bottom borders that look like a black line */
.main-header div.logo-box,
.main-header .logo-box,
.main-header .navbar {
  border-bottom: 0 !important;
}

/* Nuclear option: remove any residual hairline/shadow */
.main-header,
.main-header * {
  box-shadow: none !important;
}

.main-header,
.main-header .navbar,
.main-header div.logo-box,
.main-header .logo-box {
  border: 0 !important;
  outline: 0 !important;
  overflow: visible !important; /* allow dropdown menus to render */
}

/* Ensure dropdown is not clipped and stays on top */
.main-header .navbar-custom-menu,
.main-header .navbar-custom-menu .dropdown,
.main-header .navbar-custom-menu .dropdown-menu {
  overflow: visible !important;
}

.main-header .navbar-custom-menu .dropdown-menu {
  z-index: 3000;
}

/* Mobile header: keep controls inside the blue bar */
@media (max-width: 767px) {
  .main-header .navbar {
    min-height: 56px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  /* This rule from base theme pushes buttons down (margin: 18px 5px) */
  .main-header .r-side .app-menu,
  .main-header .r-side .btn-group a {
    margin: 4px 5px !important; /* move controls slightly up */
  }

  /* hamburger a bit more up */
  .main-header .navbar .push-btn {
    margin-top: -10px !important;
  }
}

/* Logo section */
.logo-box {
  background: transparent !important;
  border-right: 0 !important; /* remove black vertical line */
}

/* Toggle button */
.push-btn {
  background: rgba(255,255,255,0.15) !important;
  border-radius: 8px;
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.push-btn i {
  color: #fff !important;
  font-size: 18px;
  opacity: 1 !important;
}

/* Extra specificity for header hamburger visibility */
.main-header .navbar .push-btn {
  background: rgba(2, 6, 23, 0.22) !important;
  border: 0 !important; /* remove dark border */
  box-shadow: none !important; /* remove any dark edge */
  outline: none !important;
}

.main-header .push-btn {
  border: 0 !important;
  box-shadow: none !important;
}

.main-header .navbar a.push-btn.btn-primary-light {
  border-color: transparent !important;
  box-shadow: none !important;
}

.main-header .navbar .push-btn i {
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

/* Ensure no focus/active outline looks like border */
.main-header .navbar .push-btn:focus,
.main-header .navbar .push-btn:focus-visible,
.main-header .navbar .push-btn:active {
  outline: none !important;
  box-shadow: none !important;
}

/* User name */
.navbar .text-primary {
  color: #fff !important;
}

/* Role text */
.text-mute {
  color: rgba(255,255,255,0.7) !important;
}

/* Avatar */
.avatar {
  border: 2px solid rgba(255,255,255,0.3);
}

/* Dropdown */
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Dropdown hover */
.dropdown-item:hover {
  background: #f1f5f9;
}

/* Header spacing */
.main-header .navbar-nav > li > a {
  padding: 10px 15px;
}

/* Slightly lift hamburger + user dropdown in header bar */
.main-header .navbar .header-megamenu.nav {
  align-items: flex-start !important;
}

.main-header .navbar .push-btn {
  margin-top: -6px !important;
}

.main-header .navbar-custom-menu .navbar-nav {
  align-items: flex-start !important;
}

.main-header .navbar-custom-menu .navbar-nav > li {
  margin-top: -6px !important;
}

/* Remove old background */
.navbar-static-top {
  background: transparent !important;
}

/* REMOVE white box */
.navbar-custom-menu .user-menu > a {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 8px 12px !important;
}

/* hover clean */
.navbar-custom-menu .user-menu > a:hover {
  background: rgba(255,255,255,0.1) !important;
  border-radius: 8px;
}

/* USER BOX STYLE */
.navbar-custom-menu .user-menu > a .d-flex {
  background: rgba(255,255,255,0.15);
  padding: 6px 10px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.navbar-custom-menu .user-menu p {
  color: #fff !important;
}

.navbar-custom-menu .user-menu small {
  color: rgba(255,255,255,0.7) !important;
}
.avatar {
  border: 2px solid rgba(255,255,255,0.4);
}

.sidebar-menu > li > a {
  line-height: 1.4;
}

/* ===============================
   SIDEBAR TOP SPACING FIX
================================= */

/* Sidebar ke andar space */
.sidebar {
  padding-top: 15px;  /* 👈 main fix */
}

/* First menu item ko extra space */
.sidebar-menu > li:first-child {
  margin-top: 10px;
}

/* Har menu ke beech spacing */


