* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    cursor: default !important;
}

button, a, input, select, .control-btn, .duty, th[data-sort], .header-logo {
    cursor: default !important;
}

html {
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: #e6f0ff !important;
    color: #333;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}


.header {
    background: linear-gradient(135deg, #1a3c5e 0%, #2a5c8e 100%);
    color: white;
    height: 80px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    animation: fadeIn 1s ease-in-out;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.header-logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.header-logo:hover {
    transform: scale(1.1);
}

.header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    flex-grow: 1;
    justify-content: center;
    margin: 0;
}

header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.separator {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.info-item {
    font-size: 16px;
    font-weight: 400;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.2);
}


.upload-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px);
    padding: 0 15px;
    box-sizing: border-box;
}

.upload-container {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 480px;
    min-width: 280px;
    height: auto;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.upload-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

.upload-container h2 {
    margin-bottom: 20px;
    color: #1a3c5e;
}

.upload-container form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.upload-container input[type="file"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.upload-container button {
    background-color: #1a3c5e;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.upload-container button:hover {
    background-color: #2a5c8e;
}


.progress-bar {
    width: 100%;
    height: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-top: 20px;
    overflow: hidden;
    display: none;
}

.progress {
    height: 100%;
    background-color: #1a3c5e;
    width: 0;
    transition: width 0.1s linear;
}


.lines-section {
    padding: 20px 0;
    max-width: 98%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-y: visible; 
    position: relative; 
}

.controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.control-btn {
    background-color: #1a3c5e;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.control-btn:hover {
    background-color: #2a5c8e;
}

.duty-timeline-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 30; 
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0;
    padding: 0;
    overflow-x: auto;
    width: auto;
    -webkit-overflow-scrolling: touch;
}

.duty-timeline-header {
    position: relative;
    height: 60px;
    background-color: #1a3c5e;
    color: white;
    padding: 10px 0;
}

.duty-timeline-header .day {
    position: absolute;
    text-align: center;
    font-size: 12px;
    border-right: 1px solid #ffffff33;
}

.duty-timeline-header .day:last-child {
    border-right: none;
}

.duty-timeline-header .day span {
    display: inline-block;
    padding: 5px;
}

.duty-timeline-row {
    position: relative;
    height: 34px;
    width: auto;
    background-color: #f9f9f9;
}

.duty-timeline {
    position: relative;
    width: auto;
    height: 34px;
}

.day-separator {
    position: absolute;
    top: 0;
    width: 1px;
    background-color: #e0e0e0;
}

.duty {
    position: absolute;
    border-radius: 10px;
    text-align: center;
    line-height: 26px;
    font-size: 12px;
    color: white;
    box-sizing: border-box;
}

.duty.Flight {
    background-color: #4caf50 !important;
}

.duty.Leave {
    background-color: #ff9800 !important;
}

.duty.StandBy {
    background-color: #f44336 !important;
}

.duty.DaysOff {
    background-color: #2196f3 !important;
}

.duty.RR {
    background-color: #9c27b0 !important;
}

.duty.Unknown {
    background-color: #9c27b0 !important;
}

.sticky {
    position: sticky;
    top: 0;
    z-index: 20;
}


.lines-table {
    width: auto;
    min-width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    margin: 0;
    padding: 0;
    table-layout: auto;
}

.lines-table td, .lines-table th {
    white-space: nowrap;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
}

.lines-table thead {
    position: -webkit-sticky;
    position: sticky;
    top: 94px; 
    z-index: 20; 
    background-color: #1a3c5e;
    color: white;
}

.lines-table td:nth-child(even) {
    background-color: #fafafa;
}

.lines-table th {
    color: white;
    cursor: pointer;
    position: relative;
    font-size: 12px;
}

.lines-table th:hover {
    background-color: #2a5c8e;
}


.details-row {
    background-color: #f9f9f9;
    padding: 10px;
}

.pairing-block {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    margin: 5px;
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    width: 300px;
    line-height: 1.2;
}

.pairing-block div {
    margin-bottom: 4px;
}

.pairing-block .layover-line {
    background-color: #e8f5e9;
    text-align: center;
    margin-bottom: 4px;
}

.pairing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.flight-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.flight-part {
    flex: 1;
    text-align: center;
}


.layover-span {
    padding: 1px 2px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 2px;
}

.layover-less-24 {
    background-color: orange;
    color: black;
}

.layover-24-39 {
    background-color: lightgreen;
    color: black;
}

.layover-39-68 {
    background-color: rgb(213, 213, 165);
    color: black;
}

.layover-more-68 {
    background-color: lightcoral;
    color: black;
}


.report-line {
    background-color: #e0f7fa;
    padding: 2px 5px;
    border-radius: 3px;
    font-weight: bold;
    text-align: center;
}

.layover-line {
    padding: 2px 5px;
    border-radius: 3px;
    text-align: center;
}

.layover-line.layover-less-24 {
    background-color: orange;
    color: black;
}

.layover-line.layover-24-39 {
    background-color: lightgreen;
    color: black;
}

.layover-line.layover-39-68 {
    background-color: rgb(213, 213, 165);
    color: black;
}

.layover-line.layover-more-68 {
    background-color: lightcoral;
    color: black;
}

.credit-line {
    background-color: #fff3e0;
    font-weight: bold;
    text-align: center;
}

.min-rest-line {
    background-color: #ffebee;
    font-weight: bold;
    text-align: center;
}


.modal-body .pairing-block {
    margin: 0 auto;
    width: 300px;
}

.modal {
    align-items: flex-start !important;
    justify-content: center !important;
    pointer-events: none;
    margin-top: 0 !important;
}

.modal-header .close {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  opacity: 0.8;
  border: none;
  background: none;
  position: absolute;
  right: 15px;
  cursor: pointer;
  z-index: 1051;
}

.modal-header .close:hover {
  opacity: 1;
  color: #000;
}


#termsModal .modal-dialog {
    max-width: 900px;
}

