/* ============================================
   SEARCHTRIP Travel Services — Premium Stylesheet
   Airline-grade UI with modern design
   ============================================ */

:root {
    --primary: #0072B8;
    --primary-dark: #005a93;
    --primary-light: #00A9E0;
    --navy: #1B3A5C;
    --navy-deep: #0f2439;
    --accent: #F5A623;
    --accent-hover: #e09510;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #06b6d4;
    --light: #f8f9fa;
    --lighter: #f0f4f8;
    --border: #e2e8f0;
    --text: #1e293b;
    --text-muted: #64748b;
    --sidebar-width: 260px;
    --navbar-height: 64px;
    --topbar-height: 36px;
    --glass: rgba(255,255,255,0.85);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--lighter);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,114,184,0.2); }
    50% { box-shadow: 0 0 0 8px rgba(0,114,184,0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes planeMove {
    0% { transform: translateX(-100px) translateY(10px) rotate(-5deg); opacity: 0; }
    10% { opacity: 0.08; }
    90% { opacity: 0.08; }
    100% { transform: translateX(calc(100% + 100px)) translateY(-10px) rotate(-5deg); opacity: 0; }
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ---- TOP BAR ---- */
.topbar {
    background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 100%);
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 0;
    letter-spacing: 0.2px;
}
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: #fff; }
.topbar i { margin-right: 4px; }

/* ---- PUBLIC NAVBAR ---- */
.public-navbar {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    border-bottom: 1px solid rgba(255,255,255,0.5);
}
.public-navbar .navbar-brand img { height: 45px; }
.public-navbar .nav-link {
    color: var(--navy);
    font-weight: 500;
    padding: 1rem 1.1rem !important;
    transition: color 0.2s;
    position: relative;
}
.public-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.3s;
}
.public-navbar .nav-link:hover::after,
.public-navbar .nav-link.active::after { width: 60%; }
.public-navbar .nav-link:hover,
.public-navbar .nav-link.active { color: var(--primary); }

/* ---- BUTTONS ---- */
.btn {
    transition: all 0.25s ease;
    font-weight: 500;
    border-radius: var(--radius-sm);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0,114,184,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #004674 100%);
    box-shadow: 0 4px 15px rgba(0,114,184,0.35);
    transform: translateY(-1px);
}
.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, #c98000 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(245,166,35,0.4);
    transform: translateY(-1px);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,114,184,0.25);
}

/* ---- LOGIN PAGE ---- */
.login-page { min-height: 100vh; }
.login-row { min-height: 100vh; }
.login-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}
.login-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    position: absolute;
    inset: 0;
}
.login-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    z-index: 1;
}
.login-form-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: #fff;
    min-height: 100vh;
}
.login-form-section .logo-section { text-align: center; margin-bottom: 2rem; }
.login-form-section .logo-section img { height: 60px; margin-bottom: 0.5rem; }
.login-form-section h2 { color: var(--navy); font-weight: 700; }

.login-form .form-control {
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    border: 1.5px solid var(--border);
    font-size: 0.95rem;
}
.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,184,0.15);
}
.login-form .input-icon { position: relative; }
.login-form .input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}
.login-form .btn-login {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
    width: 100%;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(245,166,35,0.3);
}
.login-form .btn-login:hover {
    background: linear-gradient(135deg, var(--accent-hover), #c98000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,166,35,0.4);
}

.airlines-carousel {
    background: var(--light);
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
}
.airlines-carousel h6 { color: var(--text-muted); font-size: 0.85rem; }

/* ---- AUTH LAYOUT (SIDEBAR + CONTENT) ---- */
.auth-wrapper {
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ---- SIDEBAR ---- */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 50%, #0a1929 100%);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(0,114,184,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0,169,224,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-header {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}
.sidebar-header img {
    height: 38px;
    width: 38px;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.sidebar-header span {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 1px;
}

.sidebar-section-label {
    padding: 0.9rem 1.2rem 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
}

.sidebar-menu {
    padding: 0.25rem 0;
    list-style: none;
    margin: 0;
    position: relative;
}
.sidebar-menu li { position: relative; }
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.2rem;
    color: rgba(255,255,255,0.65);
    font-size: 0.86rem;
    transition: all 0.25s;
    border-left: 3px solid transparent;
    position: relative;
    margin: 1px 0;
}
.sidebar-menu li a:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding-left: 1.4rem;
}
.sidebar-menu li a.active {
    background: linear-gradient(90deg, rgba(0,114,184,0.25) 0%, rgba(0,114,184,0.05) 100%);
    color: #fff;
    border-left-color: var(--accent);
    font-weight: 600;
}
.sidebar-menu li a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(245,166,35,0.5);
}
.sidebar-menu li a i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    transition: transform 0.2s;
}
.sidebar-menu li a:hover i { transform: scale(1.15); }

