/* 
 * Premium Ultra-Minimalist Schedule Styles (v3.5)
 * Refined Typography: Better weights, softer aesthetics, Fixed Layout.
 */

:root {
    --pr-primary: #3b82f6;
    --pr-primary-dark: #1d4ed8;
    --pr-bg: #ffffff;
    --pr-bg-soft: #f8fafc;
    --pr-text: #0f172a;
    --pr-text-muted: #64748b;
    --pr-border: #f1f5f9;
    --pr-radius: 28px;
}

.school-schedule {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--pr-text);
    max-width: 1100px;
    margin: 40px auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.school-schedule.is-loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.schedule-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-main-info h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
}

.header-main-info .accent { color: var(--pr-primary); }

.school-title {
    font-size: 1rem;
    color: var(--pr-text-muted);
    font-weight: 600;
    margin-top: 10px;
}

#currentTime { display: block; font-size: 1.5rem; font-weight: 800; color: var(--pr-primary); }
#currentDate { font-size: 0.9rem; color: var(--pr-text-muted); font-weight: 600; }

/* Class Selector */
.class-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.class-item {
    padding: 12px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.class-item:hover { border-color: var(--pr-primary); transform: translateY(-2px); }
.class-item.active { background: var(--pr-primary); border-color: var(--pr-primary); color: white; }

/* Empty State */
.no-selection {
    text-align: center;
    padding: 100px 40px;
    background: white;
    border-radius: 40px;
    border: 3px dashed #f1f5f9;
    margin: 60px 0;
}

.no-selection-icon { font-size: 5rem; margin-bottom: 24px; display: block; }
.no-selection h3 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }

/* Controls */
.schedule-controls {
    margin: 40px 0 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selected-info h2 { font-size: 2rem; font-weight: 800; margin: 0; }

.controls { display: flex; gap: 12px; }

.control-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.control-btn:hover { border-color: var(--pr-primary); color: var(--pr-primary); }
.control-btn.primary { background: var(--pr-primary); color: white; border-color: var(--pr-primary); }

/* Day Cards Layout */
.days-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 32px;
}

.day-card {
    background: white;
    border-radius: 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.day-header {
    padding: 24px 30px;
    background: #F8FAFF;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-info { display: flex; align-items: center; gap: 14px; }
.day-icon {
    width: 40px; height: 40px; background: var(--pr-primary); color: white;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 700;
}
.day-details h4 { margin: 0; font-size: 1.25rem; font-weight: 800; }
.day-details span { font-size: 0.75rem; color: #94A3B8; font-weight: 600; }

.lessons-count { font-size: 0.75rem; font-weight: 700; color: #64748b; background: white; padding: 4px 10px; border-radius: 8px; border: 1px solid #f1f5f9; }

/* Lesson Rows - Lightened Font Weight */
.day-content {
    padding: 10px 0;
}

.lesson-row {
    display: flex;
    padding: 18px 30px;
    gap: 20px;
    align-items: baseline;
    transition: background 0.2s;
    position: relative;
}

.lesson-row:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: #f8fafc;
}

.time-slot {
    min-width: 95px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.time-start {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--pr-primary);
}

.time-end {
    font-size: 0.85rem;
    color: var(--pr-text-muted);
    font-weight: 500;
}

.lesson-info {
    flex: 1;
}

.subject-name {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--pr-text);
    line-height: 1.2;
}

/* Break Style */
.lesson-row.is-break {
    background: #f9fafb;
    opacity: 0.6;
}

.lesson-row.is-break .subject-name {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* PRINT MODE */
@media print {
    .class-selection, .schedule-header, .controls, .current-time, .day-icon, .lessons-count { display: none !important; }
    .school-schedule { opacity: 1 !important; transform: none !important; margin: 0 !important; width: 100% !important; }
    .day-card { border: 1px solid #ccc !important; border-radius: 0 !important; margin-bottom: 20px !important; }
    .day-header { background: #eee !important; border-bottom: 1px solid #000 !important; }
    .day-header h4 { font-size: 1.5rem !important; }
    .lesson-row { border-bottom: 1px solid #eee !important; display: flex !important; }
    .time-slot { min-width: 140px !important; }
    .subject-name { font-size: 1.3rem !important; font-weight: 600 !important; }
}