#termsModal .modal-body {
    padding: 20px;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#termsModal .modal-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 10;
}


#filtersModal {
    z-index: 1050 !important;
}

#filtersModal .modal-dialog {
    max-width: 800px;
}

#filtersModal .modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    z-index: 1055 !important;
}

#filtersModal .modal-footer {
    position: sticky;
    bottom: 0;
    background-color: white;
    z-index: 10;
}


#filtersModal .nav-tabs {
    margin-bottom: 20px;
}

#filtersModal .nav-tabs .nav-link {
    color: #1a3c5e;
    font-weight: bold;
}

#filtersModal .nav-tabs .nav-link.active {
    background-color: #1a3c5e;
    color: white;
    border-color: #1a3c5e;
}


#filtersModal .tab-pane {
    padding: 10px;
}

#filtersModal .form-group {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

#filtersModal .form-check {
    margin-bottom: 10px;
}


#filtersModal .custom-dropdown,
#filtersModal .dropdown-menu {
    width: 100%;
    max-width: 100%;
    left: 0 !important;
    right: 0 !important;
}


.nouislider {
    margin: 20px 0;
}

.nouislider .noUi-handle {
    background-color: #1a3c5e;
    border: none;
    box-shadow: none;
}

.nouislider .noUi-connect {
    background-color: #2a5c8e;
}


#min-rest-slider .noUi-connect {
    background-color: transparent;
}

#min-rest-slider .noUi-connects {
    background: linear-gradient(to right, #e0e0e0 0%, #e0e0e0 var(--connect-end), #4CAF50 var(--connect-end), #4CAF50 100%);
}


.modal-backdrop {
    width: 100% !important; 
    height: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important; 
    z-index: 1045 !important;
}

.modal-fullscreen {
    width: auto !important;
    min-width: 280px !important; 
    max-width: fit-content !important; 
    height: 100vh !important;
    margin: 0 auto !important; 
    padding: 0 !important;
}

.modal-fullscreen .modal-dialog {
    width: auto !important;
    min-width: 280px !important;
    max-width: fit-content !important; 
    margin: 0 auto !important; 
}

