/* Sidebar Navigation Styles */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 260px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 0;
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar.collapsed {
  transform: translateX(-260px);
}

.sidebar-header {
  padding: 0 20px 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.sidebar-header h2 {
  font-size: 1.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-nav {
  padding: 20px 0;
}

.sidebar-nav ul {
  list-style: none;
}

.sidebar-nav li {
  margin: 0;
}

.sidebar-nav a {
  display: block;
  padding: 15px 25px;
  color: white;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 1.05em;
  border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #f5576c;
  padding-left: 30px;
}

.sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: #f093fb;
  font-weight: 600;
}

.sidebar-nav .nav-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-nav .nav-section-title {
  padding: 10px 25px;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  font-weight: 600;
}

/* Hamburger Menu Button */
.menu-toggle {
  position: fixed;
  left: 20px;
  top: 20px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 1001;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.menu-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Overlay for mobile */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
}

/* Content area adjustment */
.content-wrapper {
  margin-left: 0;
  transition: margin-left 0.3s ease;
  min-height: 100vh;
}

.content-wrapper.sidebar-open {
  margin-left: 260px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-260px);
  }

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

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

  .menu-toggle {
    left: 15px;
    top: 15px;
  }
}

@media (min-width: 769px) {
  .sidebar {
    transform: translateX(0);
  }

  .sidebar.collapsed {
    transform: translateX(-260px);
  }

  .menu-toggle {
    left: 270px;
  }

  .sidebar.collapsed ~ .menu-toggle {
    left: 20px;
  }
}
