body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 300px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 3px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 3px;
    background-color: #5cb85c;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #4cae4c;
}

p {
    text-align: center;
    margin-top: 15px;
}

a {
    color: #5cb85c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    margin-right: 10px;
    margin-bottom: 0;
    white-space: nowrap; /* Prevents the label text from wrapping */
}

.form-row select {
    width: auto; /* Allows the select box to take up only the space it needs */
    flex-grow: 1; /* Allows the select box to fill the remaining space in the row */
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.search-container {
    margin-bottom: 20px;
}

.search-container form {
    display: flex;
    gap: 10px;
}

.search-container input[type="text"],
.search-container input[type="date"] {
    flex-grow: 1;
    margin-bottom: 0;
}

.search-container button {
    width: auto;
}

.date-input-container {
    position: relative;
    flex-grow: 1;
}

.date-input-container input[type="date"] {
    width: 100%;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.date-placeholder {
    position: absolute;
    left: 8px;
    top: 8px;
    color: #999;
    pointer-events: none;
}

.date-input-container input[type="date"].has-value + .date-placeholder,
.date-input-container input[type="date"]:focus + .date-placeholder {
    display: none;
}

.main-nav {
    text-align: center;
    margin-bottom: 20px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {background-color: #f1f1f1;}

.dropdown:hover .dropdown-content {
    display: block;
}

.registrations-open {
    color: red !important;
}

/* From Uiverse.io by adamgiebl */ 
.cssbuttons-io-button {
  display: flex;
  align-items: center;
  font-family: inherit;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  padding: 0.7em 1.4em 0.7em 1.1em;
  color: white;
  background: #ad5389;
  background: linear-gradient(
    0deg,
    rgba(20, 167, 62, 1) 0%,
    rgba(102, 247, 113, 1) 100%
  );
  border: none;
  box-shadow: 0 0.7em 1.5em -0.5em #14a73e98;
  letter-spacing: 0.05em;
  border-radius: 20em;
  width: auto;
  margin-bottom: 20px;
}

.cssbuttons-io-button svg {
  margin-right: 6px;
}

.cssbuttons-io-button:hover {
  box-shadow: 0 0.5em 1.5em -0.5em #14a73e98;
}

.cssbuttons-io-button:active {
  box-shadow: 0 0.3em 1em -0.5em #14a73e98;
}

.pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.pagination a {
    color: #007bff;
    padding: 8px 12px;
    text-decoration: none;
    margin: 0 2px;
}

.pagination a.active {
    font-weight: bold;
    text-decoration: underline;
    color: black;
}

.pagination a:hover {
    text-decoration: underline;
}

.pagination span {
    padding: 8px 12px;
}

#add-form button[type="submit"] {
    width: 20%;
    margin: 0 auto;
    display: block;
}

/* Custom Copy Modal */
.copy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.copy-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 5px;
    text-align: center;
}

.copy-modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.copy-modal-content button {
    width: auto;
    padding: 10px 20px;
    margin: 5px;
}

/* Custom Copy Modal */
.copy-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.copy-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 5px;
    text-align: center;
}

.copy-modal-content input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    box-sizing: border-box;
}

.copy-modal-content button {
    width: auto;
    padding: 10px 20px;
    margin: 5px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Mobile styles */
@media screen and (max-width: 600px) {
    .container {
        width: 100%;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    .mobile-task {
        border: 1px solid black !important;
        margin-bottom: 10px !important;
    }
    td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding-left: 50%;
    }
    td:before {
        display: none;
    }
    td {
        padding-left: 5px;
        font-size: 1.2em;
    }
    .desktop-only {
        display: none;
    }
    .desktop-only {
        display: none;
    }
    .container > h2, .container > p {
        display: block !important;
    }
    .search-container form {
        flex-direction: column;
    }
}
@media screen and (min-width: 601px) {
    .date-placeholder {
        display: none;
    }
    .mobile-only {
        display: none;
    }
    .schedule-table-desktop th:nth-child(1),
    .schedule-table-desktop td:nth-child(1) {
        width: 8%; /* Arrival/Departure */
    }
    .schedule-table-desktop th:nth-child(2),
    .schedule-table-desktop td:nth-child(2) {
        width: 10%; /* Date */
    }
    .schedule-table-desktop th:nth-child(8),
    .schedule-table-desktop td:nth-child(8) {
        width: 10%;  /* Flight Number */
    }
}
