* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: linear-gradient(135deg, #6e48aa, #9d50bb);
  color: white;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Убеждаемся, что весь контент поверх фона */
body > *:not(#code-background) {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  width: 90%;
  margin: 30px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* Адаптивность */
@media (max-width: 768px) {
  .container {
    width: 95%;
    padding: 0 15px;
  }
}

.hidden {
  display: none;
}

/* Анимации для уведомлений */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.schedule-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 20px;
    background: #f0f0f0;
    color: #555;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
    text-align: center;
}

.filter-btn:hover {
    background: #e0e0e0;
}

.filter-btn.active {
    background: #6e48aa;
    color: white;
    box-shadow: 0 3px 8px rgba(110, 72, 170, 0.3);
}

footer {
    margin-top: auto;
}