/* Global Styles */

.noUi-target {
    background: #f1f1f1;
    border-radius: 15px;
    border: none;
    box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}
.noUi-connect {
    background: #4092cc;
}
.noUi-handle {
    border: none;
    background: #4092cc;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    width: 30px !important;
    height: 30px !important;
    right: -10px !important;
    top: -6px !important;
    border-radius: 50%;
}
.noUi-handle:before, .noUi-handle:after {
    display: none;
}
@media (max-width: 600px) {
.narrow-form-row {
flex-direction: column;
align-items: center;
}
.narrow-form-group {
flex: 1 1 100%;
margin-right: 0;
margin-bottom: 10px;
width: 100%;
max-width: 300px;
}
.form-container {
display: flex;
flex-direction: column;
align-items: center;
}
.form-row {
width: 100%;
max-width: 300px;
}
.sliders-wrapper {
width: 100%;
max-width: 300px;
}
.slider-group {
width: 100%;
}
.slider-container {
width: 100%;
}
.slider {
width: 100%;
}
.slider-labels {
width: 100%;
}
.flight-card {
    padding: 12px;
}

.flight-card > div > div {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
}

.flight-card > div > div > div:nth-child(1) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.flight-card > div > div > div:nth-child(2) {
    order: 3;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
}

.flight-card > div > div > div:nth-child(3) {
    order: 2;
    flex-direction: row !important;
    justify-content: center;
    gap: 32px;
}
}

/* Flight Card Styles for Home Page */
.flight-card-home {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.flight-card-home__accent {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 8px;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.flight-card-home__content {
    position: relative;
    z-index: 2;
    padding: 20px 20px 20px 20px;
}

.flight-card-home__grid {
    display: grid;
    grid-template-columns: 150px 1fr 140px;
    gap: 20px;
    align-items: center;
}

.flight-card-home__airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flight-card-home__logo-container {
    background: white;
    padding: 10px;
    border-radius: 8px;
    width: 130px;
    height: 50px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.flight-card-home__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.flight-card-home__flight-number {
    font-size: 1.1em;
    font-weight: 600;
    color: #4092cc;
}

.flight-card-home__route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 80px;
}

.flight-card-home__airport {
    text-align: center;
}

.flight-card-home__airport-code {
    font-size: 1.6em;
    font-weight: 700;
    color: #2c3e50;
}

.flight-card-home__airport-label {
    font-size: 0.8em;
    color: #94a3b8;
    margin-top: 2px;
}

.flight-card-home__flight-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding-top: 10px;
}

.flight-card-home__line {
    width: 80px;
    height: 2px;
    background: #afafaf;
    position: relative;
    margin-top: 20px;
}

.flight-card-home__plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    animation: fly 4s infinite ease-in-out;
}

.flight-card-home__duration {
    font-size: 0.9em;
    color: #4092cc;
    font-weight: 500;
    margin-top: 20px;
}

.flight-card-home__details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.flight-card-home__detail-item {
    text-align: center;
}

.flight-card-home__detail-label {
    font-size: 0.8em;
    color: #94a3b8;
    margin-bottom: 2px;
}

.flight-card-home__detail-value {
    font-weight: 600;
    color: #2c3e50;
}

.flight-card-home:hover .flight-card-home__accent {
    opacity: 0.9;
}


/* Mobile Styles */
@media (max-width: 600px) {
    .flight-card-home__grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .flight-card-home__route {
        order: 3;
        background: #f8fafc;
        padding: 12px;
        border-radius: 8px;
    }

    .flight-card-home__details {
        order: 2;
        flex-direction: row;
        justify-content: center;
        gap: 32px;
    }
}