.modal-fullscreen .modal-content {
    width: auto !important;
    min-width: 100% !important;
    max-width: fit-content !important; 
    height: 100% !important;
    border-radius: 0 !important;
    overflow: hidden !important;
}

#bidSheetModal .modal-dialog {
    width: auto !important;
    max-width: fit-content !important; 
    min-width: 280px !important;
    margin: 0 auto !important;
}

#bidSheetModal .modal-body {
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    width: auto !important;
    max-width: fit-content !important; 
    min-width: 100% !important;
    padding: 20px 0 !important;
    box-sizing: border-box;
}

#bidSheetModal .duty-timeline-container {
    top: 0 !important;
    width: auto;
    min-width: 100%;
    overflow-x: auto;
}

#bidSheetModal .lines-table thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
}

#bidSheetModal {
    z-index: 1050 !important;
}

#bidPairingModal {
    z-index: 1060 !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    max-width: 500px;
}

#bidSheetModal + .modal-backdrop {
    z-index: 1040 !important;
}

#bidPairingModal + .modal-backdrop {
    z-index: 1055 !important;
}

#bidSheetModal .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    overflow-x: auto;
    width: auto;
    min-width: 100%;
    padding: 20px 0 !important;
}

#bid-lines-table {
    width: auto;
    min-width: 100%;
    table-layout: fixed;
    margin: 0 !important;
}

#bidSheetModal .controls {
    padding: 10px;
    margin: 0;
    width: auto;
    min-width: 100%;
}

#bidSheetModal .duty-timeline-container {
    margin: 0 !important;
    padding: 0 !important;
}

#bidSheetModal .lines-table {
    margin: 0 !important;
    padding: 0 !important;
}

#bidSheetModal .modal-body > div {
    width: 100%;
}

#clear-lines-btn {
    background-color: #f44336;
    color: white;
}

#clear-lines-btn:hover {
    background-color: #d32f2f;
}


.sortable-chosen {
    opacity: 0.6;
    background-color: #d3e7ff;
    z-index: 100;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform: scale(1.02);
}

.sortable-ghost {
    background-color: #e0e0e0;
    height: 34px;
    border: 2px dashed #1a3c5e;
    opacity: 0.7;
}

#bid-lines-table-body tr,
#bid-lines-table-body td {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.multiselect-container.dropdown-menu {
    max-height: 300px !important;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    transform: translate3d(0, 0, 0);
    position: absolute !important;
    z-index: 1060 !important;
    width: 100% !important;
    background-color: #fff;
    user-select: none !important;
    overscroll-behavior: contain !important;
    -webkit-tap-highlight-color: transparent !important;
}

.multiselect-container.dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    z-index: 1060 !important;
}

.multiselect-container.dropdown-menu ul {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    height: 100% !important;
}

.multiselect-container.dropdown-menu li {
    padding: 5px 10px;
    touch-action: pan-y !important;
    user-select: none !important;
}


.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.dropdown-toggle .selected-text {
    flex-grow: 1;
}

.dropdown-toggle .clear-btn {
    margin-left: 10px;
    font-size: 16px;
    color: #f44336;
    cursor: pointer;
}

.dropdown-toggle .caret {
    font-size: 12px;
    color: #1a3c5e;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    max-height: 115px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-options {
    padding: 5px 0;
    min-height: 115px;
}

.dropdown-option {
    display: block;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #f1f1f1;
}

.dropdown-option input[type="checkbox"] {
    margin-right: 10px;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #1a3c5e;
    border-radius: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #2a5c8e;
}

.select-cell {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1a3c5e;
    text-align: center;
}
.select-cell:hover {
    background-color: #e6f0ff;
}


