/* .admin-container {
  display: flex;
}

.sidebar {
  width: 220px;
  background: #111;
  color: #fff;
  padding: 20px;
  min-height: 100vh;
}

.sidebar h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin-bottom: 10px;
}

.sidebar a {
  color: white;
  text-decoration: none;
}

.sidebar a.active {
  font-weight: bold;
  text-decoration: underline;
}

.admin-content {
  flex: 1;
  padding: 20px;
} */

.sidebar {
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: static;
  box-shadow: 4px 0 20px rgba(102, 126, 234, 0.15);
}

.sidebar.collapsed {
  width: 80px;
}

/* Header */
.sidebar-header {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.brand-icon {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.brand-text h2 {
  color: white;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-text span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.collapse-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.collapse-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(2px);
}

/* User Profile */
.user-profile {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.avatar {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  overflow: hidden;
}

.user-info h4 {
  color: white;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-info span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-actions {
  display: flex;
  gap: 0.5rem;
}

.profile-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* .notification-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  background: #ff4757;
  border-radius: 50%;
  border: 1px solid white;
} */

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 0 1rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-section {
  margin-bottom: 2rem;
}

.nav-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: block;
  padding: 0 0.75rem;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item {
  margin-bottom: 0.25rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-weight: 500;
  font-size: 0.875rem;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateX(4px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: white;
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-badge {
  background: rgba(255, 76, 87, 0.9);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.support-link {
  background: none !important;
  border: none;
  width: 100%;
  cursor: pointer;
  justify-content: flex-start;
}

.support-link:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Footer */
.sidebar-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
  width: 100%;
  background: rgba(255, 76, 87, 0.2);
  border: 1px solid rgba(255, 76, 87, 0.3);
  color: white;
  padding: 0.875rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.logout-btn:hover {
  background: rgba(255, 76, 87, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 76, 87, 0.2);
}

/* Collapsed State Adjustments */
.sidebar.collapsed .brand-text,
.sidebar.collapsed .user-info,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-badge,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .profile-actions,
.sidebar.collapsed .logout-btn span {
  display: none;
}

.sidebar.collapsed .user-profile {
  justify-content: center;
  padding: 1rem;
}

.sidebar.collapsed .nav-link {
  justify-content: center;
  padding: 0.875rem;
}

.sidebar.collapsed .sidebar-header {
  justify-content: center;
  padding: 1rem;
}

.sidebar.collapsed .collapse-btn {
  position: absolute;
  right: -16px;
  background: rgba(102, 126, 234, 0.9);
  border: 2px solid white;
  z-index: 10;
}

.sidebar.collapsed .sidebar-footer {
  padding: 1rem;
}

.sidebar.collapsed .logout-btn {
  padding: 0.875rem;
  justify-content: center;
}

/* Tooltips for collapsed state */
.sidebar.collapsed .nav-link,
.sidebar.collapsed .logout-btn,
.sidebar.collapsed .collapse-btn,
.sidebar.collapsed .profile-btn {
  position: relative;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .logout-btn:hover::after,
.sidebar.collapsed .profile-btn:hover::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* Scrollbar Styling */
.sidebar-nav::-webkit-scrollbar {
  width: 4px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

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

  .sidebar.collapsed {
    width: 280px;
  }

  .sidebar::after {
    content: "";
    position: fixed;
    top: 0;
    left: 280px;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar.mobile-open::after {
    opacity: 1;
    pointer-events: all;
  }
}

/* Admin Container Layout */
.admin-container {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

.admin-content {
  flex: 1;
  background: #f8fafc;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
    border-right-color: rgba(148, 163, 184, 0.1);
  }

  .admin-content {
    background: #0f172a;
  }
}
