* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f2f2f2;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 20px;
    color: #003366;
    font-size: clamp(1.5rem, 5vw, 2rem);
}

/* Loading and error states */
.loading, .error, .no-data {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.error {
    color: #d32f2f;
    border-left: 4px solid #d32f2f;
}

.loading {
    color: #003366;
}

/* Table container for horizontal scroll on mobile */
.table-container {
    overflow-x: auto;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
    background: white;
}

th, td {
    border: 1px solid #cccccc;
    padding: 12px 15px;
    text-align: left;
}

th {
    background: #003366;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th:hover {
    background: #004d99;
}

th:active {
    background: #002244;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #e6f3ff;
}

.arrow {
    margin-left: 8px;
    font-size: 11px;
    color: #ffffff;
    opacity: 0.8;
    display: inline-block;
}

.last-updated {
    text-align: center;
    color: #666;
    font-size: 0.85rem;
    margin-top: 15px;
}

@media (max-width: 768px) {
    th, td {
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    body {
        padding: 10px;
    }
}

@media print {
    th {
        background: #003366;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .last-updated {
        print-color-adjust: exact;
    }
}