.sidebar-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin: 0.4rem 1rem;
}

/* ---- TOP NAVBAR (AUTHENTICATED) ---- */
.auth-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: calc(100vw - var(--sidebar-width));
    width: calc(100% - var(--sidebar-width));
}
.auth-navbar {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: var(--navbar-height);
    box-shadow: 0 1px 10px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1060;
    gap: 0.75rem;
    overflow: visible;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.auth-navbar .search-box {
    flex: 1;
    max-width: 450px;
    position: relative;
}
.auth-navbar .search-box input {
    border-radius: 24px;
    padding: 0.55rem 1rem 0.55rem 2.5rem;
    border: 1.5px solid var(--border);
    width: 100%;
    font-size: 0.86rem;
    background: var(--lighter);
    transition: all 0.3s;
}
.auth-navbar .search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,184,0.1);
    background: #fff;
    outline: none;
    width: 100%;
}
.auth-navbar .search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-navbar .nav-icons {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}
.auth-navbar .nav-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter);
    color: var(--text-muted);
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
    transition: all 0.25s;
    font-size: 1rem;
}
.auth-navbar .nav-icon-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,114,184,0.2);
}
.auth-navbar .nav-icon-btn .badge-dot {
    position: absolute;
    top: 5px; right: 5px;
    width: 8px; height: 8px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid #fff;
    animation: pulse-glow 2s infinite;
}
.auth-navbar .user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-md);
    transition: background 0.2s;
    border: 1px solid transparent;
    background: transparent;
}
.auth-navbar .user-dropdown:hover {
    background: var(--lighter);
    border-color: var(--border);
}
.auth-navbar .user-avatar {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,114,184,0.25);
}
.auth-navbar .user-info { line-height: 1.2; text-align: left; }
.auth-navbar .user-info .name { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.auth-navbar .user-info .role { font-size: 0.72rem; color: var(--text-muted); }

/* ---- MAIN CONTENT ---- */
.main-content {
    padding: 1.5rem;
    flex: 1;
    overflow-x: hidden;
    min-width: 0;
    animation: fadeIn 0.3s ease;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.page-header h4 { font-weight: 700; color: var(--navy); margin: 0; }

/* ---- WELCOME BANNER ---- */
.welcome-banner {
    border-radius: var(--radius-xl);
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    color: #fff;
    min-height: 150px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 50%, var(--primary-light) 100%);
    box-shadow: 0 8px 32px rgba(0,114,184,0.3);
    animation: fadeInUp 0.5s ease;
}
.welcome-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.welcome-banner::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
}
.welcome-banner .banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.15;
    mix-blend-mode: overlay;
}
.welcome-banner .banner-content {
    position: relative;
    z-index: 1;
}
.welcome-banner h4 {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.welcome-banner p {
    opacity: 0.85;
    margin-bottom: 0;
    font-size: 0.9rem;
}
.welcome-banner .plane-decoration {
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    animation: planeMove 20s linear infinite;
    top: 30%;
    z-index: 0;
}
.welcome-banner .quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.welcome-banner .quick-action-btn {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 24px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
}
.welcome-banner .quick-action-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* ---- STAT CARDS ---- */
.stat-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02);
    height: 100%;
    overflow: hidden;
    position: relative;
    animation: fadeInUp 0.5s ease both;
}
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.2s; }

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.stat-card:hover::before { opacity: 1; }

.stat-card .stat-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}
.stat-card:hover .stat-icon { transform: scale(1.1); }

.stat-card .stat-icon.bg-primary-soft {
    background: linear-gradient(135deg, rgba(0,114,184,0.12), rgba(0,114,184,0.06));
    color: var(--primary);
}
.stat-card .stat-icon.bg-success-soft {
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(16,185,129,0.06));
    color: var(--success);
}
.stat-card .stat-icon.bg-warning-soft {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.06));
    color: var(--warning);
}
.stat-card .stat-icon.bg-info-soft {
    background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(6,182,212,0.06));
    color: var(--info);
}
.stat-card .stat-icon.bg-danger-soft {
    background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(239,68,68,0.06));
    color: var(--danger);
}
.stat-card .stat-icon.bg-accent-soft {
    background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0.06));
    color: var(--accent);
}

/* Stat card top-border colors on hover */
.stat-card:nth-child(1)::before { background: var(--primary); }
.stat-card:nth-child(2)::before { background: var(--success); }
.stat-card:nth-child(3)::before { background: var(--warning); }
.stat-card:nth-child(4)::before { background: var(--info); }

