﻿/* Base Container Styles */
.flight-container {
    max-width: 1336px;
    margin: 150px auto;
    padding: 24px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 1.05rem;
}

    .flight-container img {
        max-width: 80%;
        height: auto;
        display: block;
        margin: 18px;
        border-radius: 8px;
    }

/* Tab Navigation */
.flight-tabs-container {
    width: 100%;
    margin: 60px 0 32px 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 Table Styles */
.flight-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
}

    .flight-table th, .flight-table td {
        padding: 18px 12px;
        text-align: left;
    }

    .flight-table th {
        background: linear-gradient(90deg, #f0f4fa 0%, #e9f0fb 100%);
        color: #2d3a4a;
        font-weight: 700;
        font-size: 18px;
        border-bottom: 2px solid #e3e8f0;
    }

    .flight-table tr {
        transition: background 0.2s;
    }

    .flight-table tbody tr:nth-child(even) {
        background: #f8fafc;
    }

    .flight-table tbody tr:hover {
        background: #e6f0fa;
    }

.flight-row {
    border-bottom: 1px solid #e3e8f0;
}

/* 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;
}

/* Flight Info Styles */
.flight-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
    background: #f5f7fa;
    border: 1px solid #e3e8f0;
    margin-right: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.flight-info {
    font-size: 18px;
    color: #2d3a4a;
    font-weight: 500;
}

.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;
}

/* Status Button 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 Detail Row Styles */
.flight-detail-row td {
    padding: 0 !important;
    max-width: 900px;
    margin: 0 auto;
}

.detail-container {
    display: flex;
    width: 100%;
    position: relative;
    margin: 0;
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 10px;
}

.detail-left {
    padding: 20px;
    border-radius: 8px 0 0 8px;
    flex: 3;
}

.detail-right {
    padding: 20px;
    border-radius: 0 8px 8px 0;
    flex: 1;
}

/* Route Header and Navigation */
.route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .route-header a {
        text-decoration: none;
    }

    .route-header h5 {
        margin: 0;
        font-weight: bold;
    }

.route-header-title {
    font-size: 1.5rem;
    color: #000;
    font-weight: 600;
}

/* Button Styles */
.see-route-btn, .see-details-btn {
    background-color: #0b13a5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    margin-right: 40px;
}

    .see-route-btn:hover, .see-details-btn:hover {
        background-color: #1600b3;
    }

/* Route Information */
.route-info {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-top: 15px;
}

.route-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.route-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

.route-title {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
}

.route-divider {
    font-size: 1.8rem;
    font-weight: bold;
    color: #000;
    margin: 0 10px;
}

/* Action Buttons */
.detail-actions {
    position: absolute;
    right: 15px;
    top: 15px;
    display: flex;
    flex-direction: column;
}

.action-btn {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
    color: #4b5563;
    font-size: 0.8rem;
    cursor: pointer;
}

    .action-btn i {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }

.close-btn {
    border: none;
    background-color: transparent;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

.close-btn i {
    font-size: 1.8rem;
}   

.email-btn {
    background-color: #ff5a5f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

.share-btn {
    background-color: #0b13a5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

/* Additional Info Styles */
.origin-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.date-info {
    font-size: 1rem;
}

.flight-time {
    color: #2563eb;
    font-weight: 600;
}

.parallax-info {
    color: #6b7280;
    font-size: 0.85rem;
    margin-top: 5px;
}

    .parallax-info span {
        opacity: 0.7;
    }

.weather-container {
    display: flex;
    align-items: center;
    margin-right: 50px;
}

.weather-icon {
    font-size: 2.5rem;
    color: #3b82f6;
    margin-right: 10px;
}

.temp-info {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Responsive styles - Large Screens */
@media (max-width: 900px) {
    .flight-container {
        max-width: 98%;
        padding: 16px 4px;
    }

    .flight-tabs > * {
        padding: 20px 0;
        font-size: 16px;
    }

    .flight-table th, .flight-table td {
        padding: 10px 6px;
        font-size: 15px;
    }

    .flight-logo {
        width: 36px;
        height: 36px;
        margin-right: 8px;
    }

    .search-form {
        max-width: 70%;
    }

        .search-form .input-group,
        .search-form .input-group-text,
        .search-form .form-control,
        .search-form .btn {
            height: 45px; /* Standardize height */
        }

        .search-form .input-group-text {
            padding-top: 0;
            padding-bottom: 0;
            display: flex;
            align-items: center;
        }

        /* Ensure date input has consistent height */
        .search-form input[type="date"] {
            min-height: 45px !important;
            line-height: 1.5;
        }
}

/* Responsive styles - Tablet */
@media (max-width: 768px) {
    .flight-row {
        border-bottom: none;
    }

    .detail-container {
        flex-direction: column;
        padding: 15px;
        position: relative;
    }

    .detail-left {
        padding: 5px;
        border-radius: 8px;
        width: 100%;
    }

    .route-info {
        margin: 15px 0;
        justify-content: space-between;
    }

    .route-value {
        font-size: 1.2rem;
    }

    .route-divider {
        font-size: 1.5rem;
    }

    .route-header-title {
        font-size: 1rem;
        font-weight: 400;
    }

    /* Single consolidated definition */
    .detail-actions {
        position: static;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 0px;
        padding-top: 0px;
        padding-bottom: 15px;
    }

    .action-btn {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        margin: 0 10px;
        font-size: 1rem;
    }

    .action-btn i {
        margin-right: 5px;
        margin-bottom: 0;
    }

    .email-btn, .share-btn {
        flex: 1;
        margin: 0 5px;
        text-align: center;
        white-space: nowrap;
        max-width: 100px;
    }

    .action-btn, .email-btn, .share-btn {
        margin-bottom: 0px;
    }

    .close-btn {
        position: absolute;
        top: 10px;
        right: 10px;
        margin: 0;
    }

    .close-btn svg {
        font-size: 1.2rem;
    }
}

/* Responsive styles - Mobile */
@media (max-width: 576px) {

    .detail-container {
        flex-direction: column;
        padding: 5px;
    }

    .detail-right {
        padding: 5px;
        width: 100%;
    }

    .flight-container {
        margin: 40px auto;
        padding: 8px 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: #fff;
            border-radius: 10px;
            padding: 8px 0;
        }

        .flight-table td {
            padding: 8px 6px;
            font-size: 14px;
            border-bottom: none;
            text-align: right;
            position: relative;
        }

            .flight-table td:before {
                content: attr(data-label);
                float: left;
                color: #64748b;
                font-weight: 600;
                font-size: 13px;
            }

    /* Route info adjustments for mobile */
    .route-info {
        flex-wrap: nowrap;
    }

    .route-section {
        flex: 1;
    }

    .route-value {
        font-size: 1.1rem;
    }

    .route-divider {
        font-size: 1.3rem;
        margin: 0 5px;
    }

    .search-form {
        max-width: 100%;
    }

    .route-header-title {
        font-size: 0.8rem;
        font-weight: 400;
    }

    .see-route-btn {
        margin-right: 8px;
    }
}


/* Pagination Styles */
.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;
    }

/* Responsive pagination styles */
@media (max-width: 768px) {
    .pagination .page-link {
        padding: 8px 12px;
        font-size: 14px;
    }
}