/* Sidebar base */
.admin-sidebar {
  width: 250px;
  background: #111;
  color: #fff;
  flex-shrink: 0;
  padding: 20px 0;
  position: fixed;
  top: 60px; /* below navbar */
  left: 0;
  bottom: 0;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
}
.admin-sidebar .sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.admin-sidebar .sidebar-header h3 {
  margin: 0;
}
.admin-sidebar .sidebar-close {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.sidebar-menu li a {
  display: block;
  padding: 12px 20px;
  color: #ddd;
  text-decoration: none;
  transition: 0.3s;
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
  background: #444;
  color: #fff;
}

/* Mobile toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 65px;
  left: 10px;
  background: #111;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
  z-index: 1100;
  border-radius: 4px;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.active {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: block;
  }
  .sidebar-overlay.active {
    display: block;
  }
  .admin-sidebar .sidebar-close {
    display: block;
  }
}
