/* Global Styles */
body {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    background-color: #111;
    color: white;
}

h1, h2 {
    text-align: center;
    color: #ddd;
}

/* Top Bar */
#top-bar {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Buttons */
#helper-btn, #logout-btn {
    padding: 10px 15px;
    background-color: #444;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#helper-btn:hover, #logout-btn:hover {
    background-color: #555;
}

#logout-btn {
    background-color: #e74c3c;
    position: absolute;
    top: 20px;
    left: 20px;
}

#logout-btn:hover {
    background-color: #b43a3a;
}

#helper-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Column Layout */
.column {
    width: 22%;
    min-height: 80vh;
    border: 1px solid #333;
    margin: 0.5%;
    float: left;
    padding: 10px;
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow-y: auto;
}

/* Flight Strip */
.strip {
    background-color: #d6d6d6;
    color: black;
    margin: 10px 0;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: grab;
    border: 2px solid #555;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: background-color 0.2s ease;
}

.strip.red {
    background-color: #d6d6d6;
}

div strong {
    font-weight: bolder;
}

/* Editable Fields */
.editable {
    background-color: #ffffff00;
    color: black;
}

/* Delete Button */
.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 15%;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
}

.delete-btn:hover {
    background: #444;
}

/* Altitude Dropdown */
.altitude-dropdown {
    background: none;
    border: none;
    color: black;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.altitude-dropdown::-ms-expand {
    display: none;
}

/* Status Control */
.status-control {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
    height: 30px;
}

.status-control button {
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px;
    font-size: 11px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.status-control button:hover {
    background: #666;
}

.status-left, .status-right {
    position: absolute;
    bottom: 5px;
}

.status-left {
    right: 35px;
}

.status-right {
    right: 5px;
}

.status-label {
    font-weight: bold;
    padding: 0 10px;
    font-size: 18px;
}

/* Scratchpad */
.scratchpad-box {
    display: block;
    min-height: 15px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #999;
    margin-top: 4px;
    margin-right: 80px;
    white-space: pre-wrap;
}

/* Runway Input */
.runway-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

label[for="runwayInput"] {
    margin-right: 8px;
    font-size: 14px;
    color: #bbb;
    font-weight: normal;
}

#runwayInput {
    max-height: 10px;
    width: 50px;
    text-align: center;
    padding: 6px 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #222;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease;
}

#runwayInput:focus {
    outline: none;
    border-color: #007bff;
}

#runwayInput:focus + label[for="runwayInput"] {
    color: #fff;
    font-weight: bold;
}

/* Emergency Styling */
.emergency .callsign,
.emergency .squawk {
    color: red;
    font-weight: 900;
}