﻿/* Base Container Styles */
.flight-container {
    max-width: 1336px;
    margin-top: 20px;
    margin-bottom: 40px;
    padding: 8px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1.05rem;
    padding-bottom: 6rem !important;
}

/* Flight Details Page Title */
.nameFlightRoute {
    margin-top: 150px;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
}
@media(min-width:992px) and (max-width:1199.98px) {
    .nameFlightRoute {
        margin-top: 200px;
        text-align: center;
        font-size: 2rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 2rem;
    }
}
    /* Force spacing for pagination area */
    /*body {
    padding-bottom: 2rem !important;
}*/

    /* Flight Notice Container - Two Column Layout */
    .flight-notice-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 1rem 0 2rem 0;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Flight Notice Simple Styles */
    .flight-notice-simple {
        text-align: left;
        color: #6c757d;
        font-size: 13px;
        font-style: italic;
        padding: 0;
        line-height: 1.4;
        flex: 1;
        margin-right: 1rem;
    }

    /* Last Updated with Refresh Button Styles - Changi Airport Style */
    .last-updated-container {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 0.25rem 0;
        flex-shrink: 0;
    }

    .last-updated-text {
        color: #6c757d;
        font-size: 11px;
        font-weight: 500;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    .refresh-btn {
        background: none;
        border: none;
        color: #6c757d;
        cursor: pointer;
        padding: 3px;
        border-radius: 3px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        outline: none;
    }

        .refresh-btn:hover {
            background-color: #f8f9fa;
            color: #082971;
            transform: scale(1.1);
        }

        .refresh-btn:active {
            transform: scale(0.95);
        }

        .refresh-btn:focus {
            outline: 2px solid #082971;
            outline-offset: 2px;
        }

        .refresh-btn i {
            font-size: 10px;
        }

        .refresh-btn.loading i {
            animation: spin 1s linear infinite;
        }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }

    /* Ensure pagination has space */
    .lt-pagination,
    nav.lt-pagination {
        margin: 3rem 0 4rem 0 !important;
        padding: 2rem 0 !important;
        min-height: 80px !important;
        display: block !important;
        background: transparent !important;
    }

    /* Tab Navigation */
    .flight-tabs-container {
        width: 100%;
        margin: 16px 0 16px 0;
    }

    .flight-tabs {
        display: flex;
        border: 1px solid #e0ddd7;
        border-radius: 0;
        overflow: hidden;
        background: #fff;
    }

        .flight-tabs > * {
            flex: 1;
            padding: 24px 0;
            text-align: center;
            font-size: 20px;
            font-weight: 600;
        }

    .flight-tab {
        flex: 1;
        padding: 24px 0;
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        transition: all 0.3s ease;
        text-decoration: none;
        display: block;
    }

    .flight-tab-active {
        cursor: default;
        color: #fff;
        border: 2px solid #082971;
        background-color: #082971;
        font-size: 20px;
    }

    .flight-tab-inactive {
        color: #000;
        border: 1px solid #fff;
        background-color: #fff;
    }

    /* Flight Table Styles */
    .flight-table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
        margin-bottom: 4rem !important;
    }

        .flight-table th, .flight-table td {
            padding: 28px 20px;
            text-align: left;
            vertical-align: middle;
        }

        .flight-table th {
            background-color: #f8f9fa;
            font-weight: 700;
            font-size: 18px;
            border-bottom: 2px solid #e3e8f0;
            padding: 24px 20px;
        }

        .flight-table tr {
            transition: background 0.2s;
        }

        .flight-table .flight-row {
            border-bottom: 1px solid #e3e8f0;
            padding-bottom: 1px;
            position: relative;
            transition: all 0.3s ease;
        }

            /* Hover effect for flight row */
            .flight-table .flight-row:hover {
                background-color: #f8f9fa;
            }

                /* Blue bar effect on hover */
                .flight-table .flight-row:hover::after {
                    content: '';
                    position: absolute;
                    bottom: -1px;
                    left: 0;
                    right: 0;
                    height: 1px;
                    background: #082971;
                    z-index: 1;
                }

        /* Right align status column */
        .flight-table td:nth-child(4) {
            text-align: right;
        }

        .flight-table th:nth-child(4) {
            text-align: right;
        }

    /* Flight Time Display */
    .flight-time-plan {
        color: #b0b8c1;
        text-decoration: line-through;
        font-size: 15px;
    }

    .flight-time-actual {
        font-size: 19px;
        color: #2d3a4a;
        font-weight: 600;
    }

    .time-scheduled {
        text-decoration: line-through;
        color: #999;
        margin-right: 8px;
    }

    /* Flight Info Styles */
    .flight-logo {
        width: 60px;
        height: 60px;
        min-height: 60px;
        min-width: 60px;
        object-fit: contain;
        background: #f5f7fa;
        /* border: 1px solid #e3e8f0; */
        padding: 0;
        margin: 0px 10px 0px 0px;
    }

    .flight-info {
        font-size: 18px;
        color: #2d3a4a;
        font-weight: 500;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .flight-separator {
        color: #374151;
        font-weight: 600;
        font-size: 16px;
    }

    .flight-dest {
        font-weight: bold;
        color: #0b13a5;
        font-size: 15px;
    }

    .codeshare-label {
        color: #64748b;
        font-size: 12px;
        margin-right: 2px;
    }

    .codeshare-value {
        font-size: 14px;
        color: #475569;
    }

    .belt-label {
        font-weight: bold;
        color: #0b13a5;
    }

    /* Flight Details Page Specific Styles */
    .flight-details {
        padding: 12px 24px;
    }

    .flight-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 24px;
    }

    .airline-info {
        display: flex;
        align-items: flex-start;
    }

        .airline-info .flight-logo {
            width: 80px;
            height: 80px;
            margin: 0;
            border-radius: 10px;
            margin-right: 16px;
            object-fit: contain;
        }

    .flight-title .flight-airline {
        font-size: 1rem;
        color: #555;
    }

    .flight-title .flight-code {
        font-size: 1.5rem;
        font-weight: bold;
        margin: 4px 0;
        color: #222;
    }

    /* Status Styles */
    .status-btn {
        background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
        border-radius: 10px;
        padding: 4px 12px;
        font-size: 12px;
        border: none;
        color: #fff;
        font-weight: 400;
        letter-spacing: 1px;
        box-shadow: 0 2px 8px rgba(59,130,246,0.08);
        transition: background 0.2s, box-shadow 0.2s;
    }

        .status-btn:hover {
            background: linear-gradient(90deg, #2563eb 0%, #0ea5e9 100%);
            box-shadow: 0 4px 16px rgba(59,130,246,0.12);
        }

    .status-delayed {
        background: #f1b206 !important;
    }

    .status-landed, .status-on-time, .status-scheduled, .status-departed {
        background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
    }

    .status-boarding {
        background: #f18d13 !important;
    }

    .status-gate-open {
        background: #2aa33f !important;
    }

    /* Flight Route */
    .flight-route {
        display: flex;
        align-items: center;
        margin: 32px 0;
        position: relative;
    }

    .route-point {
        text-align: center;
        min-width: 80px;
        flex: 1;
        padding: 0;
    }

        .route-point:first-child {
            text-align: center;
            padding-left: 0;
        }

        .route-point:last-child {
            text-align: center;
            padding-right: 0;
        }

    .airport-code {
        font-weight: bold;
        font-size: 22px;
        color: #1f2937;
        margin-bottom: 6px;
    }

    .airport-name {
        font-size: 16px;
        color: #666;
        margin-top: 0;
    }

    .route-line {
        flex: 1;
        position: relative;
        height: 24px;
        display: flex;
        align-items: center;
    }

    .dotted-line {
        width: 100%;
        border: none;
        border-top: 1px dotted #999;
        margin: 0;
    }

    .route-line .fa-plane {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 20px;
        color: #333;
    }

    /* Flight Detail Row Styles */
    .flight-detail-row td {
        padding: 0 !important;
        margin: 0 auto;
        background-color: #e3e8f0;
    }

    .detail-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
        border-radius: 8px;
    }

        .detail-container .row {
            padding: 4px !important;
            margin: 4px !important;
        }

        .detail-container .col {
            padding: 4px !important;
        }

    .arrow-col {
        text-align: center;
    }

    .flight-detail-text-large {
        font-size: 1.8rem;
        font-weight: 600;
        color: #1751a2;
        overflow: hidden;
        word-wrap: break-word;
        display: block;
    }

    .flight-detail-text-small {
        font-size: 1rem;
        color: #6b7280;
        line-height: 1.2;
        height: 1.8rem; /* Exactly 2 lines */
        /*    overflow: hidden;*/
        word-wrap: break-word;
        display: block;
    }

    /* Button Styles */
    .btn-red {
        background-color: #f15b5b;
        color: white;
        border-radius: 5px;
        font-weight: 500;
        min-width: 100px;
    }

        .btn-red:hover {
            background-color: #f1625b !important;
            color: white !important;
        }

    .btn-blue {
        background-color: #082971;
        color: white;
        border-radius: 5px;
        font-weight: 500;
        min-width: 100px;
    }

        .btn-blue:hover {
            background-color: #082671 !important;
            color: white !important;
        }

    .btn-blue2 {
        background-color: #082971;
        color: white;
        border-radius: 5px;
        font-weight: 500;
        min-width: 100px;
    }

        .btn-blue2:hover {
            background-color: #082671 !important;
            color: white !important;
        }

    @media(max-width:992px) {
        .btn-blue {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 70px;
        }

        .btn-blue2 {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 90px;
        }

        .btn-red {
            background-color: #f15b5b;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 90px;
        }
    }

    @media(max-width:350px) {
        .btn-blue {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 65px;
        }

        .btn-blue2 {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 80px;
        }

        .btn-red {
            background-color: #f15b5b;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 80px;
        }
    }

    /*CSS cho hiển thị chuyến bay tại Home*/
    .btn-red-searchhome {
        background-color: #f15b5b;
        color: white;
        border-radius: 5px;
        font-weight: 500;
        min-width: 120px;
    }

        .btn-red-searchhome:hover {
            background-color: #f1625b !important;
            color: white !important;
        }

    .btn-blue-searchhome {
        background-color: #082971;
        color: white;
        border-radius: 5px;
        font-weight: 500;
        min-width: 100px;
    }

        .btn-blue-searchhome:hover {
            background-color: #082671 !important;
            color: white !important;
        }

    .btn-blue2-searchhome {
        background-color: #082971;
        color: white;
        border-radius: 5px;
        font-weight: 500;
        min-width: 120px;
    }

        .btn-blue2-searchhome:hover {
            background-color: #082671 !important;
            color: white !important;
        }

    @media(max-width:768px) {
        .btn-blue-searchhome {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 60px;
        }

        .btn-blue2-searchhome {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 80px;
        }

        .btn-red-searchhome {
            background-color: #f15b5b;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 80px;
        }
    }

    @media(max-width:360px) {
        .flight-table td button {
            font-size: 8px !important;
            padding: 4px 8px !important;
            border-radius: 6px !important;
        }

        .btn-blue-searchhome {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 60px;
        }

        .btn-blue2-searchhome {
            background-color: #082971;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 70px;
        }

        .btn-red-searchhome {
            background-color: #f15b5b;
            color: white;
            border-radius: 5px;
            font-weight: 500;
            min-width: 70px;
        }
    }


    /* Codeshare Info */
    .codeshare-info {
        font-size: 14px;
        margin-bottom: 16px;
        text-align: center;
    }

        .codeshare-info .label {
            font-weight: 500;
        }

        .codeshare-info .value {
            color: #475569;
        }

    /* Flight Notice */
    .flight-notice {
        font-size: 14px;
        color: #666;
        margin-bottom: 20px;
        line-height: 1.5;
        text-align: center;
    }

    .divider {
        border: none;
        border-top: 1px solid #eee;
        margin: 20px 0;
    }

    /* Flight Details Grid */
    .flight-details-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        margin: 32px 0;
        position: relative;
        padding: 0;
    }

    .detail-item {
        flex: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 80px;
        padding: 0;
    }

        .detail-item:first-child {
            text-align: center;
            align-items: center;
            padding-left: 0;
        }

        .detail-item:last-child {
            text-align: center;
            align-items: center;
            padding-right: 0;
        }

    .detail-label {
        font-size: 13px;
        color: #666;
        margin-bottom: 6px;
        font-weight: 500;
        text-align: center;
    }

    .detail-value {
        font-size: 20px;
        font-weight: 600;
        color: #1f2937;
        text-align: center;
    }

    /* Baggage Belt Styling */
    .belt-number {
        color: #6a3de8;
        font-size: 32px;
        font-weight: bold;
    }

    /* Belt styling trong detail-item */
    .detail-item .belt-number {
        color: #6a3de8;
        font-size: 20px;
        font-weight: bold;
        margin-right: 8px;
        display: inline-block;
    }

    .detail-item .fa-map-location-dot {
        color: #6a3de8;
        font-size: 18px;
        display: inline-block;
    }

    /* Time styling trong detail-item */
    .detail-item .time-scheduled {
        text-decoration: line-through;
        color: #999;
        margin-right: 8px;
    }

    .detail-item .time-actual {
        color: #2d3a4a;
        font-weight: 600;
    }

    /* Pagination Styles */
    .lt-pagination {
        margin: 3rem 0 4rem 0 !important;
        padding: 2rem 0;
        min-height: 80px;
        background: transparent;
        border: none;
    }

    .pagination .page-link {
        color: #2d2c6a;
        border: 1px solid #e0e4ea;
        padding: 12px 16px;
        margin: 0 2px;
        border-radius: 8px;
        font-weight: 500;
        transition: all 0.2s ease;
    }

        .pagination .page-link:hover {
            background-color: #f7f9fb;
            border-color: #1751a2;
            color: #1751a2;
        }

    .pagination .page-item.active .page-link {
        background-color: #1751a2;
        border-color: #1751a2;
        color: white;
    }

        .pagination .page-item.active .page-link:hover {
            background-color: #1751a2;
            border-color: #1751a2;
            color: white;
        }

    /* =======================================
   CUSTOM SEARCH COMPONENT STYLES
   ======================================= */

    /* Search Input Group */
    .search-input-group {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        flex: 1;
        min-width: 300px;
    }

    .search-input-wrapper {
        position: relative;
        flex: 1;
    }

    .search-icon {
        position: absolute !important;
        left: 1rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        color: #6b7280 !important;
        font-size: 1rem !important;
        z-index: 30 !important;
        pointer-events: none !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .search-input {
        width: 100%;
        padding: 0.75rem 1rem 0.75rem 2.5rem;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        font-size: 0.95rem;
        background: #ffffff;
        transition: all 0.2s ease;
        color: #374151;
        font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    }

        .search-input:focus {
            outline: none;
            border-color: #214CA6;
            box-shadow: 0 0 0 3px rgba(33, 76, 166, 0.1);
        }

        .search-input::placeholder {
            color: #9ca3af;
            opacity: 1;
        }

    /* Search Button */
    .search-btn {
        background: #082971;
        color: #ffffff;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        white-space: nowrap;
        font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    }

        .search-btn:hover {
            background: #183B86;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(33, 76, 166, 0.3);
        }

        .search-btn:active {
            background: #0F2A5C;
            transform: translateY(0);
        }

        .search-btn i {
            font-size: 0.875rem;
        }

    /* Responsive adjustments for search */
    @media (max-width: 768px) {
        .search-input-group {
            flex-direction: column;
            gap: 0.75rem;
            min-width: 100%;
        }

        .search-input-wrapper {
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .search-btn {
            width: 100%;
            justify-content: center;
            padding: 0.875rem 1.5rem;
            font-size: 1rem;
            height: 48px;
        }
    }

    /* Responsive for tablet - show vertical layout like in image */
    @media (max-width: 992px) {
        /* Form container layout */
        .row.g-2 {
            flex-direction: column;
            /* gap: 0.75rem !important; */
        }

        .col-12.col-md-6 {
            width: 100% !important;
            max-width: 100% !important;
            flex: 0 0 100% !important;
        }

        .search-input-group {
            flex-direction: column;
            gap: 0.75rem;
            min-width: 100%;
        }

        .search-input-wrapper {
            width: 100%;
            margin-bottom: 0.5rem;
        }

        .search-btn {
            width: 100%;
            justify-content: center;
            padding: 0.875rem 1.5rem;
            font-size: 1rem;
            height: 48px;
        }
    }

    @media (max-width: 480px) {
        .search-input {
            padding: 0.625rem 0.875rem 0.625rem 2.25rem;
            font-size: 0.9rem;
        }

        .search-icon {
            left: 0.875rem !important;
            font-size: 0.9rem !important;
        }

        .search-btn {
            padding: 0.625rem 1.25rem;
            font-size: 0.875rem;
        }
    }

    /* =======================================
   CUSTOM DATEPICKER STYLES
   ======================================= */

    /* Datepicker Container */
    .datetime-input-group {
        position: relative;
        margin-bottom: 1rem;
        z-index: 100;
        min-width: 230px;
        flex: 1;
    }


    .datetime-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .datetime-input {
        width: 100%;
        padding: 0.75rem 3rem 0.75rem 1rem;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        font-size: 0.95rem;
        background: #ffffff;
        transition: all 0.2s ease;
        height: 48px;
        color: #374151;
        font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    }

        .datetime-input:focus {
            outline: none;
            border-color: #214CA6;
            box-shadow: 0 0 0 3px rgba(33, 76, 166, 0.1);
        }

        .datetime-input::placeholder {
            color: #9ca3af;
            opacity: 1;
        }

    .datetime-clear-btn,
    .datetime-calendar-btn {
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        padding: 0.25rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

    .datetime-clear-btn {
        right: 2.5rem;
    }

        .datetime-clear-btn:hover,
        .datetime-calendar-btn:hover {
            background: #f3f4f6;
            color: #214CA6;
        }

    /* Calendar Picker */
    .datetime-picker {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 10002;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.2s ease;
        margin-top: 4px;
        min-width: 280px;
    }

        .datetime-picker.show {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

    .datetime-picker-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        border-bottom: 1px solid #e5e7eb;
        background: #f8fafc;
        border-radius: 12px 12px 0 0;
    }

    .picker-nav-btn {
        background: none;
        border: none;
        color: #6b7280;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 6px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

        .picker-nav-btn:hover {
            background: #e5e7eb;
            color: #214CA6;
        }

    .picker-month-year {
        font-weight: 600;
        color: #374151;
        font-size: 1rem;
    }

    .datetime-picker-body {
        padding: 1rem;
        border-radius: 0 0 12px 12px;
    }

    .picker-weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }

        .picker-weekdays > div {
            text-align: center;
            font-weight: 600;
            color: #6b7280;
            font-size: 0.875rem;
            padding: 0.5rem 0;
        }

    .picker-days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 0.25rem;
        justify-items: center;
    }

    .picker-day {
        width: 2.5rem;
        height: 2.5rem;
        border: none;
        background: transparent;
        color: #374151;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        transition: all 0.2s ease;
        font-weight: 400;
        margin: 0 auto;
    }

        .picker-day:hover {
            background: #e0e7ff;
            color: #214CA6;
            transform: scale(1.05);
        }

        .picker-day.selected {
            background: #214CA6 !important;
            color: #ffffff !important;
            font-weight: 600;
            box-shadow: 0 2px 4px rgba(33, 76, 166, 0.3);
            transform: scale(1.05);
        }

        .picker-day.today {
            background: #f3f4f6;
            color: #214CA6;
            font-weight: 600;
        }

        .picker-day.other-month {
            color: #d1d5db;
        }

        .picker-day.disabled {
            color: #d1d5db;
            cursor: not-allowed;
            background: transparent;
        }

            .picker-day.disabled:hover {
                background: transparent;
                color: #d1d5db;
                transform: none;
            }


    /* Responsive adjustments for datepicker */
    @media (max-width: 992px) {
        .datetime-input-group {
            width: 100%;
            margin-bottom: 0.75rem;
            margin-top: 1rem;
        }

        .datetime-input {
            height: 48px;
            font-size: 1rem;
        }

        .datetime-picker {
            min-width: 100%;
            left: 0;
            right: 0;
        }
    }

    @media (max-width: 768px) {
        .datetime-input-group {
            margin-top: 1rem;
        }

        .datetime-picker {
            min-width: 260px;
        }

        .picker-day {
            width: 2rem;
            height: 2rem;
            font-size: 0.8rem;
            margin: 0 auto;
        }

        .datetime-picker-header,
        .datetime-picker-body,
        .datetime-picker-footer {
            padding: 0.75rem;
        }
    }

    @media (max-width: 480px) {
        .datetime-input-group {
            margin-top: 1rem;
        }

        .datetime-picker {
            min-width: 240px;
        }

        .picker-day {
            width: 1.75rem;
            height: 1.75rem;
            font-size: 0.75rem;
            margin: 0 auto;
        }
    }

    /* =======================================
   MODAL STYLES
   ======================================= */

    /* Modal Overlay */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1050;
        padding: 20px;
    }

    /* Ensure modal is perfectly centered on desktop */
    @media (min-width: 768px) {
        .modal-overlay {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 40px !important;
        }

        .modal-content {
            margin: 0 auto !important;
            transform: none !important;
            position: relative !important;
        }
    }

    /* Additional desktop centering for larger screens */
    @media (min-width: 992px) {
        .modal-overlay {
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            padding: 60px !important;
        }

        .modal-content {
            width: 600px !important;
            max-width: 600px !important;
            margin: 0 auto !important;
            transform: none !important;
            position: relative !important;
        }
    }

    /* Modal Content */
    .modal-content {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        max-width: 600px;
        width: 100%;
        max-height: 90vh;
        overflow: hidden;
        position: relative;
    }

    /* Modal Header */
    .modal-header {
        padding: 20px 24px;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #fff;
    }

    .modal-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: #1f2937;
        margin: 0;
    }

    .modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6b7280;
        cursor: pointer;
        padding: 4px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }

        .modal-close:hover {
            background: #f3f4f6;
            color: #374151;
        }

    /* Modal Body */
    .modal-body {
        padding: 24px;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* Modal Footer */
    .modal-footer {
        padding: 16px 24px;
        border-top: 1px solid #e5e7eb;
        display: flex;
        gap: 12px;
        justify-content: flex-end;
        background: #fff;
    }

    /* Desktop Status Badge Styling - Keep original position but update colors */
    .modal-body .status-info {
        position: relative;
        display: inline-block;
    }

    .modal-body .status-badge {
        background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
        color: white;
        padding: 6px 12px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 500;
        text-align: center;
        display: inline-block;
        box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
        transition: all 0.2s ease;
    }

        .modal-body .status-badge:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 8px rgba(59, 130, 246, 0.4);
        }

    /* General status positioning for all responsive breakpoints */
    @media (max-width: 768px) {
        /* Force any status element to top right in modal */
        .modal-body *[class*="status"],
        .modal-body *[class*="badge"],
        .modal-body *[class*="btn"]:last-child,
        .modal-body .flight-header > *:last-child,
        .modal-body .airline-info + * {
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            margin: 0 !important;
            z-index: 10 !important;
        }

        /* Force increase logo size in modal */
        .modal-body img[alt="Airline Logo"],
        .modal-body img[alt="Logo"],
        .modal-body .airline-info img,
        .modal-body .flight-header img {
            width: 100px !important;
            height: 100px !important;
            min-width: 100px !important;
            min-height: 100px !important;
            max-width: 100px !important;
            max-height: 100px !important;
        }
    }

    /* Fullpage Modal for Mobile and Tablet */
    @media (max-width: 992px) {
        /* Prevent body scroll when modal is open */
        body.modal-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        .modal-overlay {
            align-items: flex-start;
            padding: 0;
            background: rgba(0, 0, 0, 0.9);
        }

        /* Override for desktop - ensure modal is centered */
        @media (min-width: 768px) {
            .modal-overlay {
                align-items: center !important;
                justify-content: center !important;
                padding: 40px !important;
                background: rgba(0, 0, 0, 0.5) !important;
            }

            .modal-content {
                width: 600px !important;
                height: auto !important;
                max-width: 600px !important;
                max-height: 90vh !important;
                border-radius: 12px !important;
                display: block !important;
                flex-direction: unset !important;
                margin: 0 auto !important;
                position: relative !important;
                top: auto !important;
                left: auto !important;
                right: auto !important;
                bottom: auto !important;
            }
        }

        .modal-content {
            width: 100%;
            height: 100vh;
            max-width: none;
            max-height: none;
            border-radius: 0;
            display: flex;
            flex-direction: column;
            margin: 0;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .modal-header {
            position: sticky;
            top: 0;
            background: #fff;
            z-index: 1;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            border-radius: 0;
            padding: 12px 16px;
            flex-shrink: 0;
        }

        .modal-title {
            font-size: 1.1rem;
        }

        .modal-close {
            font-size: 1.3rem;
        }

        .modal-body {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            max-height: none;
        }

            /* Add top margin to main content elements in responsive modal */
            .modal-body .flight-details {
                margin-top: 20px;
            }

            .modal-body .flight-header {
                margin-top: 20px;
                margin-bottom: 40px;
            }

            /* Increase airline logo size in responsive modal */
            .modal-body .airline-info .flight-logo,
            .modal-body .flight-logo {
                width: 100px !important;
                height: 100px !important;
                min-width: 100px !important;
                min-height: 100px !important;
                max-width: 100px !important;
                max-height: 100px !important;
            }

            .modal-body .flight-route {
                margin-top: 40px;
            }

            .modal-body .codeshare-info {
                margin-top: 40px;
            }

            .modal-body .flight-notice {
                margin-top: 40px;
            }

            .modal-body .flight-details-grid {
                margin-top: 40px;
            }

        .modal-footer {
            position: sticky;
            bottom: 0;
            background: #fff;
            z-index: 1;
            box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
            border-radius: 0;
            flex-shrink: 0;
            padding: 12px 16px;
        }

        /* Reduce content sizes for tablet modal */
        .flight-detail-text-large {
            font-size: 1.4rem !important;
        }

        .flight-detail-text-small {
            font-size: 0.8rem !important;
            height: 1.6rem !important;
        }

        .airline-info .flight-logo {
            width: 60px !important;
            height: 60px !important;
            min-width: 60px !important;
            min-height: 60px !important;
        }

        .flight-title .flight-code {
            font-size: 1.3rem !important;
        }

        .flight-title .flight-airline {
            font-size: 0.9rem !important;
        }

        .airport-code {
            font-size: 16px !important;
        }

        .airport-name {
            font-size: 12px !important;
        }

        .belt-number {
            font-size: 28px !important;
        }

        .btn-blue, .btn-red, .btn-blue2 {
            font-size: 0.75rem !important;
            padding: 8px 14px !important;
            min-width: 70px !important;
        }

        .flight-details-grid {
            flex-direction: row !important;
            gap: 0 !important;
            padding: 0 !important;
        }

        .detail-item {
            padding: 0 !important;
            text-align: center !important;
            align-items: center !important;
        }

            .detail-item:first-child,
            .detail-item:last-child {
                text-align: center !important;
                align-items: center !important;
            }

        .detail-item {
            margin-bottom: 12px !important;
        }

        .detail-label {
            font-size: 12px !important;
            margin-bottom: 4px !important;
        }

        .detail-value {
            font-size: 16px !important;
        }

        .flight-header {
            margin-bottom: 16px !important;
        }

        .flight-route {
            margin: 16px 0 !important;
        }

        .codeshare-info {
            margin-bottom: 12px !important;
        }

        .flight-notice {
            margin-bottom: 16px !important;
        }
    }

    /* Additional breakpoints for fullpage modal */
    @media (max-width: 768px) {
        .modal-content {
            height: 100vh;
            width: 100vw;
        }

        .modal-header {
            padding: 10px 12px;
        }

        .modal-title {
            font-size: 1.2rem;
        }

        .modal-close {
            font-size: 1.4rem;
        }

        .modal-body {
            padding: 12px;
        }

            /* Add top margin to main content elements in responsive modal */
            .modal-body .flight-details {
                margin-top: 16px;
            }

            .modal-body .flight-header {
                margin-top: 16px;
                margin-bottom: 32px;
            }

            /* Increase airline logo size in responsive modal */
            .modal-body .airline-info .flight-logo,
            .modal-body .flight-logo {
                width: 85px !important;
                height: 85px !important;
                min-width: 85px !important;
                min-height: 85px !important;
                max-width: 85px !important;
                max-height: 85px !important;
            }

            .modal-body .flight-route {
                margin-top: 32px;
            }

            .modal-body .codeshare-info {
                margin-top: 32px;
            }

            .modal-body .flight-notice {
                margin-top: 32px;
            }

            .modal-body .flight-details-grid {
                margin-top: 32px;
            }

        .modal-footer {
            padding: 10px 12px;
        }

        /* Reduce content sizes for mobile modal */
        .flight-detail-text-large {
            font-size: 1.4rem !important;
        }

        .flight-detail-text-small {
            font-size: 0.9rem !important;
            height: 1.6rem !important;
        }

        .airline-info .flight-logo {
            width: 70px !important;
            height: 70px !important;
            min-width: 70px !important;
            min-height: 70px !important;
        }

        .flight-title .flight-code {
            font-size: 1.3rem !important;
        }

        .flight-title .flight-airline {
            font-size: 1rem !important;
        }

        .airport-code {
            font-size: 20px !important;
        }

        .airport-name {
            font-size: 15px !important;
        }

        .belt-number {
            font-size: 32px !important;
        }

        .btn-blue, .btn-red, .btn-blue2 {
            font-size: 0.9rem !important;
            padding: 8px 16px !important;
            min-width: 70px !important;
        }

        .flight-details-grid {
            flex-direction: row !important;
            gap: 0 !important;
            padding: 0 !important;
        }

        .detail-item {
            padding: 0 !important;
            text-align: center !important;
            align-items: center !important;
        }

            .detail-item:first-child,
            .detail-item:last-child {
                text-align: center !important;
                align-items: center !important;
            }

        .detail-item {
            margin-bottom: 12px !important;
        }

        .detail-label {
            font-size: 15px !important;
            margin-bottom: 6px !important;
        }

        .detail-value {
            font-size: 18px !important;
        }

        .flight-header {
            margin-bottom: 16px !important;
        }

        .flight-route {
            margin: 16px 0 !important;
        }

        .codeshare-info {
            margin-bottom: 12px !important;
        }

        .flight-notice {
            margin-bottom: 16px !important;
        }

        /* Reposition status badge to top right for mobile modal */
        .modal-body .flight-header {
            position: relative !important;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
        }

        .modal-body .airline-info {
            flex: 1 !important;
            display: flex !important;
            align-items: flex-start !important;
        }

        /* Target status badge in modal */
        .modal-body .status-info {
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            margin: 0 !important;
            z-index: 10 !important;
        }

        .modal-body .status-badge {
            font-size: 0.7rem !important;
            padding: 4px 8px !important;
            min-width: 60px !important;
            border-radius: 6px !important;
            background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%) !important;
            color: white !important;
            text-align: center !important;
            display: inline-block !important;
        }
    }

    @media (max-width: 576px) {
        .modal-content {
            height: 100vh;
            width: 100vw;
        }

        .modal-header {
            padding: 8px 12px;
        }

        .modal-title {
            font-size: 1.1rem;
        }

        .modal-close {
            font-size: 1.3rem;
        }

        .modal-body {
            padding: 10px;
        }

            /* Add top margin to main content elements in responsive modal */
            .modal-body .flight-details {
                margin-top: 12px;
            }

            .modal-body .flight-header {
                margin-top: 12px;
                margin-bottom: 24px;
            }

            /* Increase airline logo size in responsive modal */
            .modal-body .airline-info .flight-logo,
            .modal-body .flight-logo {
                width: 70px !important;
                height: 70px !important;
                min-width: 70px !important;
                min-height: 70px !important;
                max-width: 70px !important;
                max-height: 70px !important;
            }

            .modal-body .flight-route {
                margin-top: 24px;
            }

            .modal-body .codeshare-info {
                margin-top: 24px;
            }

            .modal-body .flight-notice {
                margin-top: 24px;
            }

            .modal-body .flight-details-grid {
                margin-top: 24px;
            }

        .modal-footer {
            padding: 8px 12px;
        }

        /* Further reduce sizes for small mobile */
        .flight-detail-text-large {
            font-size: 1.2rem !important;
        }

        .flight-detail-text-small {
            font-size: 0.8rem !important;
            height: 1.4rem !important;
        }

        .airline-info .flight-logo {
            width: 60px !important;
            height: 60px !important;
            min-width: 60px !important;
            min-height: 60px !important;
        }

        .flight-title .flight-code {
            font-size: 1.2rem !important;
        }

        .flight-title .flight-airline {
            font-size: 0.9rem !important;
        }

        .airport-code {
            font-size: 18px !important;
        }

        .airport-name {
            font-size: 14px !important;
        }

        .belt-number {
            font-size: 28px !important;
        }

        .btn-blue, .btn-red, .btn-blue2 {
            font-size: 0.8rem !important;
            padding: 6px 12px !important;
            min-width: 60px !important;
        }

        .flight-details-grid {
            flex-direction: row !important;
            gap: 0 !important;
            padding: 0 !important;
        }

        .detail-item {
            padding: 0 !important;
            text-align: center !important;
            align-items: center !important;
        }

            .detail-item:first-child,
            .detail-item:last-child {
                text-align: center !important;
                align-items: center !important;
            }

        .detail-item {
            margin-bottom: 10px !important;
        }

        .detail-label {
            font-size: 14px !important;
            margin-bottom: 4px !important;
        }

        .detail-value {
            font-size: 16px !important;
        }

        .flight-header {
            margin-bottom: 12px !important;
        }

        .flight-route {
            margin: 12px 0 !important;
        }

        .codeshare-info {
            margin-bottom: 10px !important;
        }

        .flight-notice {
            margin-bottom: 12px !important;
        }

        /* Ensure status badge stays in top right for small mobile */
        .modal-body .flight-header {
            position: relative !important;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
        }

        .modal-body .airline-info {
            flex: 1 !important;
            display: flex !important;
            align-items: flex-start !important;
        }

        /* Target status badge in modal */
        .modal-body .status-info {
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            margin: 0 !important;
            z-index: 10 !important;
        }

        .modal-body .status-badge {
            font-size: 0.6rem !important;
            padding: 3px 6px !important;
            min-width: 50px !important;
            border-radius: 4px !important;
            background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%) !important;
            color: white !important;
            text-align: center !important;
            display: inline-block !important;
        }
    }

    /* Extra Small Mobile - 539px and down - Horizontal flight route layout */
    @media (max-width: 539px) {
        /* Force horizontal layout for flight route in modal */
        .modal-body .flight-route {
            display: flex !important;
            align-items: center !important;
            justify-content: space-between !important;
            margin: 8px 0 !important;
            position: relative !important;
            gap: 4px !important;
            flex-wrap: nowrap !important;
            flex-direction: row !important;
        }

        .modal-body .route-point {
            text-align: center !important;
            min-width: 55px !important;
            flex-shrink: 0 !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .modal-body .airport-code {
            font-size: 16px !important;
            font-weight: bold !important;
            color: #1f2937 !important;
            margin-bottom: 3px !important;
            display: block !important;
        }

        .modal-body .airport-name {
            font-size: 13px !important;
            color: #666 !important;
            line-height: 1.2 !important;
            display: block !important;
            margin-top: 0 !important;
        }

        .modal-body .route-line {
            flex: 1 !important;
            position: relative !important;
            height: 24px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 4px !important;
            min-width: 40px !important;
        }

        .modal-body .dotted-line {
            width: 100% !important;
            border: none !important;
            border-top: 1px dotted #999 !important;
            margin: 0 !important;
            display: block !important;
        }

        .modal-body .route-line .fa-plane {
            position: absolute !important;
            left: 50% !important;
            top: 50% !important;
            transform: translate(-50%, -50%) !important;
            font-size: 16px !important;
            color: #333 !important;
            display: block !important;
        }

        /* Ensure modal content fits without scroll */
        .modal-body {
            padding: 8px !important;
            overflow-y: auto !important;
        }

            /* Add top margin to main content elements in responsive modal */
            .modal-body .flight-details {
                margin-top: 10px !important;
            }

            .modal-body .flight-header {
                margin-top: 10px !important;
                margin-bottom: 20px !important;
            }

            /* Increase airline logo size in responsive modal */
            .modal-body .airline-info .flight-logo,
            .modal-body .flight-logo {
                width: 60px !important;
                height: 60px !important;
                min-width: 60px !important;
                min-height: 60px !important;
                max-width: 60px !important;
                max-height: 60px !important;
            }

            .modal-body .flight-route {
                margin-top: 20px !important;
            }

            .modal-body .codeshare-info {
                margin-top: 20px !important;
            }

            .modal-body .flight-notice {
                margin-top: 20px !important;
            }

            .modal-body .flight-details-grid {
                margin-top: 20px !important;
            }

        /* Further reduce sizes for extra small mobile */
        .flight-detail-text-large {
            font-size: 1.1rem !important;
        }

        .flight-detail-text-small {
            font-size: 0.75rem !important;
            height: 1.3rem !important;
        }

        .airline-info .flight-logo {
            width: 50px !important;
            height: 50px !important;
            min-width: 50px !important;
            min-height: 50px !important;
        }

        .flight-title .flight-code {
            font-size: 1.1rem !important;
        }

        .flight-title .flight-airline {
            font-size: 0.8rem !important;
        }

        .airport-code {
            font-size: 16px !important;
        }

        .airport-name {
            font-size: 13px !important;
        }

        .belt-number {
            font-size: 26px !important;
        }

        .btn-blue, .btn-red, .btn-blue2 {
            font-size: 0.75rem !important;
            padding: 5px 10px !important;
            min-width: 55px !important;
        }

        .flight-details-grid {
            flex-direction: row !important;
            gap: 0 !important;
            padding: 0 !important;
        }

        .detail-item {
            padding: 0 !important;
            text-align: center !important;
            align-items: center !important;
        }

            .detail-item:first-child,
            .detail-item:last-child {
                text-align: center !important;
                align-items: center !important;
            }

        .detail-item {
            margin-bottom: 8px !important;
        }

        .detail-label {
            font-size: 13px !important;
            margin-bottom: 3px !important;
        }

        .detail-value {
            font-size: 15px !important;
        }

        .flight-header {
            margin-bottom: 10px !important;
        }

        .codeshare-info {
            margin-bottom: 8px !important;
        }

        .flight-notice {
            margin-bottom: 10px !important;
        }

        /* Ensure status badge stays in top right for extra small mobile */
        .modal-body .flight-header {
            position: relative !important;
            display: flex !important;
            align-items: flex-start !important;
            justify-content: space-between !important;
        }

        .modal-body .airline-info {
            flex: 1 !important;
            display: flex !important;
            align-items: flex-start !important;
        }

        /* Target status badge in modal */
        .modal-body .status-info {
            position: absolute !important;
            top: 0 !important;
            right: 0 !important;
            margin: 0 !important;
            z-index: 10 !important;
        }

        .modal-body .status-badge {
            font-size: 0.75rem !important;
            padding: 4px 8px !important;
            min-width: 55px !important;
            border-radius: 4px !important;
            background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%) !important;
            color: white !important;
            text-align: center !important;
            display: inline-block !important;
        }
    }

    /* =======================================
   RESPONSIVE MEDIA QUERIES
   ======================================= */

    /* Center specific flight row elements for mobile below 540px */
    @media (max-width: 540px) {
        /* Ensure all airline logos are aligned consistently */
        .flight-table img[alt*="logo"],
        .flight-table img[alt*="Logo"],
        .flight-table .airline-logo,
        .flight-table .flight-logo {
            width: 60px !important;
            height: 60px !important;
            min-width: 60px !important;
            min-height: 60px !important;
            max-width: 60px !important;
            max-height: 60px !important;
            object-fit: contain !important;
            vertical-align: middle !important;
            flex-shrink: 0 !important;
            margin: 0 auto 8px !important;
            display: block !important;
        }
        /* Reset table layout for mobile */
        .flight-table {
            display: block !important;
        }

            .flight-table thead {
                display: none !important;
            }

            .flight-table tbody {
                display: block !important;
            }

            .flight-table .flight-row {
                display: block !important;
                border: 1px solid #e5e7eb !important;
                border-radius: 8px !important;
                margin-bottom: 12px !important;
                padding: 16px !important;
                background: #fff !important;
                box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
            }

                .flight-table .flight-row td {
                    display: block !important;
                    border: none !important;
                    padding: 0 !important;
                    margin-bottom: 8px !important;
                }

                    /* Time column - left aligned */
                    .flight-table .flight-row td:first-child {
                        text-align: left !important;
                        margin-bottom: 12px !important;
                    }

            .flight-table .flight-time {
                font-size: 1.2rem !important;
                font-weight: 600 !important;
                color: #1f2937 !important;
            }

            /* Flight info column - centered */
            .flight-table .flight-row td:nth-child(2) {
                text-align: center !important;
                margin-bottom: 12px !important;
                display: flex !important;
                flex-direction: column !important;
                align-items: center !important;
                justify-content: center !important;
            }

            .flight-table .flight-logo {
                margin: 0 auto 8px !important;
                display: block !important;
                width: 60px !important;
                height: 60px !important;
                min-width: 60px !important;
                min-height: 60px !important;
                max-width: 60px !important;
                max-height: 60px !important;
                object-fit: contain !important;
                vertical-align: middle !important;
                flex-shrink: 0 !important;
            }

            .flight-table .flight-info {
                text-align: center !important;
                margin-bottom: 8px !important;
                padding: 0 20px !important;
            }

            .flight-table .flight-code {
                font-size: 1.1rem !important;
                font-weight: 600 !important;
                color: #1f2937 !important;
                margin-bottom: 4px !important;
                padding: 0 10px !important;
            }

            .flight-table .flight-airline {
                font-size: 0.9rem !important;
                color: #6b7280 !important;
                margin-bottom: 8px !important;
                padding: 0 10px !important;
            }

            .flight-table .flight-dest {
                font-size: 1rem !important;
                font-weight: 500 !important;
                color: #1f2937 !important;
                margin-bottom: 8px !important;
                padding: 0 10px !important;
            }

            .flight-table .codeshare-info {
                font-size: 0.8rem !important;
                color: #6b7280 !important;
                margin-bottom: 8px !important;
                padding: 0 10px !important;
            }

            .flight-table .belt-info {
                font-size: 0.9rem !important;
                color: #1f2937 !important;
                margin-bottom: 12px !important;
                padding: 0 10px !important;
            }

            /* Status column - right aligned at bottom */
            .flight-table .flight-row td:last-child {
                text-align: right !important;
                margin-bottom: 0 !important;
            }

            .flight-table .status-btn {
                display: inline-block !important;
                padding: 6px 12px !important;
                border-radius: 20px !important;
                font-size: 0.8rem !important;
                font-weight: 500 !important;
                text-align: center !important;
                min-width: 80px !important;
            }

                /* Status button colors */
                .flight-table .status-btn.scheduled {
                    background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%) !important;
                    color: white !important;
                }

                .flight-table .status-btn.delayed {
                    background: #f59e0b !important;
                    color: white !important;
                }

                .flight-table .status-btn.cancelled {
                    background: #ef4444 !important;
                    color: white !important;
                }

                .flight-table .status-btn.boarding {
                    background: #10b981 !important;
                    color: white !important;
                }
    }

    /* Extra small mobile - 539px and down */
    @media (max-width: 539px) {
        /* Ensure all airline logos are aligned consistently */
        .flight-table img[alt*="logo"],
        .flight-table img[alt*="Logo"],
        .flight-table .airline-logo,
        .flight-table .flight-logo {
            width: 55px !important;
            height: 55px !important;
            min-width: 55px !important;
            min-height: 55px !important;
            max-width: 55px !important;
            max-height: 55px !important;
            object-fit: contain !important;
            vertical-align: middle !important;
            flex-shrink: 0 !important;
            margin: 0 auto 8px !important;
            display: block !important;
        }

        .flight-table .flight-row {
            padding: 12px !important;
            margin-bottom: 10px !important;
        }

        .flight-table .flight-logo {
            width: 55px !important;
            height: 55px !important;
            min-width: 55px !important;
            min-height: 55px !important;
            max-width: 55px !important;
            max-height: 55px !important;
            object-fit: contain !important;
            vertical-align: middle !important;
            flex-shrink: 0 !important;
        }

        .flight-table .flight-info {
            padding: 0 15px !important;
        }

        .flight-table .flight-code {
            font-size: 1rem !important;
            padding: 0 5px !important;
        }

        .flight-table .flight-airline {
            font-size: 0.8rem !important;
            padding: 0 5px !important;
        }

        .flight-table .flight-dest {
            font-size: 0.9rem !important;
            padding: 0 5px !important;
        }

        .flight-table .codeshare-info {
            font-size: 0.75rem !important;
            padding: 0 5px !important;
        }

        .flight-table .belt-info {
            font-size: 0.8rem !important;
            padding: 0 5px !important;
        }

        .flight-table .status-btn {
            padding: 5px 10px !important;
            font-size: 0.75rem !important;
            min-width: 70px !important;
        }
    }

    /* Large Screens and Small Laptops - 900px and down */
    @media (max-width: 900px) {
        .flight-container {
            max-width: 95%;
            padding: 16px 4px;
            padding-bottom: 4rem !important;
        }

        .flight-table {
            margin-bottom: 3rem !important;
        }

        .flight-tabs > * {
            padding: 20px 0;
            font-size: 16px;
        }

        .flight-table th, .flight-table td {
            padding: 16px 10px;
            font-size: 15px;
        }

        .flight-table th {
            padding: 18px 10px;
        }

        .flight-info {
            font-size: 16px;
            gap: 6px;
        }

        .flight-separator {
            font-size: 14px;
            color: #374151;
            font-weight: 600;
        }

        /* Tablet notice styling */
        .flight-notice-container {
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            max-width: 95%;
        }

        .flight-notice-simple {
            font-size: 12px;
            text-align: center;
            margin-right: 0;
            margin-top: 0.5rem;
            order: 2;
        }

        .last-updated-container {
            margin: 0;
            order: 1;
        }

        /* Reduce tablet spacing - Perfect balance */
        .flight-tabs-container {
            margin-bottom: 0.75rem !important;
            padding-top: 1rem !important;
        }

        .title.mt-3 {
            margin-top: 0.75rem !important;
            margin-bottom: 0.75rem !important;
        }

        form[search-form].mt-5 {
            margin-top: 0.75rem !important;
            margin-bottom: 0.75rem !important;
        }

        /* Ensure perfect spacing balance */
        .flight-tabs-container + .title.mt-3 {
            margin-top: 0.75rem !important;
        }

        .title.mt-3 + form[search-form] {
            margin-top: 0.75rem !important;
        }

        /* Reduce spacing between form elements for tablet */
        .row.g-2 {
            gap: 0.5rem !important;
        }

        .datetime-input-group,
        .search-input-group {
            margin-bottom: 0.5rem !important;
        }

        .search-btn {
            margin-top: 0.5rem !important;
        }

        /* Ensure equal spacing between all form elements */
        .datetime-input-group {
            margin-bottom: 0.5rem !important;
        }

        .search-input-group {
            margin-bottom: 0.5rem !important;
        }

        .search-btn {
            margin-top: 0.5rem !important;
        }

        /* Tablet hover effect */
        .flight-table .flight-row:hover {
            background-color: #f8f9fa;
        }

            .flight-table .flight-row:hover::after {
                content: '';
                position: absolute;
                bottom: -1px;
                left: 0;
                right: 0;
                height: 1px;
                background: #082971;
                z-index: 1;
            }
    }

    /* Tablets and Medium Screens - 768px and down */
    @media (max-width: 768px) {
        .flight-row {
            border-bottom: none;
        }

        /* Reduce mobile spacing for 768px - Perfect balance */
        .flight-tabs-container {
            margin-bottom: 0.75rem !important;
            padding-top: 1.25rem !important;
        }

        .title.mt-3 {
            margin-top: 0.75rem !important;
            margin-bottom: 0.75rem !important;
        }

        form[search-form].mt-5 {
            margin-top: 0.75rem !important;
            margin-bottom: 0.75rem !important;
        }

        /* Ensure perfect spacing balance */
        .flight-tabs-container + .title.mt-3 {
            margin-top: 0.75rem !important;
        }

        .title.mt-3 + form[search-form] {
            margin-top: 0.75rem !important;
        }

        /* Reduce spacing between form elements */
        .row.g-2 {
            gap: 0.375rem !important;
        }

        .datetime-input-group,
        .search-input-group {
            margin-bottom: 0.375rem !important;
        }

        .search-btn {
            margin-top: 0.375rem !important;
        }

        /* Ensure equal spacing between all form elements */
        .datetime-input-group {
            margin-bottom: 0.375rem !important;
        }

        .search-input-group {
            margin-bottom: 0.375rem !important;
        }

        .search-btn {
            margin-top: 0.375rem !important;
        }

        /* Mobile hover effect */
        .flight-table .flight-row:hover {
            background-color: #f0f4ff;
        }

            .flight-table .flight-row:hover::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 1px;
                background: #082971;
                z-index: 1;
            }

        .flight-details-grid {
            flex-direction: column;
            gap: 16px;
            margin: 20px 0;
        }

        .detail-item {
            margin-bottom: 12px;
            padding: 0;
            text-align: center;
            align-items: center;
        }

            .detail-item:first-child,
            .detail-item:last-child {
                text-align: center;
                align-items: center;
            }

        .detail-label {
            font-size: 12px;
        }

        .detail-value {
            font-size: 14px;
        }

        .detail-item .belt-number {
            font-size: 24px;
        }

        .detail-item .fa-map-location-dot {
            font-size: 16px;
        }

        .flight-header {
            flex-direction: column;
        }

        /* Pagination adjustments for tablets */
        .pagination .page-link {
            padding: 8px 12px;
            font-size: 14px;
        }

        .lt-pagination {
            margin: 2.5rem 0 3rem 0 !important;
            padding: 1.5rem 0;
        }
    }

    @media (max-width: 768px) {
        .flight-detail-text-small {
            font-size: 0.8rem;
            color: #6b7280;
            line-height: 1.2;
            height: 1.8rem; /* Exactly 2 lines */
            /*    overflow: hidden;*/
            word-wrap: break-word;
            display: block;
        }

        /* Tablet pagination spacing */
        .lt-pagination {
            margin: 2rem 0 2.5rem 0 !important;
            padding: 1rem 0;
        }

        .pagination .page-link {
            padding: 8px 12px;
            font-size: 13px;
        }
    }
    /* Mobile Phones - 576px and down */
    @media (max-width: 539px) {
        .flight-container {
            margin-top: 25px;
            margin-bottom: 35px;
            margin-left:10px;
            margin-right:5px;
            padding: 8px 16px;
            padding-bottom: 3rem !important;
        }

        /* Mobile title spacing */
        .nameFlightRoute {
            margin-top: 150px;
            font-size: 1.2rem;
            margin-bottom: 1.5rem;
        }

        .flight-table {
            margin-bottom: 2rem !important;
        }

        /* Reduce mobile spacing - Perfect balance */
        .flight-tabs-container {
            margin-bottom: 0.5rem !important;
            padding-top: 0.5rem !important;
        }

        .title.mt-3 {
            margin-top: 0.5rem !important;
            margin-bottom: 0.5rem !important;
        }

        form[search-form].mt-5 {
            margin-top: 0.5rem !important;
            margin-bottom: 0.5rem !important;
        }

        /* Ensure perfect spacing balance */
        .flight-tabs-container + .title.mt-3 {
            margin-top: 0.5rem !important;
        }

        .title.mt-3 + form[search-form] {
            margin-top: 0.5rem !important;
        }

        .flight-notice-container {
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            margin: 0.5rem 0 1rem 0 !important;
            max-width: 95%;
        }

        .flight-notice-simple {
            text-align: center;
            margin-right: 0;
            margin-top: 0.5rem;
            order: 2;
        }

        .last-updated-container {
            margin: 0;
            order: 1;
        }

        /* Mobile refresh button adjustments */
        .last-updated-container {
            gap: 5px;
        }

        .last-updated-text {
            font-size: 10px;
        }

        .refresh-btn {
            width: 18px;
            height: 18px;
        }

            .refresh-btn i {
                font-size: 9px;
            }

        /* Reduce spacing between form elements for small mobile */
        .row.g-2 {
            gap: 0.25rem !important;
        }

        .datetime-input-group,
        .search-input-group {
            margin-bottom: 0.25rem !important;
        }

        .search-btn {
            margin-top: 0.25rem !important;
        }

        /* Ensure equal spacing between all form elements for small mobile */
        .datetime-input-group {
            margin-bottom: 0.25rem !important;
        }

        .search-input-group {
            margin-bottom: 0.25rem !important;
        }

        .search-btn {
            margin-top: 0.25rem !important;
        }

        .detail-container {
            padding: 8px;
            max-width: 100vw;
            width: 100%;
            margin: 0;
            overflow: hidden;
        }

        .arrow-col {
            display: none !important;
        }

        .row.row-cols-6 {
            --bs-columns: 4;
            margin: 0;
            width: 100%;
        }

            .row.row-cols-6 > .col:not(.arrow-col) {
                flex: 0 0 25% !important;
                max-width: 25% !important;
                padding: 0 2px;
            }

        /* Tab navigation for mobile */
        .flight-tabs {
            flex-direction: column;
        }

            .flight-tabs > * {
                border-left: none !important;
                border-top: none;
                padding: 14px 0;
                font-size: 15px;
            }

        /* Hide flight tabs on mobile */
        .flight-tabs-container {
            display: none;
        }

        /* Table adjustments for mobile */
        .flight-table, .flight-table thead, .flight-table tbody, .flight-table th, .flight-table td, .flight-table tr {
            display: block;
            width: 100%;
        }

            .flight-table thead {
                display: none;
            }

            .flight-table tr {
                margin-bottom: 18px;
                box-shadow: 0 2px 8px rgba(0,0,0,0.04);
                background: #f5f6fb;
                border-radius: 10px;
                padding: 8px 0;
            }

            .flight-table td {
                padding: 8px 6px;
                font-size: 14px;
                border-bottom: none;
                text-align: left;
                position: relative;
            }

        .flight-info {
            font-size: 14px;
            gap: 4px;
            flex-wrap: wrap;
        }

        .flight-separator {
            font-size: 12px;
            color: #374151;
            font-weight: 600;
        }

        /* Mobile notice styling */
        .flight-notice-container {
            flex-direction: column;
            align-items: center;
            gap: 0.5rem;
            margin: 0.6rem 0 1rem 0;
            max-width: 95%;
        }

        .flight-notice-simple {
            font-size: 11px;
            padding: 0;
            text-align: center;
            margin-right: 0;
            margin-top: 0.5rem;
            order: 2;
        }

        .last-updated-container {
            margin: 0;
            order: 1;
        }

        /* Small mobile hover effect */
        .flight-table .flight-row:hover {
            background-color: #f0f4ff;
        }

            .flight-table .flight-row:hover::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                right: 0;
                height: 1px;
                background: #082971;
                z-index: 1;
            }

        /* Mobile pagination spacing */
        .lt-pagination {
            margin: 1.5rem 0 2rem 0 !important;
            padding: 0.75rem 0;
            min-height: 60px;
            display: block !important;
        }

        .pagination .page-link {
            padding: 6px 8px;
            font-size: 11px;
            margin: 0 1px;
        }

        /* Force spacing after table */
        .flight-table + * {
            margin-top: 2rem !important;
        }

        .flight-table td:before {
            content: "";
            display: none;
        }

        .flight-detail-row td {
            background-color: #f5f6fb;
            border-radius: 10px;
        }

        .flight-details-grid {
            flex-direction: column;
            gap: 12px;
        }

        .flight-route {
            gap: 20px;
        }

        .route-point {
            padding: 0;
            text-align: center;
        }

            .route-point:first-child,
            .route-point:last-child {
                text-align: center;
            }

        .flight-detail-text-large {
            font-size: 1rem;
        }

        .flight-detail-text-small {
            font-size: 0.6rem;
            line-height: 1.2;
            height: 1.8rem;
        }

        .btn-blue, .btn-red {
            font-size: 0.7rem;
            font-weight: 400;
        }

        .route-line {
            width: 100%;
            height: 40px;
        }

        .dotted-line {
            display: none;
        }

        .airline-info .flight-logo {
            width: 60px;
            height: 60px;
            min-height: 60px;
            min-width: 60px;
            object-fit: cover;
        }
    }
