:root {
    /* tm-primary colors */
    --tm-primary-15: #fff3ff;
    --tm-primary-25: #feeffa;
    --tm-primary-50: #fcdff4;
    --tm-primary-100: #f9bfea;
    --tm-primary-200: #f6a0df;
    --tm-primary-300: #f380d5;
    --tm-primary-400: #f060ca;
    --tm-primary-500: #d856b6;
    --tm-primary-600: #c04da2;
    --tm-primary-700: #a8438d;
    --tm-primary-800: #903a79;
    --tm-primary-900: #783065;
    --tm-primary-950: #602651;
}

.schedule-container {
    width: 70%; /* Full width for responsiveness */
    max-width: 1200px; /* Max width to prevent overly wide tables on large screens */
    margin: 0 auto;
    padding: 20px;
    height: 50%;
    overflow-x: auto; /* Keep horizontal scroll for small screens */
    box-sizing: border-box; /* Ensure padding doesn't increase width */
}

.schedule {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    table-layout: auto; /* Allow columns to adjust based on content */
}

.schedule thead {
    background-color: var(--tm-primary-100);
    color: black;
}

.schedule th,
.schedule td {
    border: 1px solid #ccc;
    padding: 10px; /* Reduced padding for smaller screens */
    text-align: center;
    vertical-align: middle;
    color: black;
    font-size: 0.9em; /* Slightly smaller base font size */
}

.schedule tbody tr:nth-child(odd) {
    background-color: var(--tm-primary-15);
}

.schedule tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.bold {
    font-weight: bold;
    font-size: 1.1em;
}

.note {
    font-size: 0.8em;
    color: #444;
    display: block;
    margin-top: 4px;
}

.time-note {
    font-size: 0.85em;
    color: #555;
    display: block;
    margin-top: 6px;
}

/* Media query for tablets and smaller screens */
@media screen and (max-width: 768px) {
    .schedule-container {
        padding: 10px; /* Reduced padding for smaller screens */
    }

    .schedule th,
    .schedule td {
        padding: 8px; /* Further reduce padding */
        font-size: 0.85em; /* Smaller font for better fit */
    }

    .bold {
        font-size: 1em; /* Adjust bold text size */
    }

    .note,
    .time-note {
        font-size: 0.75em; /* Smaller note text */
    }
}

/* Media query for mobile devices */
@media screen and (max-width: 480px) {
    .schedule-container {
        padding: 5px; /* Minimal padding for mobile */
    }

    .schedule {
        font-size: 0.8em; /* Reduce overall font size */
    }

    .schedule th,
    .schedule td {
        padding: 6px; /* Minimal padding */
        min-width: 80px; /* Ensure columns don't collapse too much */
    }

    .schedule thead {
        font-size: 0.9em; /* Slightly smaller header text */
    }

    .bold {
        font-size: 0.95em; /* Further adjust bold text */
    }

    .note,
    .time-note {
        font-size: 0.7em; /* Smallest note text for mobile */
    }

    /* Improve scroll experience */
    .schedule-container {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}
.filter-section {
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--tm-primary-25);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.filter-section h3 {
    margin: 0 0 10px;
    color: var(--tm-primary-900);
    font-size: 1.2em;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.filter-controls label {
    color: var(--tm-primary-800);
    font-weight: bold;
}

.filter-controls select,
.filter-controls button {
    padding: 8px;
    border: 1px solid var(--tm-primary-200);
    border-radius: 5px;
    background-color: #ffffff;
    color: var(--tm-primary-900);
    font-size: 0.9em;
}

.filter-controls select {
    min-width: 120px;
}

.filter-controls button {
    background-color: var(--tm-primary-400);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.filter-controls button:hover {
    background-color: var(--tm-primary-500);
}

/* Highlight filtered rows */
.filtered-row {
    background-color: var(--tm-primary-50) !important;
}

/* Media query for tablets */
@media screen and (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-controls select,
    .filter-controls button {
        width: 100%;
        font-size: 0.85em;
    }
}

/* Media query for mobile */
@media screen and (max-width: 480px) {
    .filter-section {
        padding: 10px;
    }

    .filter-section h3 {
        font-size: 1em;
    }

    .filter-controls select,
    .filter-controls button {
        font-size: 0.8em;
        padding: 6px;
    }
}

.class-descriptions {
    width: 70%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 15px;
    background-color: var(--tm-primary-15);
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.class-descriptions h2 {
    color: var(--tm-primary-900);
    font-size: 1.5em;
    margin-bottom: 10px;
}

.class-descriptions ul {
    list-style-type: none;
    padding: 0;
}

.class-descriptions li {
    margin-bottom: 10px;
    color: var(--tm-primary-800);
    font-size: 0.95em;
}

.class-descriptions li strong {
    color: var(--tm-primary-700);
}

/* Media query for tablets */
@media screen and (max-width: 768px) {
    .class-descriptions {
        padding: 10px;
    }

    .class-descriptions h2 {
        font-size: 1.2em;
    }

    .class-descriptions li {
        font-size: 0.9em;
    }
}

/* Media query for mobile */
@media screen and (max-width: 480px) {
    .class-descriptions {
        padding: 5px;
    }

    .class-descriptions h2 {
        font-size: 1em;
    }

    .class-descriptions li {
        font-size: 0.85em;
    }
}