/* ============================================================
   sidebar.css — shared Super Admin sidebar
   Used by every page in /admin via partials/sidebar-dashboard.html
   ============================================================ */

.dashboard-container { display: flex; min-height: 100vh; }

.main-content {
  margin-left: 270px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: margin-left .28s cubic-bezier(.4,0,.2,1);
}

/* ---------- Sidebar ---------- */
.sidebar {
  width: 270px;
  background: linear-gradient(160deg, #0f1623, #1a2535 60%, #1e2d40);
  position: fixed; left: 0; top: 0;
  height: 100vh; z-index: 200;
  display: flex; flex-direction: column;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
  overflow: hidden;
  transform: translateX(0);
  opacity: 0;
}
.sidebar.sidebar-ready { opacity: 1; }

#sidebar-slot { position: relative; }
.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.logo-section { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2d3748, #1a202c);
  display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 900; color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.logo-text { font-size: 18px; font-weight: 800; color: #fff; }
.admin-badge {
  display: inline-block;
  background: linear-gradient(135deg, #be123c, #9f1239);
  color: #fff; font-size: 9px; font-weight: 800;
  padding: 2px 8px; border-radius: 20px;
  letter-spacing: .07em; margin-top: 3px;
}
.sidebar-nav {
  flex: 1; overflow-y: auto;
  padding: 8px 0 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.08) transparent;
}
.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 20px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: background .14s, color .14s;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.95); }
.nav-item.active {
  background: rgba(255,255,255,.12); color: #fff;
  font-weight: 700; border-left-color: rgba(255,255,255,.7);
}
.nav-item-logout { border-top: 1px solid rgba(255,255,255,.07); color: rgba(255,150,150,.8); }
.nav-item-logout:hover { background: rgba(220,38,38,.15); color: #fca5a5; }
.nav-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
  transition: background .14s;
}
.nav-item.active .nav-icon { background: rgba(255,255,255,.16); }

/* ---------- Mobile menu button ---------- */
.mobile-menu-btn {
  display: none;
  position: fixed; top: 13px; left: 13px; z-index: 201;
  background: #374151; color: #fff; border: none;
  border-radius: 8px; width: 36px; height: 36px;
  font-size: 18px; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

@media (max-width: 900px) {
  .main-content { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu-btn { display: flex; }
}

.nav-section-label{font-size:.66rem;font-weight:800;letter-spacing:.04em;color:#9ca3af;text-transform:uppercase;padding:14px 16px 4px;}
