/* Base styles */
body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-image: url('dcsbg1.jpg');
    background-size: 150%;
    background-position: center;
}

/* General styles */
h1 { 
    color: black;
    margin-bottom: 20px;
}

.nav-menu {
    margin-bottom: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #4CAF50;
    color: white;
    white-space: nowrap;
    text-align: center;
}

/* Input styles */
input, select {
    background: white;
    border: 1px solid #ddd;
    padding: 4px 8px;
    width: 100%;
    box-sizing: border-box;
    color: black;
}

.required-field {
    background-color: rgba(144, 238, 144, 0.5);
}

input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* Sections */
.mission-header, .flight-data {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.header-row, .data-row {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

/* Waypoint suggestions */
.suggestions-div {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 300px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.airport-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.airport-suggestion:hover {
    background-color: #f0f0f0;
}

.waypoint-input-container {
    position: relative;
}
.required-field {
    background-color: #ffffcc;
}
.button-container {
    margin-top: 20px;
    text-align: center;
}

.action-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.action-button:hover {
    background-color: #45a049;
}
.important-field {
    background-color: #d83406; /* Hellgelb */
    border: 2px solid #ffd700; /* Gold */
}

.fl-notice {
    margin-top: 10px;
    padding: 10px;
    background-color: #eeece8;
    border: 1px solid #ffd700;
    border-radius: 4px;
    font-size: 14px;
}
.leg-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.leg-container div {
    font-weight: bold;
    margin-bottom: 2px;
}

.iaf-input {
    width: 80px;
    font-size: 0.9em;
    text-align: center;
}