* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f5f5f5;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

h2 {
    color: #555;
    margin-bottom: 20px;
}

/* User Section */
.user-section {
    display: grid;
    grid-template-columns: 300px auto 1fr;
    gap: 15px;
    align-items: start;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 4px;
}

.user-section .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.user-section .form-group label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    min-height: 17px;
}

.user-section .btn {
    margin-top: 0;
    padding: 8px 16px;
    white-space: nowrap;
}

.load-status {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 22px;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.load-status.success {
    background-color: #d4edda;
    color: #155724;
}

.load-status.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.tab-button:hover {
    color: #07669D;
}

.tab-button.active {
    color: #07669D;
    border-bottom-color: #07669D;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Flight Row */
.flight-row {
    display: grid;
    grid-template-columns: 150px 150px 150px 150px 80px;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    align-items: end;
    transition: all 0.3s;
}

.flight-row.row-error {
    background: #ffe6e6;
    border: 2px solid #dc3545;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.3);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #07669D;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    margin-right: 10px;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-add {
    background-color: #07669D;
    color: white;
}

.btn-add:hover {
    background-color: #055580;
}

.btn-download {
    background-color: #850554;
    color: white;
}

.btn-download:hover {
    background-color: #660442;
}

.btn-remove {
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    font-size: 12px;
}

.btn-remove:hover {
    background-color: #c82333;
}

#flights-container {
    margin-bottom: 20px;
}

/* Airport Section */
.airport-section {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 4px;
}

.airport-list-section {
    margin-bottom: 30px;
}

.airport-list-section h3 {
    color: #555;
    margin-bottom: 15px;
}

.airports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.airport-item {
    padding: 10px 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
}

.airport-item strong {
    color: #07669D;
    font-weight: 600;
}

.add-airport-section {
    margin-bottom: 30px;
}

.add-airport-section h3 {
    color: #555;
    margin-bottom: 15px;
}

.add-airport-form {
    display: grid;
    grid-template-columns: 200px auto 1fr;
    gap: 15px;
    align-items: start;
    padding: 20px;
    background: #fff9e6;
    border-radius: 4px;
}

.add-airport-form .form-group {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.add-airport-form .form-group label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    min-height: 17px;
}

.add-airport-form .btn {
    margin-top: 0;
    padding: 8px 16px;
    white-space: nowrap;
}

.add-airport-form .load-status {
    margin-top: 22px;
}