.loading-spinner {
    text-align: center;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a3c5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.signup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.signup-container {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 480px;
    min-width: 280px;
    height: auto;
    max-height: 95vh;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.signup-container p {
    margin-top: 10px;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.signup-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.signup-container h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a3c5e;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 6px;
    justify-content: center;
    width: 200px;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-group input.form-control {
    max-width: 100%;
    margin: 0 auto;
    display: block;
}

.form-group input.form-control#phone {
    width: 100%;
    margin: 0 auto;
    display: block;
}

.form-row .form-group {
    max-width: 200px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    font-size: 13px !important;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-bottom: 2px solid #1a3c5e;
    background-color: white;
}

.form-control::placeholder {
    color: #999;
}

.signup-btn {
    background: linear-gradient(135deg, #1a3c5e, #2a5c8e);
    color: white;
    padding: 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    transition: box-shadow 0.2s;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #2a5c8e, #3a7cbe);
}

.cancel-btn {
    background: linear-gradient(135deg, #6c757d, #adb5bd); 
    color: white;
    padding: 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    transition: box-shadow 0.2s;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #adb5bd, #ced4da);
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
        gap: 2px;
        margin-bottom: 2px;
    }
    .form-group {
        max-width: 100%;
        width: 100%;
    }
    .base-group {
        width: 200px;
        margin: 0 auto;
    }
    #base-fleet-row {
        gap: 16px;
    }
    #base-fleet-row .form-group {
        width: 200px;
        margin: 0 auto;
    }
    .form-group input.form-control#phone {
        width: 100%;
        margin: 0 auto;
        display: block;
    }
    .file-upload-label {
        max-width: 100%;
        min-width: 0;
        padding: 10px 15px;
        font-size: 13px;
    }
    .file-upload-label span {
        max-width: 200px;
        box-sizing: border-box;
    }
}

.base-group {
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 601px) {
    .form-group {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
}

.multiselect-container.dropdown-menu.show {
    display: block !important;
    position: absolute !important;
    z-index: 1060 !important;
}

.multiselect-container.dropdown-menu ul {
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
    height: 100% !important;
}

.multiselect-container.dropdown-menu li {
    padding: 5px 10px;
    touch-action: pan-y !important;
    user-select: none !important;
}


.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-toggle {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.dropdown-toggle .selected-text {
    flex-grow: 1;
}

.dropdown-toggle .clear-btn {
    margin-left: 10px;
    font-size: 16px;
    color: #f44336;
    cursor: pointer;
}

.dropdown-toggle .caret {
    font-size: 12px;
    color: #1a3c5e;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1060;
    max-height: 115px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-options {
    padding: 5px 0;
    min-height: 115px;
}

.dropdown-option {
    display: block;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.dropdown-option:hover {
    background-color: #f1f1f1;
}

.dropdown-option input[type="checkbox"] {
    margin-right: 10px;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #1a3c5e;
    border-radius: 5px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #2a5c8e;
}

.select-cell {
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    color: #1a3c5e;
    text-align: center;
}
.select-cell:hover {
    background-color: #e6f0ff;
}


.loading-spinner {
    text-align: center;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #1a3c5e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.signup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.signup-container {
    position: relative;
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 480px;
    min-width: 280px;
    height: auto;
    max-height: 95vh;
    min-height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.signup-container p {
    margin-top: 10px;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
}

.signup-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
}

.signup-container h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #1a3c5e;
}

.form-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-bottom: 6px;
    justify-content: center;
    width: 100%;
}

.form-group {
    flex: 1;
    min-width: 0;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: none;
    border-bottom: 2px solid #ccc;
    border-radius: 0;
    font-size: 13px !important;
    background-color: #f9f9f9;
    transition: border-color 0.3s, background-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-bottom: 2px solid #1a3c5e;
    background-color: white;
}

.form-control::placeholder {
    color: #999;
}

.signup-btn {
    background: linear-gradient(135deg, #1a3c5e, #2a5c8e);
    color: white;
    padding: 10px 40px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 20px;
    display: inline-block;
    transition: box-shadow 0.2s;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #2a5c8e, #3a7cbe);
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.remember-me-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.remember-me-container input[type="checkbox"] {
    margin: 0 8px 0 0;
    transform: translateY(1px);
}

.remember-me-container label {
    font-size: 14px;
    color: #1a3c5e;
    margin: 0;
}

.remember-me-container a {
    color: #1a3c5e;
    text-decoration: underline;
    cursor: pointer;
}

.remember-me-container a:hover {
    color: #2a5c8e;
}


.base-group {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 601px) {
    .form-group {
        max-width: 400px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }
    #base-fleet-row {
        display: flex;
        justify-content: center;
        gap: 12px;
    }
    #base-fleet-row .form-group {
        max-width: 50%;
    }
    #fleet-group {
        display: none;
    }
    #fleet-group:not([style*="display: none"]) {
        display: block;
    }
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 200px;
    max-width: 400px;
    padding: 12px 20px;
    margin: 10px auto;
    border: 2px dashed #1a3c5e;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #1a3c5e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
    box-sizing: border-box;
}

