/* Боковое меню */
.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background: linear-gradient(180deg, #2c3e50 0%, #1a2632 100%);
  color: white;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  overflow-y: auto;
}

.admin-sidebar.collapsed {
  width: 70px;
}

.admin-sidebar.collapsed .sidebar-link span,
.admin-sidebar.collapsed .sidebar-header h3 {
  display: none;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h3 {
  margin: 0;
  font-size: 18px;
  white-space: nowrap;
}

.sidebar-nav {
  padding: 20px 0;
}

.sidebar-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #ecf0f1;
  text-decoration: none;
  transition: all 0.3s;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}

.sidebar-link.active {
  background: #3498db;
  color: white;
  border-left: 4px solid #fff;
}

.sidebar-link i {
  width: 24px;
  text-align: center;
  font-size: 18px;
}

.toggle-sidebar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #34495e;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 18px;
  transition: all 0.3s;
}

.toggle-sidebar:hover {
  background: #3498db;
}

/* Основной контент со сдвигом */
.admin-content {
  margin-left: 260px;
  padding: 20px;
  transition: all 0.3s ease;
}

.admin-sidebar.collapsed + .admin-content {
  margin-left: 70px;
}

@media (max-width: 768px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-content {
    margin-left: 0;
  }
  .mobile-menu-btn {
    display: block;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: #2c3e50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
  }
}