.stat-card .stat-info { min-width: 0; }
.stat-card .stat-info h3 {
    font-weight: 700;
    margin: 0;
    color: var(--navy);
    font-size: 1.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stat-card .stat-info p {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

/* ---- CARDS ---- */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
    color: var(--navy);
    font-size: 0.92rem;
}

/* ---- TABLES ---- */
.table { font-size: 0.86rem; }
.table thead th {
    background: linear-gradient(180deg, var(--lighter) 0%, #e8edf3 100%);
    font-weight: 600;
    color: var(--navy);
    border-bottom: 2px solid var(--border);
    padding: 0.8rem 0.75rem;
    white-space: nowrap;
    font-size: 0.84rem;
}
.table tbody td { padding: 0.75rem; vertical-align: middle; }
.table-hover tbody tr { transition: background 0.2s; }
.table-hover tbody tr:hover { background: rgba(0,114,184,0.04); }

/* ---- BADGES ---- */
.badge {
    font-weight: 500;
    padding: 0.4em 0.75em;
    border-radius: 6px;
    font-size: 0.76rem;
    letter-spacing: 0.3px;
}
.badge-hold { background: linear-gradient(135deg, #fef3cd, #fce5a0); color: #856404; }
.badge-confirmed { background: linear-gradient(135deg, #d1ecf1, #b2dfea); color: #0c5460; }
.badge-ticketed { background: linear-gradient(135deg, #d4edda, #b8dcc4); color: #155724; }
.badge-cancelled { background: linear-gradient(135deg, #f8d7da, #f5c0c6); color: #721c24; }
.badge-refunded { background: linear-gradient(135deg, #e2e3e5, #d1d3d5); color: #383d41; }

/* ---- FLIGHT SEARCH ---- */
.search-section {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 0;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: relative;
}
.search-section-header {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    padding: 1.5rem 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.search-section-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -5%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.search-section-header h5 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.search-section-header p {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 0;
}
.search-section-body {
    padding: 2rem;
}
.search-section .trip-type-tabs .btn-check:checked + .btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,114,184,0.3);
}
.search-section .trip-type-tabs .btn {
    border-radius: 24px !important;
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 500;
}
.search-section .form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.35rem;
}
.search-section .form-control,
.search-section .form-select {
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    border: 1.5px solid var(--border);
    font-size: 0.9rem;
    transition: all 0.25s;
}
.search-section .form-control:focus,
.search-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,184,0.1);
}

/* Flight path visualization */
.flight-path-container {
    position: relative;
    padding: 0.5rem 0;
}
.flight-path-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border);
    z-index: 0;
}
.flight-path-line::before {
    content: '\2708';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    font-size: 1.2rem;
    color: var(--primary);
    background: #fff;
    padding: 0 8px;
}

.swap-btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0,114,184,0.3);
    font-size: 1rem;
}
.swap-btn:hover {
    transform: rotate(180deg);
    background: linear-gradient(135deg, var(--primary-dark), #004674);
    box-shadow: 0 4px 15px rgba(0,114,184,0.4);
}

.search-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    padding: 0.8rem 3.5rem;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(245,166,35,0.35);
    letter-spacing: 0.3px;
}
.search-btn:hover {
    background: linear-gradient(135deg, var(--accent-hover), #c98000);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245,166,35,0.4);
    color: #fff;
}

/* ---- PROMO BANNER ---- */
.promo-banner {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}
.promo-banner:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.promo-banner img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.promo-banner:hover img { transform: scale(1.05); }

/* ---- MARQUEE (Airlines) ---- */
.airline-marquee {
    background: #fff;
    padding: 0.75rem 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    position: relative;
    width: 100%;
}
.airline-marquee::before,
.airline-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.airline-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
}
.airline-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, #fff 0%, transparent 100%);
}
.airline-marquee .marquee-inner {
    display: inline-flex;
    gap: 1rem;
    animation: marquee 30s linear infinite;
    align-items: center;
    padding: 0 1rem;
    will-change: transform;
}
.airline-marquee:hover .marquee-inner {
    animation-play-state: paused;
}
.airline-marquee .marquee-inner span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--navy);
    padding: 0.35rem 1rem;
    background: var(--lighter);
    border-radius: 24px;
    white-space: nowrap;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}
.airline-marquee .marquee-inner span:hover {
    background: rgba(0,114,184,0.08);
    border-color: var(--primary);
}
.airline-marquee .marquee-inner span img.airline-logo {
    height: 22px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    border-radius: 3px;
}

/* Airline cards grid */
.airline-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem 0.75rem;
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.airline-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 20px rgba(0,114,184,0.15);
    transform: translateY(-4px);
}
.airline-card img {
    height: 38px;
    max-width: 120px;
    object-fit: contain;
    margin-bottom: 0.6rem;
    transition: transform 0.3s;
}
.airline-card:hover img { transform: scale(1.1); }
.airline-card .airline-code {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}
.airline-card .airline-name {
    font-size: 0.76rem;
    color: var(--navy);
    font-weight: 500;
    margin-bottom: 0.15rem;
}

