/* Reset & Base Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eaf4fc;
    color: #222;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: #007acc;
    padding: 1rem 0;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem;
    transition: background-color 0.2s ease-in-out;
}

.nav-link:hover,
.nav-link.active {
    background-color: #005b99;
    border-radius: 4px;
}

/* Main container */
.content-container {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    flex: 1;
}

/* Footer */
footer {
    background-color: #007acc;
    color: white;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: auto;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.alert.success {
    background-color: #d4f4dd;
    color: #227744;
    border-left: 6px solid #227744;
}

.alert.error {
    background-color: #ffe6e6;
    color: #b30000;
    border-left: 6px solid #b30000;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.search-form input[type="text"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-form button {
    background-color: #007acc;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #005b99;
}

/* Catalog Table */
.catalog-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    background-color: #fff;
    box-shadow: 0 0 6px rgba(0,0,0,0.1);
}

.catalog-table th,
.catalog-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.catalog-table thead th {
    background-color: #007acc !important;
    color: white !important;
    font-weight: bold;
    position: sticky;
    top: 0;
}

.catalog-table th a {
    color: white !important;
    text-decoration: none;
}

.catalog-table th a:hover {
    text-decoration: underline;
}

.catalog-table tr:hover {
    background-color: #f5faff;
}

.catalog-table a {
    color: #007acc;
    text-decoration: none;
}

.catalog-table a:hover {
    text-decoration: underline;
}

/* Request Button */
.request-btn,
.catalog-table button {
    padding: 6px 12px;
    background-color: #007acc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background-color 0.2s ease-in-out;
}

.request-btn:hover,
.catalog-table button:hover {
    background-color: #005b99;
}

/* Pagination */
.pagination {
    margin-top: 1.5rem;
    text-align: center;
}

.pagination a {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    color: #007acc;
    text-decoration: none;
    border: 1px solid #007acc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pagination a:hover {
    background-color: #007acc;
    color: white;
}

.pagination a.active {
    background-color: #007acc;
    color: white;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form button {
        width: 100%;
    }

    .catalog-table th,
    .catalog-table td {
        padding: 0.5rem;
    }
}
.schedule-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 2rem;
        }
        .schedule-table th, .schedule-table td {
            border: 1px solid #ccc;
            padding: 0.5rem;
            text-align: center;
            vertical-align: top;
            font-size: 0.9rem;
            width: 110px;
            height: 75px;
            box-sizing: border-box;
        }
        .schedule-table th {
            background-color: #007acc;
            color: white;
        }
        .now-playing {
            background-color: #cce6ff !important;
            border: 2px solid #007acc;
        }
        .note {
            font-size: 0.75rem;
            color: #666;
        }
        .legend {
            margin-top: 1rem;
            font-size: 0.9rem;
        }
        .legend span {
            display: inline-block;
            width: 15px;
            height: 15px;
            background-color: #cce6ff;
            border: 1px solid #007acc;
            margin-right: 5px;
            vertical-align: middle;
        }
/* Styling for the show list */
.show-list {
    list-style-type: none;
    padding: 0;
}

.show-list li {
    margin: 10px 0;
}

.show-list a {
    text-decoration: none;
    color: #007acc;
    font-weight: bold;
    transition: color 0.3s;
}

.show-list a:hover {
    color: #005b99;
}
