/* ========== TIMETABLE SPECIFIC STYLES ========== */

.prayer-card {
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 198, 233, 0.418) !important;
}

.prayer-icon {
    filter: drop-shadow(0 4px 8px rgba(57, 145, 218, 0.418));
}

.time-display {
    text-shadow: 0 2px 4px rgba(25, 119, 173, 0.432);
}

.today-timetable {
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure text is readable on light backgrounds */
.card-body.text-dark {
    color: #333 !important;
}

.card-body.text-dark .opacity-75 {
    opacity: 0.85 !important;
    color: #ffffff !important;
}

.table {
    font-size: 0.9rem;
}

.table-responsive {
    overflow-x: auto;
}

.table th,
.table td {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.timetable-overlap {
    position: relative;
    margin-top: -250px; /* pulls it into the space between banner and welcome */
    z-index: 10;
}

.timetable-box {
    border-radius: 10px;
    background-color: #ffffff;
    margin-top: -250px;
    margin: 0 auto;
    max-width: 800px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.timetable-box:hover {
    transform: translateY(-5px);
}

.table thead th {
    background-color: var(--primary-color, #3498db);
    color: #fff;
    font-weight: 500;
    padding: 15px;
}

.table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

tr .text-natural {
    color: #6c757d;
    font-style: italic;
}

.swipe-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    touch-action: pan-x;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    border-radius: 8px;
}

.swipe-container::-webkit-scrollbar {
    height: 6px;
}

.swipe-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.swipe-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Responsive Timetable Styles */
@media (max-width: 992px) {
    .timetable-overlap {
        margin-top: -70px;
    }
}

@media (max-width: 768px) {
    .table th,
    .table td {
        font-size: 0.75rem;
        padding: 0.3rem 0.4rem;
    }
}