/* Sidebar Navigation Styles - Common for all admin pages */

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.5);
}

.sidebar-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.sidebar-nav {
  padding: 16px 0;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-left-color: #3b82f6;
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-left-color: #3b82f6;
  font-weight: 600;
}

.nav-icon {
  font-size: 20px;
  line-height: 1;
  width: 24px;
  text-align: center;
  display: inline-block;
}

.nav-text {
  font-size: 15px;
  line-height: 1.4;
  flex: 1;
}

/* Main content area with sidebar */
body.has-sidebar {
  margin-left: 260px;
}

body.has-sidebar .topbar {
  width: 100%;
  position: sticky;
}

body.has-sidebar .topbar .container {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

body.has-sidebar main .container {
  max-width: 100% !important;
  width: 100%;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  body.has-sidebar {
    margin-left: 0;
  }

  body.has-sidebar .topbar {
    margin-left: 0;
    width: 100%;
  }

  /* Mobile menu toggle button */
  .mobile-menu-toggle {
    display: block;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Scrollbar styling for sidebar */
.admin-sidebar::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
