.admin-container {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
  position: relative;
}

.admin-content {
  flex: 1;
  background: #f8fafc;
  min-height: 100vh;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow-x: hidden;
}

.content-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 1001;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.mobile-menu-btn:active {
  transform: translateY(0);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  animation: overlayFadeIn 0.3s ease forwards;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.sidebar-wrapper {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop Styles */
@media (min-width: 769px) {
  .admin-content {
    margin-left: 0; /* Sidebar handles its own width */
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  .admin-content {
    width: 100%;
    padding-top: 80px; /* Space for mobile menu button */
  }

  .admin-content.menu-open {
    overflow: hidden;
  }

  .content-wrapper {
    padding: 0 1rem;
  }
}

/* Tablet Styles */
@media (max-width: 1024px) and (min-width: 769px) {
  .content-wrapper {
    padding: 0 1rem;
  }
}

/* Large Screen Optimization */
@media (min-width: 1200px) {
  .admin-content {
    padding: 0;
  }

  .content-wrapper {
    padding: 0;
  }
}

/* Smooth transitions for theme changes */
@media (prefers-reduced-motion: no-preference) {
  .admin-container,
  .admin-content,
  .sidebar-wrapper {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .admin-container,
  .admin-content {
    background: #0f172a;
  }

  .mobile-overlay {
    background: rgba(0, 0, 0, 0.8);
  }
}

/* Focus styles for accessibility */
.mobile-menu-btn:focus {
  outline: none;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3),
    0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Loading state styles */
.admin-content.loading {
  pointer-events: none;
}

.admin-content.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 250, 252, 0.8);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Print styles */
@media print {
  .mobile-menu-btn,
  .sidebar-wrapper,
  .mobile-overlay {
    display: none !important;
  }

  .admin-content {
    margin-left: 0 !important;
    padding: 0 !important;
  }
}

.admin-layout__content {
  padding: 40px;
}
