/* Flight Sync Styles */
/* #flight-sync-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
} */

/* Filter Styles */
.flight-filters {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.flight-filters .filter-group input,
.flight-filters .filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
}

.filter-group button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.flight-actions{
    display: flex;
    gap: 10px;

    a{
        &:hover{
            transform: translateY(-2px);
            transition: all 0.3s ease;
            color: #fff;
        }

        text-align: center;
        display: block;
        flex: 1;
        text-transform: uppercase;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        transition: all 0.3s ease;
        background-color: #0F3449;
        color: white;
    }
}


#filter-flights-btn {
    background-color: #0F3449;
    color: white;
}

#filter-flights-btn:hover {
    background-color: #0F3449;
}

#reset-filters-btn {
    background-color: #6c757d;
    color: white;
}

#reset-filters-btn:hover {
    background-color: #545b62;
}

/* Loading indicator */
#flight-loading {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
}

/* Flight Cards Grid */
.flight-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Individual Flight Card */
.flight-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.flight-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Flight Header */
.flight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.flight-number {
    font-size: 18px;
    color: #0F3449;
}

/* Flight Route */
.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.departure,
.arrival {
    text-align: center;
    flex: 1;
}

.airport-code {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.airport-name {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.2;
    min-height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.time {
    font-size: 17px;
    font-weight: 600;
    color: #0F3449;
}

.date {
    font-size: 15px;
    color: #6c757d;
    font-weight: 600;
}

.route-arrow {
    margin: 0 15px;
    color: #0F3449;
    font-size: 20px;
    font-weight: bold;
}

/* Flight Details */
.flight-details {

    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;

    img{
        width: 80%;
        height: 130px !important;
        object-fit: contain;
    }
}

.aircraft-registration,
.aircraft-type {
    color: #6c757d;
    margin-bottom: 8px;
}

.aircraft-registration strong,
.aircraft-type strong {
    color: #495057;
}

.flight-times {
    margin-top: 10px;
    color: #6c757d;
    padding-top: 8px;
    border-top: 1px solid #e9ecef;
}

.flight-times strong {
    color: #495057;
}

.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-open {
    background-color: #d4edda;
    color: #155724;
}

.status-scheduled {
    background-color: #d4edda;
    color: #155724;
}

.status-delayed {
    background-color: #fff3cd;
    color: #856404;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-boarding {
    background-color: #cce7ff;
    color: #004085;
}

/* Flight Price */
.flight-price {
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
}

/* No flights message */
.no-flights {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .flight-cards-grid {
        grid-template-columns: 1fr;
    }
    
    /* .flight-route {
        flex-direction: column;
        gap: 10px;
    } */
    
    /* .route-arrow {
        transform: rotate(90deg);
        margin: 5px 0;
    } */
    
    .departure,
    .arrival {
        width: 100%;
    }
}

@media (max-width: 480px) {
    #flight-sync-container {
        padding: 10px;
    }
    
    .flight-card {
        padding: 15px;
    }
    
    .airport-code {
        font-size: 20px;
    }
}

/* Pagination Styles */
.flight-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.pagination-info {
    color: #495057;
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    gap: 5px;

    .pagination-btn {
        padding: 8px 12px;
        border: 1px solid #ced4da;
        background: #fff;
        color: #495057;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        transition: all 0.3s ease;
        min-width: 40px;
        text-align: center;
    }

    .pagination-btn:hover {
        background: #1833478b;
        border-color: #183347;
    }

    .pagination-btn.active {
        background: #183347;
        color: white;
        border-color: #183347;
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Chevron buttons for previous/next */
    .pagination-prev,
    .pagination-next {
        padding: 8px 12px;
        min-width: 40px;
    }

    .pagination-chevron {
        font-size: 20px;
        line-height: 1;
        font-weight: bold;
        display: inline-block;
    }

    .pagination-prev:hover,
    .pagination-next:hover {
        background: #1833478b;
        color: white;
        border-color: #183347;
    }

    /* Flight count info */
    .flight-info {
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .flight-count {
        color: #495057;
        font-weight: 600;
        font-size: 16px;
    }
}



/* Mobile pagination */
@media (max-width: 768px) {
    .flight-sync-countdown {
        width: 100%;
    }
    .flight-pagination {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 35px;
    }
}