:root {
    --primary-blue: #0056b3;
    --secondary-blue: #007bff;
    --light-blue: #e7f1ff;
    --dark-blue: #003366;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --red: #e61e43;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

.text-primary-blue {
    color: var(--primary-blue);
}

.section-title {
    font-weight: 700;
    color: var(--dark-blue);
}

ul {
    padding: 0;
    list-style: none;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Flight Search Results */
.flight-results-container {
    margin-top: 2rem;
}

.flight-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: box-shadow 0.3s;
    display: flex;
    flex-wrap: wrap;
}

.flight-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.airline-name {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.25rem;
}

.flight-number {
    color: var(--text-light);
    font-size: 0.875rem;
}

.time {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.airport-code {
    font-weight: 700;
    color: var(--primary-blue);
}

.city {
    color: var(--text-light);
    font-size: 0.875rem;
}

.duration {
    color: var(--text-light);
    font-size: 0.875rem;
}

.flight-path {
    color: var(--primary-blue);
    margin: 0.5rem 0;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.btn-book {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
}

.airport-select {
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fare-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flight-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .flight-card {
        padding: 15px;
    }

    .time {
        font-size: 1.1rem;
    }

    .price {
        font-size: 1.3rem;
    }

    /* Navigation */
    .navbar {
        padding: 10px 20px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-nav {
        gap: 15px;
    }

    .navbar-nav a {
        font-size: 14px;
    }

    /* Forms */
    .search-form {
        flex-direction: column;
    }

    .search-form>div {
        width: 100%;
        margin-bottom: 10px;
    }

    /* Cards */
    .booking-card {
        padding: 20px;
    }

    .booking-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Tables */
    .data-table {
        font-size: 14px;
    }

    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }

    /* Flight Cards */
    .flight-card {
        flex-direction: column;
        padding: 12px;
    }

    .flight-card>div {
        width: 100%;
        margin-bottom: 10px;
    }

    .time {
        font-size: 1rem;
    }

    .price {
        font-size: 1.2rem;
        text-align: center;
    }

    .btn-book {
        width: 100%;
        text-align: center;
    }

    /* Navigation */
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .navbar-brand {
        margin-bottom: 10px;
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }

    .navbar-nav li {
        margin: 5px 0;
    }

    /* Filters */
    .bookings-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
        margin-bottom: 10px;
    }

    .filter-btn {
        width: 100%;
        text-align: center;
    }

    /* Booking Cards */
    .booking-card {
        padding: 15px;
    }

    .flight-route {
        flex-direction: column;
        gap: 15px;
    }

    .booking-meta {
        flex-direction: column;
        gap: 10px;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Dashboard */
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        margin-bottom: 20px;
    }

    .dashboard-main {
        width: 100%;
    }

    /* Error Pages */
    .error-content {
        padding: 40px 20px;
    }

    .error-content h1 {
        font-size: 80px;
    }

    .error-actions {
        flex-direction: column;
    }

    .error-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Charts */
    .charts-row {
        flex-direction: column;
    }

    .chart-card {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Data Cards */
    .data-row {
        flex-direction: column;
    }

    .data-card {
        width: 100%;
        margin-bottom: 20px;
    }

    /* Forms */
    .form-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    /* Tables */
    .table-responsive {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }

    /* Modals */
    .modal-content {
        width: 95%;
        margin: 10px auto;
    }

    /* Tabs */
    .tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        font-size: 14px;
        padding: 12px 10px;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    /* Flight Cards */
    .flight-card {
        padding: 10px;
    }

    .time {
        font-size: 0.9rem;
    }

    .price {
        font-size: 1.1rem;
    }

    .airport-code {
        font-size: 1.2rem;
    }

    .city {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .btn-sm {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* Forms */
    .form-control {
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Booking Cards */
    .booking-card {
        padding: 12px;
    }

    .booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .booking-info {
        flex-direction: column;
        gap: 5px;
    }

    /* Error Pages */
    .error-content {
        padding: 30px 15px;
    }

    .error-content h1 {
        font-size: 60px;
    }

    .error-content h2 {
        font-size: 22px;
    }

    /* Tabs */
    .tab-btn {
        flex: 1;
        min-width: 100px;
        font-size: 12px;
        padding: 10px 5px;
    }

    /* Quick Actions */
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .action-card {
        padding: 15px 10px;
    }

    /* Invoice */
    .invoice-top {
        flex-direction: column;
        gap: 20px;
    }

    .company-info {
        text-align: center;
    }

    .invoice-info {
        text-align: center;
    }

    /* E-Ticket */
    .flight-details {
        flex-direction: column;
    }

    .route-info {
        flex-direction: column;
        gap: 20px;
    }

    .date-info {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Fare Options */
    .fare-grid {
        grid-template-columns: 1fr;
    }

    /* Flight Details */
    .route-details {
        flex-direction: column;
        gap: 30px;
    }

    .flight-visual {
        padding: 20px 0;
    }
}

/* Mobile-specific fixes */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .flight-path {
        font-size: 0.8rem;
    }

    .duration {
        font-size: 0.75rem;
    }

    .booking-meta .meta-item {
        font-size: 12px;
    }

    /* Quick Actions */
    .actions-grid {
        grid-template-columns: 1fr;
    }

    /* Tables */
    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 5px;
    }

    /* Forms */
    .form-control {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    /* Cards */
    .stat-card {
        padding: 15px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stat-info h3 {
        font-size: 20px;
    }

    /* Modal */
    .modal-content {
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    /* Date Info */
    .date-info {
        grid-template-columns: 1fr;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .navbar {
        padding: 5px 10px;
    }

    .navbar-brand {
        font-size: 16px;
    }

    .navbar-nav a {
        padding: 5px 10px;
        font-size: 12px;
    }

    .flight-card {
        padding: 8px;
    }

    .time {
        font-size: 0.9rem;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fare-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flight-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Print Styles */
@media print {

    .navbar,
    .sidebar,
    .filters-bar,
    .action-buttons,
    .btn,
    .tabs {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .card,
    .flight-card,
    .booking-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        background: white;
        color: black;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .airline-logo,
    .stat-icon,
    .info-icon {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --primary-blue: #4a90e2;
        --secondary-blue: #357abd;
        --light-blue: #1a1a2e;
        --dark-blue: #16213e;
        --text-dark: #e0e0e0;
        --text-light: #a0a0a0;
        --bg-light: #1a1a2e;
        --white: #16213e;
    }

    body {
        background-color: #0f0f1a;
    }

    .flight-card {
        background-color: #1a1a2e;
        border-color: #2a2a4e;
    }

    .card {
        background-color: #1a1a2e;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.error-help ul {
    font-size: 14px;
}

/* Promotional Banner Section */
.promo-banner-section {
    padding: 60px 0;
}

.promo-banner {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 86, 179, 0.2);
    overflow: hidden;
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 50px;
}

.promo-text {
    flex: 0 0 40%;
    color: var(--white);
}

.promo-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.promo-price {
    font-size: 2rem;
    font-weight: 600;
    color: #ffd700;
    margin-bottom: 15px;
}

.promo-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-promo-cta:hover {
    background-color: var(--light-blue);
    color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.promo-image {
    flex: 0 0 60%;
    position: relative;
}

.promo-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.promo-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    backdrop-filter: blur(10px);
}

/* Promo Carousel Styles */
.promo-carousel {
    position: relative;
    width: 100%;
}

.carousel-slides-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slides-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.promo-slide {
    width: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    z-index: 1;
}

.promo-slide.active {
    opacity: 1;
    position: relative;
    visibility: visible;
    z-index: 2;
}

/* Carousel Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .promo-banner-section {
        padding: 40px 0;
    }

    .promo-content {
        gap: 30px;
        padding: 35px;
    }

    .promo-text {
        flex: 0 0 45%;
    }

    .promo-text h2 {
        font-size: 2rem;
    }

    .promo-price {
        font-size: 1.75rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .promo-description {
        font-size: 1rem;
    }

    .btn-promo-cta {
        padding: 12px 28px;
        font-size: 1rem;
    }

    .promo-image {
        flex: 0 0 55%;
    }

    .promo-img {
        height: 300px;
    }

    .promo-decoration {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        bottom: -15px;
        right: -15px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .promo-banner-section {
        padding: 30px 0;
    }

    .promo-banner {
        border-radius: 15px;
    }

    .promo-content {
        flex-direction: column;
        gap: 25px;
        padding: 30px;
    }

    .promo-text {
        flex: 1;
        text-align: center;
    }

    .promo-text h2 {
        font-size: 1.75rem;
    }

    .promo-price {
        font-size: 1.5rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .carousel-prev {
        left: 8px;
    }

    .carousel-next {
        right: 8px;
    }

    .carousel-dots {
        bottom: 15px;
        gap: 8px;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .promo-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .btn-promo-cta {
        padding: 12px 25px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }

    .promo-image {
        flex: 1;
        width: 100%;
    }

    .promo-img {
        height: 250px;
    }

    .promo-decoration {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        bottom: -10px;
        right: -10px;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .promo-content {
        padding: 25px;
    }

    .promo-text h2 {
        font-size: 1.5rem;
    }

    .promo-price {
        font-size: 1.25rem;
    }

    .promo-description {
        font-size: 0.9rem;
    }

    .promo-img {
        height: 200px;
    }
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-light);
}

.faq-header {
    margin-bottom: 40px;
}

.faq-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--light-blue);
}

.faq-question-text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    padding-right: 15px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-blue);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background-color: var(--white);
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 25px 25px;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    padding-top: 10px;
}

/* Tablet Responsive */
@media (max-width: 992px) {
    .faq-container {
        max-width: 100%;
    }

    .faq-question {
        padding: 18px 20px;
    }

    .faq-question-text {
        font-size: 1rem;
    }

    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }

    .faq-header {
        margin-bottom: 30px;
    }

    .faq-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }

    .faq-item {
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .faq-question {
        padding: 15px 18px;
    }

    .faq-question-text {
        font-size: 0.95rem;
    }

    .faq-icon {
        width: 26px;
        height: 26px;
        font-size: 1.2rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 18px 18px;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .faq-question {
        padding: 12px 15px;
    }

    .faq-question-text {
        font-size: 0.9rem;
    }

    .faq-icon {
        width: 24px;
        height: 24px;
        font-size: 1.1rem;
    }
}

/* Tablet-specific fixes */
@media (min-width: 769px) and (max-width: 1024px) {
    .flight-card {
        padding: 18px;
    }

    .dashboard-sidebar {
        width: 250px;
    }

    .dashboard-main {
        flex: 1;
    }
}

/* Touch-friendly targets for mobile */
@media (hover: none) and (pointer: coarse) {

    .btn,
    .filter-btn,
    .tab-btn {
        min-height: 44px;
        min-width: 44px;
    }

    input,
    select,
    textarea {
        min-height: 44px;
    }
}