* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
}

body {
    background: url('/Images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
}

/* Navigation Bar */
.navtop {
    background-color: #18AFDD;
    height: 80px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 40px; /* Increased padding to push logo and hamburger further inward */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Logo - Positioned Left */
.navtop .logo {
    position: absolute;
    left: 22vw; /* Increased left margin to push logo inward */
    height: 60px;
}

/* Hamburger - Positioned Right */
.navtop .hamburger {
    position: absolute;
    right: 22vw; /* Adjust to your preference */
    cursor: pointer;
    font-size: 0; /* Reset font-size here */
}

.navtop .hamburger i {
    font-size: 32px; /* Adjust the size here */
    color: white;
}
.navtop .hamburger:hover i {
    color: #FF5733; /* Change icon color on hover */
    transform: scale(1.2); /* Slightly enlarge the icon on hover */
}

/* Navigation links styling */
.navtop .nav-links {
    display: flex;
    gap: 20px;
}

.navtop .nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s ease-in-out;
}

.navtop .nav-links a:hover {
    color: #ffffff;
    background-color: #007BFF;
}

/* Main content area */
body.loggedin {
    background-color: #f3f4f7;
}

.content {
    width: 80%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.content h2 {
    margin-top: 0;
    color: #202527;
    font-size: 28px;
    border-bottom: 2px solid #e0e0e3;
    padding-bottom: 10px;
}

.content p {
    color: #3a565e;
    font-size: 18px;
    line-height: 1.6;
}

.content ul {
    list-style-type: none;
    padding: 0;
}

.content ul li {
    background-color: #f9f9f9;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.content ul li:hover {
    background-color: #e0e0e3;
}

/* Flight type selection */
.flight-type-boxes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.flight-type-box {
    width: 48%;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.flight-type-box:hover {
    transform: scale(1.05);
}

.arrival-box {
    background-color: #007bff;
}

.departure-box {
    background-color: #28a745;
}

.selected {
    border: 2px solid #ffeb3b;
}

/* Icons for edit and delete */
a i.fa-edit, a i.fa-trash-alt {
    margin-left: 10px;
    color: #007BFF;
    cursor: pointer;
    transition: color 0.3s ease;
}

a i.fa-edit:hover, a i.fa-trash-alt:hover {
    color: #FF5733;
}

/* Overlay menu */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease;
    z-index: 1000;
}

.menu-content {
    text-align: center;
    color: white;
}

.menu-content a {
    display: block;
    font-size: 24px;
    font-weight: bold;
    margin: 0; /* Remove extra margin between links */
    padding: 20px 0; /* Space inside each link */
    text-decoration: none;
    color: white;
    border-top: 1px solid lightgray; /* Light gray bar above each link */
    transition: color 0.3s ease;
}

.menu-content a:first-child {
    border-top: none; /* Remove the top border from the first item */
}

.menu-content a:hover {
    color: #FF5733;
}

.menu-content .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}


/* General spacing and layout adjustments */
.navtop .logo,
.navtop .hamburger {
    top: 50%;
    transform: translateY(-50%);
}







/* FORMS FOR BOARDING */
/* Ensure the form field is the reference point for the dropdown */
.dropdown-container {
    position: relative; /* Make the container relative */
    width: 100%;
}

.dropdown {
    position: absolute;
    top: 100%; /* Position the dropdown directly below the input field */
    left: 0;
    width: 100%; /* Match dropdown width to input field */
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    z-index: 10; /* Ensure it stays above other form elements */
    display: none; /* Hide by default */
}

.dropdown div {
    padding: 8px;
    cursor: pointer;
}

.dropdown div:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

/* Form fields styling */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

input, select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Full width */
    box-sizing: border-box; /* Ensure padding and width behave correctly */
}
/* Align the form elements on a single line */
/* FOR GATE CHANGE FORM */

/* Main form container */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 20px; /* Space between the columns */
    max-width: 900px; /* Optional: Center the form with a max-width */
    margin: 0 auto; /* Center the form on the page */
    justify-content: start; /* Align form content to the left */
}

/* Each form group will contain label and input */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two-column layout */
    gap: 20px; /* Space between the columns */
    max-width: 900px; /* Optional: Center the form with a max-width */
    margin: 0 auto; /* Center the form on the page */
    justify-content: start; /* Align form content to the left */
}

/* Each form group will contain label and input */
.form-group {
    display: flex;
    flex-direction: column; /* Align label above input */
    justify-content: start;
}

/* Labels and inputs should take up full width of their grid cell */
.form-group label {
    margin-bottom: 5px; /* Add spacing between the label and input */
    font-weight: bold; /* Emphasize the labels */
    text-align: left; /* Ensure labels are left-aligned */
}

/* Inputs, selects, and other form elements */
.form-group input,
.form-group select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%; /* Full width for inputs/selects */
    box-sizing: border-box;
}

/* Submission and cancel button container should span both columns */
.submit-container {
    grid-column: span 2; /* Make the submit buttons span across both columns */
    text-align: right; /* Align buttons to the right */
    margin-top: 20px; /* Adds space between the last form field and the buttons */
}

/* Submit button styling - static blue */
.submit-button {
    background-color: #007BFF; /* Static blue color */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.submit-button:hover {
    background-color: #18A7DD; /* Lighter blue on hover */
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Styling for the cancel button */
button[type="button"] {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #007BFF; /* Static blue color for cancel button */
    color: white;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s ease-in-out;
}

button[type="button"]:hover {
    background-color: #18A7DD; /* Lighter blue on hover for cancel button */
}

/* Form group for the departure time - Show/hide based on flight status */
#departureTimeGroup {
    grid-column: span 2; /* Full-width if needed */
}

/* Ensure form instructions and headings are left-aligned */
.form-instructions h2, .form-instructions p {
    text-align: left;
    margin-bottom: 15px;
}












/* FOR FLIGHT CONFIG */

.form-containerConfig {
    display: flex;
    justify-content: flex-start; /* Align items to the left */
    align-items: center; /* Vertically center the items */
    gap: 10px; /* Space between form elements */
    flex-wrap: nowrap; /* Prevent wrapping */
}

.form-containerConfig label {
    white-space: nowrap; /* Prevents the label from wrapping */
}

.form-containerConfig input, 
.form-containerConfig select, 
.form-containerConfig button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: auto; /* Adjust width based on content */
    min-width: 100px; /* Set a minimum width for inputs */
}

.form-containerConfig button {
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.form-containerConfig button:hover {
    background-color: #18A7DD;
}

/* Optional: Remove any previous form style */
form {
    display: block; /* Remove default flex or block styles applied globally */
}

/* FOR FLIGHT OVERRIDES */

/* Optimize form layout for flightForm */
.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 20px; /* Space between form groups */
    max-width: 900px; /* Optional: Centered form with width limit */
    margin: 0 auto; /* Center the form container */
}

.form-group {
    display: flex;
    flex-direction: column; /* Align label above input */
}

.form-group label {
    margin-bottom: 5px; /* Space between label and input */
    font-weight: bold;
}

.submit-container {
    grid-column: span 2; /* Make the submit buttons span across both columns */
    text-align: right;
}

/* Style for submit button */
.submit-button {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.submit-button:hover {
    background-color: #18A7DD;
}

/* Disable submit button styling */
.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button[type="button"] {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
    margin-left: 10px;
}

button[type="button"]:hover {
    background-color: #18A7DD;
}

