/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.2; /* Further reduced line-height */
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 5px; /* Kept small */
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 10px; /* Reduced vertical padding */
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 8px; /* Reduced margin */
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    width: 40px;
    height: auto;
    margin-right: 15px;
}

h1 {
    font-size: 1.5em;
    margin: 0;
    color: #2c3e50;
}

header nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    margin-left: 20px;
    transition: color 0.3s;
}

header nav a:hover {
    color: #007bff;
}

/* Two-Column Layout */
.main-columns {
    display: flex;
    gap: 8px; /* Reduced gap */
    align-items: flex-start;
}

.column {
    flex: 1;
    background-color: #fff;
    padding: 5px; /* Reduced padding */
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    min-width: 0;
}

h2 {
    font-size: 1.1em;
    color: #34495e;
    border-bottom: 2px solid #007bff;
    padding-bottom: 2px; /* Reduced padding */
    margin-top: 0;
    margin-bottom: 5px; /* Reduced margin */
}

.flight-group {
    margin-bottom: 10px;
}

.flight-group h3 {
    font-size: 1em;
    color: #7f8c8d;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Table Styles for Data Density */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0; /* Remove margin from table itself */
    font-size: 12px; /* Further reduced font size */
}

thead {
    background-color: #f8f9fa;
}

th, td {
    padding: 2px 5px; /* Reduced vertical padding */
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

th {
    font-weight: 600;
    color: #495057;
}

tbody tr:hover {
    background-color: #f1f3f5;
}

tbody tr.recent {
    background-color: #e6ffed;
}
tbody tr.recent:hover {
    background-color: #d1f7e0;
}

tr.recent-update {
    background-color: #ffffe0; /* 淡黄色高亮 */
}

/* Route Section (the container for title + table) */
.route-section {
    margin-bottom: 5px; /* Space between each route group */
}

.route-section h4 {
    background-color: #ecf0f1;
    padding: 2px 5px; /* Reduced padding */
    border-radius: 4px;
    font-size: 0.9em;
    color: #2c3e50;
    margin: 0 0 3px 0; /* Title has margin-bottom to separate from its table */
}

/* Loading and Status Text */
.loading-text, .no-data-text {
    color: #777;
    font-style: italic;
    padding: 10px;
}

/* Loading Transition */
main.loading {
    opacity: 0.6;
    transition: opacity 0.2s ease-in-out;
}

/* Footer */
footer {
    text-align: center;
    padding: 2px; /* Reduced padding */
    margin-top: 8px; /* Reduced margin */
    color: #999;
    font-size: 0.8em;
}

/* 分隔线 */
.section-divider {
    border: 0;
    border-top: 2px solid #eee;
    margin: 40px 0;
}