.file-upload-label span {
    display: block;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .file-upload-label {
        max-width: 100%;
        min-width: 0;
        padding: 10px 15px;
        font-size: 13px;
    }
}

.file-upload-label:hover {
    border-color: #2a5c8e;
    background-color: #e6f0ff;
}

.file-input {
    display: none;
}

.user-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.info-item {
    font-size: 13px;
    font-weight: 500;
    padding: 5px 10px;
    background: #e6f0ff;
    border-radius: 12px;
    color: #1a3c5e;
    transition: background 0.3s ease;
}

.info-item:hover {
    background: #d3e7ff;
}

.info-divider {
    width: 80%;
    height: 1px;
    background-color: #ccc;
    border: none;
    margin-bottom: auto;
}

.menu-divider {
    width: 90%;
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px auto;
    border: none;
  }
  

.menu-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.menu-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon {
    font-size: 24px;
    color: #1a3c5e;
}

.header .menu-icon {
    color: white;
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    min-width: 120px;
}

.menu-item {
    display: block;
    padding: 10px 15px;
    font-size: 13px;
    color: #1a3c5e;
    text-decoration: none;
    transition: background 0.3s;
}

.menu-item:hover {
    background-color: #e6f0ff;
}

.alert {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    opacity: 1;
    transition: opacity 0.5s;
    width: 100%;
    box-sizing: border-box;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.disabled {
    background-color: #e9ecef !important;
    cursor: not-allowed;
}

.alert-unverified {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-unverified a {
    color: #721c24;
    text-decoration: underline;
}

.alert-unverified a:hover {
    color: #501315;
}


.back-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

.back-icon {
    font-size: 24px;
    color: #1a3c5e;
}


@media (max-width: 768px) {
    .lines-section {
        padding: 10px 0 !important;
        width: 100% !important;
    }
    
    .header-content {
        padding: 0 10px !important;
    }
    
    .lines-table {
        width: auto !important;
        min-width: 100% !important;
    }
    
    body, html {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .lines-section {
        padding: 10px 0 !important;
        width: 100% !important;
    }
    
    .header-content {
        padding: 0 10px !important;
    }
    
    .lines-table {
        width: auto !important;
        min-width: 100% !important;
    }
    
    body, html {
        width: 100% !important;
    }
}


.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

.signup-container .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height:auto;
}

.signup-container .remember-me-container {
    flex-direction: row;
    align-items: center;
    justify-content:center;
}

.loading-message {
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.subscription-card {
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.subscription-card:hover {
    transform: scale(1.03);
    background: linear-gradient(135deg, #e6f0ff, #d3e7ff);
}

.subscription-card.selected {
    background: linear-gradient(135deg, #c2f0c2, #9ee6df);
    border-color: #2a5c8e;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.subscription-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: bold;
    color: #1a3c5e;
}

.subscription-card p {
    font-size: 14px;
    color: #444;
}

.subscription-card::before {
    content: "✈️";
    font-size: 28px;
    position: absolute;
    top: 10px;
    right: 15px;
    transition: transform 0.3s ease;
}

.subscription-card:hover::before {
    transform: rotate(10deg) scale(1.2);
}