/* ---- HERO SECTION ---- */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: #fff;
    padding: 5rem 0;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/hero-homepage.jpg') center/cover no-repeat;
    opacity: 0.3;
}
.hero-section .container { position: relative; z-index: 1; }
.hero-section h1 { font-weight: 800; font-size: 2.8rem; }
.hero-section p { font-size: 1.15rem; opacity: 0.9; }

/* ---- FOOTER ---- */
.footer {
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1rem;
}
.footer h5 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: #fff; }
.footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
}
.footer .social-icons a {
    display: inline-flex;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 0.5rem;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
}
.footer .social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ---- FORMS ---- */
.form-section {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}
.form-section .form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--navy);
}
.form-section .form-control,
.form-section .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 0.6rem 0.9rem;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.form-section .form-control:focus,
.form-section .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,114,184,0.1);
}

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state img { max-width: 180px; opacity: 0.6; margin-bottom: 1rem; }
.empty-state h5 { color: var(--navy); font-weight: 600; }
.empty-state p { color: var(--text-muted); max-width: 360px; margin: 0 auto; }

/* ---- FORM CHECK ENHANCED ---- */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(0,114,184,0.15);
    border-color: var(--primary);
}

/* ---- DROPDOWN MENUS ---- */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    animation: fadeInUp 0.2s ease;
    z-index: 1070;
}
.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    transition: all 0.2s;
}
.dropdown-item:hover {
    background: var(--lighter);
}

/* ---- TRANSITIONS ---- */
.form-control, .form-select { transition: border-color 0.25s ease, box-shadow 0.25s ease; }

/* ---- SCROLLBAR GLOBAL ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.22); }

/* ---- MOBILE SIDEBAR TOGGLE ---- */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--navy);
    cursor: pointer;
    padding: 0.25rem;
}

/* ---- BACK TO TOP ---- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,114,184,0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,114,184,0.4);
}

/* ---- BREADCRUMB ---- */
.page-breadcrumb {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.page-breadcrumb a { color: var(--primary); }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.show { transform: translateX(0); }
    .auth-content {
        margin-left: 0;
        max-width: 100vw;
        width: 100%;
    }
    .sidebar-toggle { display: block; }
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.show { display: block; }
    .auth-navbar .search-box { max-width: 280px; }
    .welcome-banner { padding: 1.5rem; }
    .welcome-banner .quick-actions { flex-wrap: wrap; }
}

@media (max-width: 991.98px) {
    .login-row { min-height: auto; }
    .login-banner { max-height: 300px; min-height: 300px; }
    .login-banner-overlay { padding: 1.25rem; }
    .login-banner-overlay h3 { font-size: 1.15rem; }
    .login-banner-overlay p { font-size: 0.85rem; }
    .login-form-section { padding: 2rem 1.5rem; min-height: auto; }
}
@media (max-width: 767.98px) {
    .login-banner { max-height: 220px; min-height: 220px; }
    .login-form-section { padding: 1.5rem 1.25rem; }
    .hero-section h1 { font-size: 2rem; }
    .hero-section { padding: 3rem 0; }
    .stat-card { padding: 1rem; }
    .main-content { padding: 1rem; }
    .search-section-body { padding: 1.25rem; }
    .auth-navbar { padding: 0 0.75rem; gap: 0.5rem; }
    .auth-navbar .search-box { max-width: 180px; }
    .stat-card .stat-info h3 { font-size: 1.1rem; }
    .page-header { flex-wrap: wrap; gap: 0.5rem; }
    .welcome-banner h4 { font-size: 1.15rem; }
}

@media (max-width: 575.98px) {
    .auth-navbar .search-box { max-width: 140px; }
    .auth-navbar .search-box input { font-size: 0.8rem; padding-left: 2rem; }
    .welcome-banner .quick-actions { gap: 0.5rem; }
    .welcome-banner .quick-action-btn { font-size: 0.75rem; padding: 0.4rem 0.9rem; }
}

/* ---- PRINT ---- */
@media print {
    .sidebar, .auth-navbar, .no-print { display: none !important; }
    .auth-content { margin-left: 0 !important; }
    .main-content { padding: 0 !important; }
}
