/* schedule.css - Стили для расписания */
:root {
    --schedule-color: #7209b7;
    --schedule-light: #9d4edd;
    --schedule-dark: #560bad;
}

/* Модальное окно расписания */
#modalSchedule .modal-content {
    max-width: 900px;
    max-height: 85vh;
    padding: 0;
    overflow: hidden;
}

/* Заголовок расписания */
.schedule-header {
    padding: 20px 30px;
    background: linear-gradient(135deg, var(--schedule-color), var(--schedule-dark));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.schedule-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-header .close-schedule {
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 300;
}

.schedule-header .close-schedule:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Контент расписания */
.schedule-content {
    padding: 20px 30px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Вкладки расписания */
.schedule-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 24px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.tab-button:hover {
    background: #e9ecef;
    color: var(--schedule-color);
    transform: translateY(-1px);
}

.tab-button.active {
    background: var(--schedule-color);
    color: white;
    border-color: var(--schedule-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.3);
}

/* Содержимое вкладок */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок дня */
.day-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4ff 100%);
    border-radius: 12px;
    border-left: 4px solid var(--schedule-color);
    box-shadow: 0 4px 15px rgba(114, 9, 183, 0.1);
}

.day-header h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.day-header .place {
    color: #666;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Общее расписание */
.general-schedule {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    border: 2px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.time-slot {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: #f8f9ff;
    padding-left: 10px;
    border-radius: 6px;
}

.time-slot:last-child {
    border-bottom: none;
}

.time-slot.special {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border-radius: 8px;
    padding: 14px 20px;
    margin: 15px 0;
    border-left: 4px solid #ffc107;
    border: 2px solid #ffeaa7;
}

.time-slot.special:hover {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
}

.time-slot .time {
    min-width: 130px;
    font-weight: 600;
    color: var(--schedule-color);
    font-size: 15px;
    font-family: 'Courier New', monospace;
}

.time-slot .event {
    flex: 1;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

/* Детальное расписание */
.detailed-schedule {
    display: grid;
    gap: 25px;
    margin-bottom: 25px;
}

.section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.section:hover {
    border-color: var(--schedule-light);
    box-shadow: 0 6px 20px rgba(114, 9, 183, 0.1);
}

.section h4 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.category-schedule {
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    border-radius: 10px;
    border-left: 4px solid var(--schedule-light);
    transition: all 0.3s ease;
}

.category-schedule:hover {
    background: linear-gradient(135deg, #f0f0f0, #e9ecef);
    transform: translateX(5px);
}

.category-schedule h5 {
    color: #333;
    margin-bottom: 12px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline {
    padding-left: 20px;
    border-left: 2px solid var(--schedule-light);
    margin-left: 10px;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 0;
    position: relative;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -26px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--schedule-color);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--schedule-light);
}

.timeline-item .time {
    min-width: 120px;
    font-weight: 600;
    color: var(--schedule-color);
    font-size: 14px;
    font-family: 'Courier New', monospace;
}

.timeline-item .event {
    flex: 1;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

/* Компактное расписание для 2-го дня */
.detailed-schedule.compact .category-schedule {
    padding: 12px;
    margin-bottom: 15px;
}

.detailed-schedule.compact .category-schedule h5 {
    font-size: 14px;
}

.detailed-schedule.compact .timeline-item {
    margin-bottom: 8px;
    padding: 6px 0;
}

.special-schedule {
    background: linear-gradient(135deg, #e8f4ff, #d6eaff);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    border: 2px solid #b3d4fc;
}

/* Примечание */
.schedule-note {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid #ffc107;
    font-size: 14px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    border: 2px solid #ffeaa7;
}

.schedule-note i {
    color: #856404;
    font-size: 16px;
    margin-top: 2px;
}

/* Скроллбар для контента */
.schedule-content::-webkit-scrollbar {
    width: 8px;
}

.schedule-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.schedule-content::-webkit-scrollbar-thumb {
    background: var(--schedule-light);
    border-radius: 4px;
}

.schedule-content::-webkit-scrollbar-thumb:hover {
    background: var(--schedule-color);
}

/* Адаптивность */
@media (max-width: 768px) {
    #modalSchedule .modal-content {
        width: 95%;
        margin: 20px auto;
    }
    
    .schedule-content {
        padding: 15px;
        max-height: calc(85vh - 70px);
    }
    
    .schedule-header {
        padding: 15px 20px;
    }
    
    .schedule-header h2 {
        font-size: 1.3rem;
    }
    
    .schedule-tabs {
        flex-direction: column;
        gap: 8px;
    }
    
    .tab-button {
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
        justify-content: center;
    }
    
    .time-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 0;
    }
    
    .time-slot .time {
        min-width: 100px;
        font-size: 14px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 6px 0;
    }
    
    .timeline-item .time {
        min-width: 100px;
    }
    
    .section {
        padding: 15px;
    }
    
    .day-header {
        padding: 15px;
    }
    
    .day-header h3 {
        font-size: 18px;
    }
    
    .general-schedule {
        padding: 15px;
    }
    
    .category-schedule {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .schedule-content {
        padding: 10px;
    }
    
    .day-header {
        padding: 12px;
    }
    
    .day-header h3 {
        font-size: 16px;
    }
    
    .general-schedule {
        padding: 12px;
    }
    
    .section h4 {
        font-size: 16px;
    }
    
    .time-slot .time,
    .timeline-item .time {
        min-width: 90px;
        font-size: 13px;
    }
    
    .time-slot .event,
    .timeline-item .event {
        font-size: 13px;
    }
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.tab-button.active:hover {
    animation: pulse 0.5s ease-in-out;
}

/* Иконки */
.tab-button i,
.section h4 i,
.category-schedule h5 i {
    font-size: 16px;
}

/* Подсветка текущего времени */
.current-time {
    background: linear-gradient(135deg, #e8f5e9, #d4edda) !important;
    border-left: 4px solid #28a745 !important;
}