.modal-overlay {
    z-index: 1000;
    background-color: rgba(15, 23, 42, 0.7);
    transition: opacity 0.3s ease;
}

.modal-content {
    animation: zoomIn 0.3s ease-in-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- Calendar Container & Header (Desktop) --- */
.calendar-container {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calendar-header-btn {
    background-color: #f1f5f9;
    border-radius: 9999px;
    padding: 0.5rem;
    transition: background-color 0.2s ease;
}

.calendar-header-btn:hover {
    background-color: #e2e8f0;
}

/* --- Calendar Grid & Days (Desktop) --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #64748b;
    font-size: 0.875rem;
    padding: 0.75rem 0;
}

.calendar-day {
    padding: 0.5rem;
    min-height: 110px;
    border-top: 1px solid #f1f5f9;
    border-left: 1px solid #f1f5f9;
}

.calendar-day.other-month {
    background-color: #f8fafc;
}

/* --- Course Event Pill (Desktop) --- */
.course-event {
    display: block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-top: 0.25rem;
    border-radius: 0.375rem;
    background-color: #e0e7ff;
    color: #3730a3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background-color 0.2s;
}

.course-event:hover {
    background-color: #c7d2fe;
    color: #312e81;
}

/* --- Mobile List View Styles --- */
.mobile-course-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    margin-bottom: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mobile-course-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.mobile-course-date-badge {
    flex-shrink: 0;
    text-align: center;
    background-color: #eef2ff;
    color: #4338ca;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.mobile-course-date-day {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.mobile-course-date-month {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Category Card Style --- */
.category-card {
    display: block;
    padding: 1.5rem;
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    transform: translateY(-4px);
}