/* Основные стили */
.schedule-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
}

.schedule-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1a0c4a; /* Основной акцент */
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.schedule-title:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #ffd700; /* Декоративные элементы */
}

.schedule-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    background-color: #f4f1fa; /* Светлый фон */
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(26, 12, 74, 0.05);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9rem;
    color: #3a2a7a; /* Дополнительный акцент */
}

.form-input, .form-select {
    padding: 10px 12px;
    border: 1px solid #DDDDDD;
    border-radius: 6px;
    font-size: 1rem;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus {
    border-color: #3a2a7a;
    box-shadow: 0 0 0 2px rgba(58, 42, 122, 0.2);
    outline: none;
}

.schedule-button {
    padding: 12px;
    background-color: #1a0c4a; /* Основной акцент */
    color: #ffffff !important; /* Текст на темном фоне */
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(26, 12, 74, 0.2);
}

.schedule-button:hover {
    background-color: #3a2a7a; /* Дополнительный акцент */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 12, 74, 0.3);
}

/* Группы и пары */
.schedule-group {
    margin-bottom: 25px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #6a1b9a; /* Дополнительный цвет 1 */
}

.schedule-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.group-title {
    font-size: 1.2rem;
    color: #1a0c4a; /* Основной акцент */
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E0E9F5;
    position: relative;
}

.group-title:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #ffd700; /* Декоративные элементы */
}

.lesson-block {
    margin-bottom: 20px;
    background: #f4f1fa; /* Светлый фон */
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
}

.lesson-block:hover {
    background: #E8F3FE;
}

.lesson-number {
    font-size: 1.1rem;
    color: #6a1b9a; /* Дополнительный цвет 1 */
    margin-bottom: 10px;
    font-weight: 600;
}

/* Карточки расписания */
.schedule-card {
    background: #ffffff;
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #E0E9F5;
}

.card-header {
    padding: 10px 12px;
    background-color: #1a0c4a; /* Основной акцент */
    font-weight: 500;
    color: #ffffff; /* Текст на темном фоне */
}

.card-body {
    padding: 12px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

.card-row:last-child {
    border-bottom: none;
}

.label {
    font-weight: 500;
    color: #3a2a7a; /* Дополнительный акцент */
    font-size: 0.9rem;
    flex: 1;
}

.value {
    font-weight: 400;
    color: #333333; /* Основной текст */
    font-size: 0.95rem;
    flex: 2;
    text-align: right;
}

/* Мета-информация */
.schedule-meta {
    background: #f4f1fa; /* Светлый фон */
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #3a2a7a; /* Дополнительный акцент */
}

.meta-item {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-item strong {
    font-weight: 500;
    color: #1a0c4a; /* Основной акцент */
}

/* Уведомления */
.schedule-notice {
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 0.95rem;
    position: relative;
    padding-left: 45px;
}

.schedule-notice:before {
    content: "!";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.schedule-notice.error {
    background-color: #fdecea;
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

.schedule-notice.success {
    background-color: #e8f5e9;
    color: #388e3c;
    border-left: 4px solid #388e3c;
}

.schedule-notice.info {
    background-color: #E8F3FE;
    color: #1a0c4a; /* Основной акцент */
    border-left: 4px solid #3a2a7a; /* Дополнительный акцент */
}

.schedule-loading {
    padding: 20px;
    text-align: center;
    color: #3a2a7a; /* Дополнительный акцент */
}

/* Анимация загрузки */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.schedule-loading:after {
    content: "Загрузка...";
    animation: pulse 1.5s infinite;
}

  /* Стили для кнопок фильтров */
.course-filters button,
#group-filters button,
.teacher-filters button {
  display: inline-block;
  margin: 0 8px 10px 0;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 6px;
  border: 1px solid #3a2a7a;
  background-color: #ffffff;
  color: #3a2a7a;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.course-filters button.active,
#group-filters button.active,
.teacher-filters button.active,
.course-filters button:hover:not(.active),
#group-filters button:hover:not(.active),
.teacher-filters button:hover:not(.active) {
  background-color: #1a0c4a; /* твой основной акцент */
  color: #ffffff;
  border-color: #1a0c4a;
  box-shadow: 0 2px 8px rgba(58, 42, 122, 0.3);


}