/* Admin Sidebar Styles */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: width 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.admin-sidebar.open {
  width: 280px;
}

.admin-sidebar.closed {
  width: 60px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 70px;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.admin-sidebar.closed .sidebar-header h2 {
  opacity: 0;
  display: none;
}

.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sidebar-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
  padding: 20px 0;
  overflow-y: auto;
  height: calc(100vh - 110px);
}

.nav-section {
  margin-bottom: 30px;
}

.nav-section h3 {
  margin: 0 0 15px 0;
  padding: 0 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.admin-sidebar.closed .nav-section h3 {
  opacity: 0;
  display: none;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: rgba(255, 255, 255, 0.3);
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.15);
  border-left-color: white;
  color: white;
  font-weight: 500;
}

.nav-icon {
  margin-right: 12px;
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.nav-text {
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.admin-sidebar.closed .nav-text {
  opacity: 0;
  display: none;
}

.admin-sidebar.closed .nav-item {
  padding: 12px;
  justify-content: center;
}

.admin-sidebar.closed .nav-icon {
  margin-right: 0;
}

/* Dark theme support */
[data-theme='dark'] .admin-sidebar {
  background: linear-gradient(
    135deg,
    var(--color-bg-secondary) 0%,
    var(--color-bg-tertiary) 100%
  );
  color: var(--color-text-primary);
  border-right: 1px solid var(--color-border-light);
}

[data-theme='dark'] .sidebar-header {
  border-bottom: 1px solid var(--color-border-light);
}

[data-theme='dark'] .sidebar-toggle {
  color: var(--color-text-primary);
}

[data-theme='dark'] .sidebar-toggle:hover {
  background-color: var(--color-bg-tertiary);
}

[data-theme='dark'] .nav-item {
  color: var(--color-text-secondary);
  border-left-color: transparent;
}

[data-theme='dark'] .nav-item:hover {
  background-color: var(--color-bg-tertiary);
  color: var(--color-text-primary);
  border-left-color: var(--color-border-medium);
}

[data-theme='dark'] .nav-item.active {
  background-color: var(--color-bg-tertiary);
  border-left-color: var(--color-primary);
  color: var(--color-text-primary);
}

/* Remove portrait monitor overlay - let normal layout handle it */

/* Responsive design */

/* Mobile overlay backdrop */
