/* Sidebar-specific styles (prefer IDs to avoid overlap) */

/* Increase sidebar width */
:root {
  --sidebar-width: 160px;
}

/* Sidebar (moved from admin.css) */
#sidebar.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-body);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 20px;
  gap: 2px;
}

#sidebar .sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 10px 16px;
  flex-shrink: 0;
  margin-bottom: 8px;
}

#sidebar .sidebar-logo img {
  height: 64px;
  width: auto;
}

#sidebar .sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

#sidebar .sidebar-nav .nav-item {
  width: 100%;
  display: flex;
  justify-content: center;
}

#sidebar .sidebar-nav .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: all 0.2s;
  width: 118px;
  text-align: center;
  line-height: 1.2;
}

#sidebar .sidebar-nav .nav-link i {
  font-size: 20px;
}

#sidebar .sidebar-nav .nav-link:hover {
  color: var(--primary);
}

#sidebar .sidebar-nav .nav-link.active {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Overlay + toggle (moved from admin.css) */
#sidebarOverlay.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1150;
  backdrop-filter: blur(2px);
}

#sidebarOverlay.sidebar-overlay.show {
  display: block;
}

.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
}

/* Responsive sidebar behavior (moved from admin.css) */
@media (max-width: 991.98px) {
  .top-logo-spacer { width: 0; }
  .breadcrumb-spacer { width: 0; }

  #sidebar.sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
  }
  #sidebar.sidebar.show {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

