/* ==================== Calendar ==================== */
.calendar-container {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.calendar-header h3 {
    font-size: 1.5rem;
    color: var(--dark);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    min-height: 150px;
    transition: var(--transition);
}

.calendar-day:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.calendar-day.today {
    border-color: var(--primary);
    background: #f0f9ff;
}

.calendar-day.past {
    opacity: 0.6;
    background: #f8f9fa;
}

.day-header {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.day-name {
    font-size: 0.85rem;
    color: #6c757d;
}

.day-number {
    font-size: 1.2rem;
    margin-right: 5px;
}

.day-sessions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-session {
    padding: 8px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.calendar-session:hover {
    transform: translateX(5px);
}

.calendar-session.review {
    background: #e3f2fd;
    border-right: 3px solid #1976d2;
}

.calendar-session.intensive {
    background: #fff3e0;
    border-right: 3px solid #f57c00;
}

.calendar-session.exam_prep {
    background: #ffebee;
    border-right: 3px solid #c62828;
}

.calendar-session.light_review {
    background: #f1f8e9;
    border-right: 3px solid #558b2f;
}

.calendar-session.completed {
    opacity: 0.7;
    text-decoration: line-through;
}

.session-time {
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.session-course {
    font-size: 0.75rem;
    color: #6c757d;
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calendar-day {
        min-height: 120px;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}
