/* MyLondonExam — public Class times page */

.timetable-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #991b1b 100%);
}

.timetable-intro {
    max-width: 720px;
}

.timetable-table-wrap {
    border-radius: 16px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--surface, #fff);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.timetable-table {
    min-width: 720px;
}

.timetable-table thead th {
    background: #1e3a8a;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    padding: 0.85rem 1rem;
    white-space: nowrap;
}

.timetable-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-color: var(--border, #e2e8f0);
}

.timetable-table tbody tr:hover {
    background: rgba(30, 58, 138, 0.04);
}

.tt-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tt-status-open {
    background: #16a34a;
    color: #fff;
}

.tt-status-few {
    background: #ea580c;
    color: #fff;
}

.tt-status-full {
    background: #64748b;
    color: #fff;
}

.btn-timetable-wa {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    font-weight: 600;
}

.btn-timetable-wa:hover {
    background: #1da851;
    border-color: #1da851;
    color: #fff;
}

.tt-action-muted {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.timetable-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.timetable-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
}

.timetable-alert {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.timetable-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

@media (max-width: 767.98px) {
    .timetable-table {
        min-width: 100%;
    }

    .timetable-table thead {
        display: none;
    }

    .timetable-table tbody tr {
        display: block;
        border-bottom: 1px solid #e2e8f0;
        padding: 0.75rem 0;
    }

    .timetable-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border: none;
        padding: 0.35rem 1rem;
        text-align: right;
    }

    .timetable-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        text-align: left;
    }
}
