/* Fullscreen Airport Schedule Board Style */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, #0a2540 0%, #0d3b66 50%, #0f4c75 100%);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    padding: 8px;
}

/* Fullscreen Container */
.fullscreen-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 5px;
}

/* Header */
.header-section {
    text-align: center;
    padding: 8px 0 6px;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.2), rgba(6, 182, 212, 0.3), rgba(0, 180, 216, 0.2));
    border-radius: 8px;
    margin-bottom: 6px;
    border: 1px solid #00b4d8;
}

.header-title {
    font-weight: 700;
    font-size: 2.2em;
    color: #00b4d8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.5);
}

.header-subtitle {
    font-size: 1.1em;
    color: #67e8f9;
    margin-top: 2px;
    letter-spacing: 1px;
}

/* Date Display */
.date-display {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.current-date {
    font-size: 1.8em;
    font-weight: 600;
    color: #ffffff;
}

.reservasi-btn {
    position: absolute;
    right: 10px;
    display: inline-block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #00b4d8, #0891b2);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.reservasi-btn:hover {
    background: linear-gradient(135deg, #0891b2, #0e7490);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.4);
}

/* Airport Schedule Board Container */
.schedule-board {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    border: 4px solid #00b4d8;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 
        0 0 50px rgba(0, 180, 216, 0.4),
        inset 0 0 50px rgba(0, 0, 0, 0.1);
}

/* Gradient overlay at top and bottom */
.schedule-board::before,
.schedule-board::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 10;
    pointer-events: none;
}

.schedule-board::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), transparent);
    border-radius: 10px 10px 0 0;
}

.schedule-board::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
    border-radius: 0 0 10px 10px;
}

.schedule-board .table-responsive {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.schedule-board .table-responsive::-webkit-scrollbar {
    width: 12px;
}

.schedule-board .table-responsive::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 6px;
}

.schedule-board .table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00b4d8, #0891b2);
    border-radius: 6px;
}

.schedule-board .table-responsive::-webkit-scrollbar-thumb:hover {
    background: #0891b2;
}

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    table-layout: fixed; /* Fixed layout for consistent column widths */
}

.table thead {
    position: sticky;
    top: 0;
    z-index: 5;
}

.table th,
.table td {
    padding: 20px 16px;
    text-align: center;
    vertical-align: middle;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.table th {
    background: #1e3a5f;
    color: white;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.5em;
    letter-spacing: 0.5px;
    border-bottom: 3px solid #000;
    white-space: nowrap;
}

.table th:first-child {
    border-radius: 10px 0 0 0;
}

.table th:last-child {
    border-radius: 0 10px 0 0;
}

.table td {
    font-size: 1.5em;
    font-weight: 500;
    color: #1a1a1a;
    border-bottom: 3px solid #ced4da;
    background: #ffffff;
}

.table tbody tr:hover {
    background-color: rgba(0, 180, 216, 0.1);
}

.table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

.table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.table .table-secondary {
    background-color: #e9ecef !important;
}

/* Column widths */
.table th:nth-child(1),
.table td:nth-child(1) {
    width: 12%;
}

.table th:nth-child(2),
.table td:nth-child(2) {
    width: 8%;
}

.table th:nth-child(3),
.table td:nth-child(3) {
    width: 10%;
}

.table th:nth-child(4),
.table td:nth-child(4) {
    width: 10%;
}

.table th:nth-child(5),
.table td:nth-child(5) {
    width: auto; /* Flexible width for activity column */
    text-align: left;
}

.table th:nth-child(6),
.table td:nth-child(6) {
    width: 12%;
}

/* For viewreservasi.php with 7 columns (with date) */
.table th:nth-child(3),
.table td:nth-child(3) {
    width: 10%;
}

/* Enable horizontal scroll on small screens */
.schedule-board .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.schedule-board .table-responsive::-webkit-scrollbar {
    height: 10px;
}

.schedule-board .table-responsive::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 5px;
}

.schedule-board .table-responsive::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 5px;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 0.85em;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-akan {
    background: linear-gradient(135deg, #17a2b8, #138496);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.4);
}

.status-berlangsung {
    background: linear-gradient(135deg, #e60f24, #e70c22);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(242, 7, 30, 0.5);
    animation: blink 1s infinite;
}

.status-selesai {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.4);
}

@keyframes blink {
    0%, 100% { opacity: 1; box-shadow: 0 2px 15px rgba(220, 53, 69, 0.8); }
    50% { opacity: 0.7; box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3); }
}

/* Footer */
.footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 15px;
    background: linear-gradient(90deg, rgba(0, 180, 216, 0.2), rgba(6, 182, 212, 0.3));
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid #00b4d8;
}

.update-time {
    font-size: 1.5em;
    color: #ffffff;
    font-weight: 500;
}

.update-time i {
    color: #00b4d8;
    margin-right: 5px;
}

.brand-text {
    font-size: 1.4em;
    color: #67e8f9;
    letter-spacing: 1px;
}

/* Filter Group */
.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.filter-group label {
    color: #ffffff;
    font-size: 1.4em;
    font-weight: 500;
    white-space: nowrap;
}

.filter-group label i {
    color: #00b4d8;
    margin-right: 4px;
}

.filter-input {
    padding: 12px 16px;
    border-radius: 5px;
    border: 1px solid #00b4d8;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1a1a;
    font-size: 1.2em;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.filter-input:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 2px rgba(0, 180, 216, 0.3);
    background: #ffffff;
}

.filter-input option {
    background: #ffffff;
    color: #1a1a1a;
}

/* Empty state */
.loading-text {
    text-align: center;
    padding: 50px 20px;
    color: #6c757d;
    font-size: 1.8em;
    background: #ffffff;
}

.loading-text i {
    font-size: 3.5em;
    color: #00b4d8;
    margin-bottom: 15px;
    display: block;
}

.loading-text p {
    margin: 0;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
    .header-title {
        font-size: 2em;
    }
    .table th, .table td {
        padding: 12px 10px;
        font-size: 1em;
    }
    .status-badge {
        padding: 6px 12px;
        font-size: 0.9em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    .header-title {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    .header-subtitle {
        font-size: 0.9em;
    }
    .date-display {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 8px;
    }
    .filter-group {
        margin: 5px 0;
        width: 100%;
        justify-content: center;
    }
    .filter-input {
        width: 100%;
        max-width: 200px;
    }
    .current-date {
        font-size: 1em;
    }
    .reservasi-btn {
        position: static;
        font-size: 0.85em;
        padding: 8px 14px;
    }
    .schedule-board {
        border-width: 2px;
        border-radius: 8px;
    }
    .table th, .table td {
        padding: 10px 6px;
        font-size: 0.85em;
    }
    .table {
        min-width: 600px;
    }
    .status-badge {
        padding: 5px 8px;
        font-size: 0.75em;
    }
    .footer-section {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 8px;
    }
    .update-time {
        font-size: 0.9em;
    }
    .brand-text {
        font-size: 0.8em;
    }
}