body {
    font-family: 'Poppins', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    height: 100vh;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: rgb(64, 146, 204);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar-links {
    display: flex;
    align-items: center;
}

.left-links {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.right-links {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.navbar-logo {
    height: 30px;
    margin-right: 15px;
}

.separator {
    margin: 0 5px;
    color: white;
    font-weight: bold;
}

.navbar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.navbar a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Container styles */
.container {
    flex: 1;
    text-align: center;
    max-width: 650px;
    margin: 0px auto;
    background-color: transparent;
    padding: 5px;
    border-radius: 0;
    box-shadow: none;
}

.container-wide {
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    padding: 25px;
    text-align: center;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}

/* Typography */
h2, h3 {
    font-size: 2.4em;
    font-weight: bold;
    color: #4092cc;
    text-align: center;
    margin-bottom: 40px;
    text-transform: none;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}

h2::after, h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #4092cc;
    margin: 10px auto 0;
    border-radius: 5px;
}

h3::after {
    background-color: #808080;
}

/* Form Styles */
.form-container {
    margin: 0 auto;
    padding: 0 20px;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.form-group {
    width: 48%;
    text-align: center;
}

.narrow-form-row {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.narrow-form-group {
    flex: 0 1 calc(50% - 10px);
}

.form-group label,
.airline-select-label {
    display: block;
    margin-bottom: 5px;
    text-align: center;
    font-weight: bold;
    color: #666;
    font-size: 0.9em;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    height: 45px;
}

.form-group input::placeholder {
    text-align: center;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 98%;
    background-position-y: 50%;
}

.form-group select::-ms-expand {
    display: none;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #4092cc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Button styles */
.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

button, .fly-button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

button:hover, .fly-button:hover {
    background-color: #218838;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Flight Cards */

.flight-card {
    cursor: pointer;
    margin: 1rem auto;
    user-select: none;
    transition: transform 0.2s ease;
    max-width: 600px;
}

.flight-card.selected .flight-card-home {
    box-shadow: 0 0 0 2px #28a745, 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.flight-card-flight-details {
    background-color: #f0f0f0;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.flight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.flight-card.selected {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.flight-card h4 {
    margin: 0px 0 10px;
    font-size: 1.3em;
    color: #4092cc;
    font-weight: 700;
}

.flight-details {
    font-size: 0.95em;
    color: #666;
    margin-top: 10px;
}

.flight-logo-container {
    border-radius: 5px;
    padding: 0px;
    width: 150px;
    margin: 0 auto 10px;
}

.flight-logo {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Slider Styles */
.sliders-wrapper {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.slider-group {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    text-align: center;
}

.slider-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.slider {
    width: 100%;
    height: 20px;
    margin: 20px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7em;
    color: #666;
}

.slider-value {
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    color: #666;
}

/* Airline Logo Grid */
.airline-logo-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 30px;
}

.airline-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px 10px 15px 10px;
    background-color: #ffffff;
}

.airline-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    cursor: pointer;
    padding: 3px 5px;
    border: 1px solid transparent;
    border-radius: 5px;
    transition: border-color 0.3s ease, transform 0.2s ease, background-color 0.3s ease;
}

.airline-logo:hover {
    transform: scale(1.05);
    background-color: rgba(0, 123, 255, 0.1);
}

.airline-logo.selected {
    border-color: #4092cc;
    background-color: rgba(64, 146, 204, 0.1);
}

.any-logo-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.any-logo {
    width: 90px;
    height: 50px;
}

/* Map Styles */
.map-container {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

#map {
    width: 100%;
    height: 500px;
    border-radius: 15px;
}

.map-overlay-control {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 10px;
    border-radius: 3px;
}

/* Route Visualization */
.route-line {
    display: inline-block;
    width: 80px;
    height: 2px;
    background-color: #afafaf;
    position: relative;
    margin: 0 12px;
}

.animated-plane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    animation: fly 4s infinite ease-in-out;
}

/* Footer Styles */
#footer-placeholder .footer {
    margin-top: auto;
    padding: 1rem 0;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    width: 100%;
    font-family: 'Poppins', Arial, sans-serif;
}

#footer-placeholder .discord-link-container {
    text-align: center;
    padding: 0.5rem 0;
    font-family: 'Poppins', Arial, sans-serif;  
}

.footer .discord-link {
    color: #5865F2;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    padding: 0.5rem 1.25rem;
    border: 2px solid #5865F2;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
    font-family: 'Poppins', Arial, sans-serif;  
}

#footer-placeholder .version-number {
    text-align: center;
    padding: 0.5rem 0 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
    font-family: 'Poppins', Arial, sans-serif;
}

/* External Links */
.external-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.external-link,
.flightradar-link,
.flightaware-link,
.simbrief-link {
    display: inline-block;
    padding: 5px 10px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 0.75em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.flightradar-link {
    background-color: #f8c023;
    order: 1;
}

.flightaware-link {
    background-color: #002F5D;
    order: 2;
}

.simbrief-link {
    background-color: #292b30;
    margin: 10px 0 25px;
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
    display: none;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fly {
    0% { transform: translate(-60%, -50%); }
    50% { transform: translate(-40%, -50%); }
    100% { transform: translate(-60%, -50%); }
}

/* noUiSlider Customization */
.noUi-target {
    background: #f1f1f1;
    border-radius: 15px;
    border: none;
    box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
}

.noUi-connect {
    background: #4092cc;
}

.noUi-handle {
    border: none;
    background: #4092cc;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    width: 30px !important;
    height: 30px !important;
    right: -10px !important;
    top: -6px !important;
    border-radius: 50%;
}

.noUi-handle:before, 
.noUi-handle:after {
    display: none;
}


@media (max-width: 600px) {
    .narrow-form-row {
        flex-direction: column;
        align-items: center;
    }

    .narrow-form-group {
        flex: 1 1 100%;
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        max-width: 300px;
    }

    .form-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .form-row {
        width: 100%;
        max-width: 300px;
    }

    .sliders-wrapper {
        width: 100%;
        max-width: 300px;
    }

    .slider-group {
        width: 100%;
    }

    .slider-container {
        width: 100%;
    }

    .slider {
        width: 100%;
    }

    .slider-labels {
        width: 100%;
    }
}

@media (max-width: 350px) {
    .external-links {
        flex-direction: column;
        gap: 10px;
    }

    .flightradar-link,
    .flightaware-link {
        width: 100%;
        text-align: center;
    }
}

/* Welcome Message Styles */
.welcome-message {
    color: #808080;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    background: rgba(255, 255, 255, 0.2);
}

.welcome-message h3 {
    font-size: 3.5em;
}

.welcome-message a {
    color: grey;
    text-decoration: underline;
}

/* Weather Section */
.weather-section {
    margin-top: 40px;
    padding: 10px;
    border-top: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    background-color: #f0f0f0;
}

.weather-details {
    margin-top: 10px;
}

.weather-row {
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.weather-row:last-child {
    border-bottom: none;
}

.weather-row strong {
    font-size: 14px;
}

.weather-row p {
    margin: 5px 0 0;
    font-size: 12px;
}

/* Airport Code Styling */
.airport-code {
    font-size: 1.4em;
    font-weight: bold;
    color: #4092cc;
    margin: 0 10px;
}

/* Standby Card Styles */
.standby-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    max-width: 28rem;
    margin: 2rem auto;
    overflow: hidden;
}

.standby-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.standby-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    color: #4092cc;
}

.standby-content {
    padding: 1.5rem;
}

.standby-active-status {
    background-color: #EBF5FF;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.status-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #08a110;
    margin-bottom: 0.5rem;
}

.time-remaining {
    text-align: center;
    font-size: 0.875rem;
    color: #4092cc;
}

.status-message {
    text-align: center;
    font-size: 0.875rem;
    color: #6B7280;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

/* Flight Assignment Animation */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.flight-assigned {
    color: #28a745;
    font-weight: bold;
    animation: blink 2s infinite;
}

