/* DGG B2B Portal - Custom Styles */

:root {
    --primary: #262b61;
    --primary-light: #3d4485;
    --primary-dark: #1a1e42;
    --secondary: #6c757d;
    --accent: #0d6efd;
    --success: #198754;
    --warning: #ffc107;
    --danger: #dc3545;
    --light-bg: #f8f9fc;
    --card-bg: #ffffff;
    --text-primary: #262b61;
    --text-secondary: #6c757d;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-primary);
    overflow-x: hidden;
}

.text-brand {
    color: var(--primary) !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Auth Pages */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 20px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    color: var(--primary);
    font-weight: 700;
    font-size: 2rem;
}

.auth-logo span {
    color: var(--accent);
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Form Styling */
.form-floating > label {
    color: var(--text-secondary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.15);
}

.form-control,
.form-select {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #dee2e6;
}

/* Auth Form Enhancements */
.auth-card .form-label {
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.auth-input-group {
    background: #f6f7fb;
    border: 1px solid #e1e6f0;
    border-radius: 14px;
    padding: 2px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-group:focus-within {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.12);
}

.auth-input-group .form-control {
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 12px 12px;
    font-size: 0.95rem;
}

.auth-input-group textarea.form-control {
    resize: vertical;
}

.auth-input-group input[type="file"].form-control {
    padding: 10px 12px;
}

.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.auth-input-group .form-select {
    border: none;
    background-color: transparent;
    box-shadow: none;
    padding: 12px 12px;
    padding-right: 2.5rem;
    font-size: 0.95rem;
}

.auth-input-group .form-select:focus {
    box-shadow: none;
    border-color: transparent;
}

.auth-input-group .form-control::placeholder {
    color: #9aa3b2;
}

.auth-input-group .input-group-text {
    border: none;
    background: transparent;
    color: var(--primary);
    padding: 12px 14px;
}

.auth-input-group .btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    padding: 0 12px;
}

/* Profile page sections (scoped) */
.profile-page .form-section {
    background: #ffffff;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.profile-page .form-section:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.profile-page .form-control,
.profile-page .form-select {
    background: #f6f7fb;
    border: 1px solid #e1e6f0;
    border-radius: 14px;
    padding: 12px 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-page .form-control:focus,
.profile-page .form-select:focus {
    background: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.12);
}

.profile-page .input-group .form-control {
    border-radius: 14px;
}

.profile-page .input-group .btn {
    border-radius: 14px;
}

.profile-page .upload-zone {
    border: 2px dashed #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    background-color: #f8fafc;
}

.profile-page .upload-zone:hover {
    border-color: var(--primary);
    background-color: rgba(38, 43, 97, 0.05);
}

.profile-page .toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.profile-page .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-page .toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
    border-radius: 24px;
}

.profile-page .toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: #ffffff;
    transition: .4s;
    border-radius: 50%;
}

.profile-page .toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.profile-page .toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.auth-input-group .btn:focus {
    box-shadow: none;
}

.auth-card .btn-primary {
    border-radius: 14px;
    padding: 12px 24px;
    letter-spacing: 0.01em;
}

/* Payment Method Cards */
.payment-method.card {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid #e1e6f0;
    border-radius: 14px;
    background: #f6f7fb;
    box-shadow: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.payment-method.card:hover {
    border-color: #d6def2;
    background: #ffffff;
    box-shadow: none;
}

.payment-method.card.border-primary {
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(38, 43, 97, 0.12);
}

.payment-method .form-check-input {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

.payment-method .form-check-label {
    width: 100%;
    margin-bottom: 0;
    padding-left: 1.5rem;
    cursor: pointer;
}

/* Form Checks (Primary Color) */
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.2);
}

/* Brand Alert */
.alert-brand {
    background: #eef1fb;
    border-color: #d6def2;
    color: var(--primary);
}

.form-floating > .form-control {
    height: calc(3.5rem + 2px);
    padding: 1rem 0.75rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(38, 43, 97, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Verification Code Input */
.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.code-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 1px solid #e1e6f0;
    border-radius: 14px;
    background: #f6f7fb;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.15);
    outline: none;
}

/* Layout - Sidebar */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--primary);
    color: #fff;
    z-index: 1000;
    transition: all 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: var(--header-height);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}

.sidebar-logo h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-logo span {
    color: var(--accent);
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-top {
    padding: 16px 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.sidebar-profile-info {
    display: flex;
    flex-direction: column;
}

.sidebar-profile-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
}

.sidebar-profile-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-profile-action {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    text-decoration: none;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.sidebar-profile-action:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-search {
    position: relative;
}

.sidebar-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid transparent;
    color: #fff;
    padding: 8px 12px 8px 34px;
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
}

.sidebar-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-search input:focus {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
}

.sidebar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.sidebar-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sidebar-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-1px);
}

.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.sidebar-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2);
}

.menu-section {
    margin-bottom: 10px;
}

.menu-section-title {
    padding: 10px 20px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 12px;
    border-left: 3px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-left-color: var(--accent);
}

.menu-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.menu-item span {
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Submenu */
.has-submenu {
    position: relative;
}

.submenu-toggle {
    cursor: pointer;
}

.submenu-toggle::after {
    content: '\F282';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    transition: transform 0.3s ease;
}

.submenu-toggle.collapsed::after {
    transform: rotate(-90deg);
}

.submenu-toggle.submenu-arrow-static::after {
    transform: rotate(0deg);
}

.submenu {
    background: rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.submenu .menu-item {
    padding-left: 56px;
    font-size: 0.9rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Header */
.main-header {
    background: var(--card-bg);
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.header-search {
    position: relative;
}

.header-search input {
    width: 300px;
    padding: 8px 16px 8px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.header-search input:focus {
    width: 350px;
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(38, 43, 97, 0.1);
}

.header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.header-search.auth-input-group {
    width: 300px;
    padding: 2px;
    transition: width 0.3s ease;
}

.header-search.auth-input-group:focus-within {
    width: 350px;
}

.header-search.auth-input-group .form-control {
    width: 100%;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 10px 12px;
    border-radius: 0;
}

.header-search.auth-input-group .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.header-search.auth-input-group .input-group-text {
    border: none;
    background: transparent;
    color: var(--text-secondary);
}

.header-search.auth-input-group i {
    position: static;
    transform: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    position: relative;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.header-icon:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.user-dropdown:hover {
    background: var(--light-bg);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
}

.user-info {
    text-align: left;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Page Content */
.page-content {
    padding: 24px;
}

.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
}

/* Dashboard Modern */
.dashboard-page .main-content {
    background: var(--light-bg);
}

.dashboard-page .card {
    border: 1px solid #eef1f4;
    box-shadow: none;
}

.dashboard-page .card:hover {
    box-shadow: none;
}

.dashboard-btn {
    border-radius: 10px;
    border: 1px solid #e4e9f6;
    background: #f8f9ff;
    color: var(--primary);
    font-weight: 600;
    padding: 6px 12px;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-btn:hover {
    background: #eef3ff;
    border-color: #d6def2;
    color: var(--primary);
}

.dashboard-btn.dashboard-btn-white {
    background: #fff;
}

.dashboard-btn.dashboard-btn-white:hover {
    background: var(--primary) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.dashboard-btn.dashboard-btn-white:focus,
.dashboard-btn.dashboard-btn-white:active,
.dashboard-btn.dashboard-btn-white.active,
.dashboard-btn.dashboard-btn-white:focus-visible,
.btn-check:checked + .dashboard-btn.dashboard-btn-white,
.btn-check:active + .dashboard-btn.dashboard-btn-white,
.show > .dashboard-btn.dashboard-btn-white.dropdown-toggle {
    border-color: #fff !important;
}

.dashboard-btn:focus,
.dashboard-btn:active,
.dashboard-btn.active,
.dashboard-btn:focus-visible,
.btn-check:checked + .dashboard-btn,
.btn-check:active + .dashboard-btn,
.show > .dashboard-btn.dropdown-toggle {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.2) !important;
}

.dashboard-page .dashboard-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid #e4e9f6;
    background: #f8f9ff;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.dashboard-page .dashboard-link-btn i {
    font-size: 0.9rem;
}

.dashboard-page .dashboard-link-btn:hover {
    background: #eef3ff;
    border-color: #d6def2;
    color: var(--primary);
}

.dashboard-page .stat-card {
    border: 1px solid #eef1f4;
    background: #fff;
    box-shadow: none;
}

.dashboard-page .stat-card:hover {
    transform: none;
    box-shadow: none;
}

.dashboard-page .stat-card::after {
    display: none;
}

.dashboard-page .flight-card {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid #eef1f4;
    border-left: 4px solid var(--primary);
    box-shadow: none;
}

.dashboard-page .flight-line .line {
    background: #d9e1f2;
}

.dashboard-page .flight-line i {
    color: var(--primary);
}

.dashboard-page .flight-city .name {
    color: var(--text-secondary);
}

.dashboard-page .flight-city .code {
    color: var(--text-primary);
}

.dashboard-page .flight-details {
    border-top: 1px solid #eef1f4;
}

.dashboard-page .flight-detail span:first-child {
    color: var(--text-secondary);
    opacity: 1;
}

.dashboard-page .flight-detail span:last-child {
    color: var(--text-primary);
    font-weight: 600;
}

.dashboard-page .balance-card {
    background: #fff;
    color: var(--text-primary);
    border: 1px solid #eef1f4;
}

.dashboard-page .balance-label,
.dashboard-page .balance-info-item span:first-child {
    color: var(--text-secondary);
}

.dashboard-page .balance-amount {
    color: var(--text-primary);
}

.dashboard-page .balance-info {
    border-top: 1px solid #eef1f4;
}


.dashboard-page .quick-action-card {
    border: 1px solid #eef1f4;
    background: #ffffff;
    box-shadow: none;
}

.dashboard-page .quick-action-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #dfe4f2;
    background: #fafbff;
}

.dashboard-page .quick-action-card i {
    background: #f1f4ff;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.dashboard-page .new-reservation-quick {
    position: relative;
}

.dashboard-page .new-reservation-quick::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 12px;
}

.dashboard-page .new-reservation-popover {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: min(420px, calc(100vw - 2rem));
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    z-index: 1200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dashboard-page .new-reservation-popover::before {
    content: '';
    position: absolute;
    right: 26px;
    top: -7px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

.dashboard-page .new-reservation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-page .new-reservation-option {
    padding: 14px 10px;
    border-radius: 10px;
}

.dashboard-page .new-reservation-option i {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.dashboard-page .new-reservation-option h5 {
    font-size: 0.85rem;
}

.dashboard-page .new-reservation-quick:hover .new-reservation-popover,
.dashboard-page .new-reservation-quick:focus-within .new-reservation-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dashboard-page .activity-icon {
    background: #ffffff;
    border: 1px solid #eef1f4;
    box-shadow: none;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: var(--card-bg);
    border-bottom: 1px solid #eee;
    padding: 16px 20px;
    font-weight: 600;
    border-radius: 12px 12px 0 0 !important;
}

.card-body {
    padding: 20px;
}

/* Stats Cards */
.stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.primary {
    background: rgba(38, 43, 97, 0.1);
    color: var(--primary);
}

.stat-icon.success {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.stat-icon.warning {
    background: rgba(255, 193, 7, 0.15);
    color: var(--warning);
}

.stat-icon.danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

.stat-icon.info {
    background: rgba(13, 110, 253, 0.1);
    color: var(--accent);
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.stat-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Tables */
.table-container {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.table {
    margin-bottom: 0;
}

.table thead th {
    background: var(--light-bg);
    border-bottom: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 16px;
}

.table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    border-color: #f0f0f0;
}

.table tbody tr:hover {
    background: var(--light-bg);
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.8rem;
    border-radius: 6px;
}

.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Quick Actions */
.quick-action-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.quick-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.quick-action-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.quick-action-card h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Activity List */
.activity-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.activity-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.activity-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
    white-space: nowrap;
}

/* Upcoming Flights Widget */
.flight-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 12px;
    color: #fff;
    padding: 20px;
    margin-bottom: 16px;
}

.flight-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.flight-city {
    text-align: center;
}

.flight-city .code {
    font-size: 1.5rem;
    font-weight: 700;
}

.flight-city .name {
    font-size: 0.8rem;
    opacity: 0.8;
}

.flight-line {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.flight-line .line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.flight-line i {
    font-size: 1.2rem;
    margin: 0 10px;
}

.flight-details {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
}

.flight-detail span:first-child {
    opacity: 0.7;
}

/* Chat/Message Style */
.message-list {
    max-height: 400px;
    overflow-y: auto;
}

.message-item {
    margin-bottom: 16px;
}

.message-item.sent {
    text-align: right;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    text-align: left;
}

.message-item.received .message-bubble {
    background: var(--light-bg);
    border-bottom-left-radius: 4px;
}

.message-item.sent .message-bubble {
    background: var(--primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.message-item.sent .message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Search Forms */
.search-form-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.search-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.search-type-tab {
    padding: 10px 24px;
    border: 2px solid #dee2e6;
    border-radius: 25px;
    background: none;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-type-tab.active,
.search-type-tab:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.swap-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #dee2e6;
    background: var(--card-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.swap-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Passenger Counter */
.passenger-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: none;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.counter-btn:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

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

.counter-value {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

/* Balance Card */
.balance-card {
    background: var(--primary);
    border-radius: 16px;
    color: #fff;
    padding: 30px;
}

.balance-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.balance-info {
    display: flex;
    gap: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.balance-info-item span:first-child {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
}

.balance-info-item span:last-child {
    font-weight: 600;
}

/* Modal Styling */
.modal-content {
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid #eee;
    padding: 20px 24px;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #eee;
    padding: 16px 24px;
}

/* Pagination */
.pagination {
    gap: 5px;
}

.page-link {
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    color: var(--text-primary);
    background: none;
}

.page-link:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-primary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Filter Section */
.filter-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

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

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

.filter-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .mobile-toggle {
        display: block;
    }

    .header-search input {
        width: 200px;
    }

    .header-search input:focus {
        width: 250px;
    }

    .header-search.auth-input-group {
        width: 200px;
    }

    .header-search.auth-input-group:focus-within {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 16px;
    }

    .header-search {
        display: none;
    }

    .user-info {
        display: none;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .stat-content h3 {
        font-size: 1.5rem;
    }

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

    .flight-line {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .search-type-tabs {
        flex-wrap: wrap;
    }

    .auth-card {
        padding: 30px 20px;
    }

    .code-input {
        width: 45px;
        height: 50px;
        font-size: 1.3rem;
    }

    .dashboard-page .new-reservation-popover {
        right: auto;
        left: 0;
        width: min(420px, calc(100vw - 2rem));
    }

    .dashboard-page .new-reservation-popover::before {
        right: auto;
        left: 26px;
    }

    .dashboard-page .new-reservation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .table-responsive {
        font-size: 0.85rem;
    }

    .btn {
        padding: 10px 16px;
    }

    .balance-amount {
        font-size: 2rem;
    }

    .balance-info {
        flex-direction: column;
        gap: 15px;
    }
}

/* Sidebar Collapsed State */
.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    overflow: visible;
}

.sidebar.collapsed .sidebar-logo h2,
.sidebar.collapsed .menu-section-title,
.sidebar.collapsed .menu-item span,
.sidebar.collapsed .submenu-toggle::after {
    display: none;
}

.sidebar.collapsed .sidebar-top,
.sidebar.collapsed .sidebar-footer {
    display: none;
}

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 12px;
}

.sidebar.collapsed .menu-item i {
    margin: 0;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.sidebar.collapsed .sidebar-menu,
.sidebar.collapsed .menu-section {
    overflow: visible;
}

.sidebar.collapsed .has-submenu {
    position: relative;
}

.sidebar.collapsed .has-submenu::after {
    content: '';
    position: absolute;
    left: 100%;
    top: -10px;
    width: 28px;
    height: calc(100% + 20px);
}

.sidebar.collapsed .has-submenu > .submenu {
    display: none !important;
    position: absolute;
    left: calc(100% + 4px);
    top: -6px;
    min-width: 220px;
    padding: 8px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
    overflow: visible;
    z-index: 1200;
}

.sidebar.collapsed .has-submenu:hover > .submenu,
.sidebar.collapsed .has-submenu:focus-within > .submenu {
    display: block !important;
}

.sidebar.collapsed .has-submenu > .submenu::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 16px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-left: 1px solid #e2e8f0;
    border-top: 1px solid #e2e8f0;
    transform: rotate(-45deg);
}

.sidebar.collapsed .has-submenu > .submenu .menu-item {
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-left: none;
    border-radius: 8px;
    color: var(--text-primary);
}

.sidebar.collapsed .has-submenu > .submenu .menu-item span {
    display: inline;
}

.sidebar.collapsed .has-submenu > .submenu .menu-item:hover {
    background: #eef1fb;
    color: var(--primary);
}

.sidebar.collapsed .has-submenu > .submenu .menu-item.active {
    background: #e8ecfb;
    color: var(--primary);
    border-left: none;
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.sidebar-overlay.show {
    display: block;
}

/* Dropdown Menu Styling */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.dropdown-item {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--light-bg);
}

.dropdown-item i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 8px 0;
}

/* Notification Bell Wrap + Custom Panel */
.notif-wrap {
    position: relative;
}

.notif-toggle-btn {
    position: relative; /* anchor for .notification-badge */
    background: none;
    border: none;
    padding: 6px 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-toggle-btn:hover {
    background: var(--light-bg);
    color: var(--primary);
}

.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.13);
    overflow: hidden;
    z-index: 1060;
}

@media (max-width: 480px) {
    .notif-panel {
        width: calc(100vw - 24px);
        right: -8px;
    }
}

/* Notification Dropdown */
.notification-dropdown {
    width: 360px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.13);
    border: 1px solid rgba(0, 0, 0, 0.09);
}

@media (max-width: 480px) {
    .notification-dropdown {
        width: calc(100vw - 24px);
    }
}

.notification-header {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.notification-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.notif-see-all {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.notif-see-all:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
    align-items: flex-start;
    cursor: default;
}

.notification-item:hover {
    background: var(--light-bg);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.notif-unread {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.04);
    border-left: 3px solid var(--primary);
}

.notification-item.notif-unread:hover {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.08);
}

.notification-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.notif-icon-primary {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.12);
    color: var(--primary);
}

.notif-icon-success {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.notif-icon-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.notif-icon-danger {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content p {
    margin: 0 0 2px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-content small {
    color: var(--text-secondary);
    font-size: 0.74rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-status {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    font-size: 0.7rem;
    font-weight: 600;
}

.notif-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.notif-empty i {
    font-size: 1.6rem;
    opacity: 0.5;
}

.notification-footer {
    padding: 11px 16px;
    text-align: center;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.notification-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.84rem;
}

.notification-footer a:hover {
    text-decoration: underline;
}

/* Notifications Full Page */
.notif-page-tabs {
    display: flex;
    gap: 4px;
    background: var(--light-bg);
    border-radius: 10px;
    padding: 4px;
    width: fit-content;
}

.notif-page-tab {
    padding: 7px 18px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.notif-page-tab.active {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.notif-full-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.2s;
}

.notif-full-item:hover {
    background: var(--light-bg);
}

.notif-full-item:last-child {
    border-bottom: none;
}

.notif-full-item.notif-unread {
    background: rgba(var(--bs-primary-rgb, 99, 102, 241), 0.04);
    border-left: 3px solid var(--primary);
}

.notif-full-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.05rem;
}

.notif-full-body {
    flex: 1;
    min-width: 0;
}

.notif-full-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.notif-full-meta {
    font-size: 0.79rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-full-desc {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.5;
}

.notif-announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.notif-announce-badge.info {
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.notif-announce-badge.warning {
    background: rgba(255, 193, 7, 0.18);
    color: #856404;
}

.notif-announce-badge.success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
}

/* Flatpickr Custom */
.flatpickr-calendar {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
}

.flatpickr-day.selected {
    background: var(--primary);
    border-color: var(--primary);
}

.flatpickr-day.selected:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Tom Select Custom */
.ts-wrapper.single .ts-control {
    border-radius: 8px;
    padding: 10px 16px;
    border: 1px solid #dee2e6;
}

.ts-wrapper.single .ts-control:focus,
.ts-wrapper.focus .ts-control {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(38, 43, 97, 0.15);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

/* Print Styles */
@media print {
    .sidebar,
    .main-header,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .page-content {
        padding: 0 !important;
    }
}

/* Dashboard Quick Search Widget */
.dqs-widget {
    overflow: visible;
}

.dqs-nav-wrap {
    background: #ffffff;
    border-bottom: 1px solid #e8eaf0;
    padding: 16px 24px 0;
    border-radius: var(--bs-card-border-radius, 0.375rem) var(--bs-card-border-radius, 0.375rem) 0 0;
}

.dqs-nav-wrap-title {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dqs-nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.dqs-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 12px 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.dqs-tab-btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-1px);
}

.dqs-tab-btn.active {
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 14px;
    transform: translateY(0);
}

.dqs-tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 8px;
    right: 8px;
    height: 3px;
    background: var(--primary);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: transform 0.26s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.dqs-tab-btn.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.dqs-tab-icon {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
}

.dqs-tab-label {
    font-size: 0.78rem;
    transition: transform 0.25s ease;
}

.dqs-tab-btn.active .dqs-tab-icon,
.dqs-tab-btn.active .dqs-tab-label {
    transform: translateY(-1px);
}

#dqsServiceTabContent {
    --dqs-pane-min-height: 0px;
}

#dqsServiceTabContent > .tab-pane {
    min-height: var(--dqs-pane-min-height);
}

#dqsServiceTabContent > .tab-pane.dqs-tab-pane-centered .dqs-form-wrap {
    min-height: var(--dqs-pane-min-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dqs-form-wrap {
    padding: 0;
}

.dqs-form-wrap .search-form-card,
.dqs-form-wrap .flight-modern-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    margin-bottom: 0;
}

@media (max-width: 1199px) {
    #dqsServiceTabContent > .tab-pane,
    #dqsServiceTabContent > .tab-pane.dqs-tab-pane-centered .dqs-form-wrap {
        min-height: 0;
    }

    #dqsServiceTabContent > .tab-pane.dqs-tab-pane-centered .dqs-form-wrap {
        display: block;
    }
}

/* Car Results (dashboard) */
.cr-chart-card {
    border: 1px solid #dbe3f3;
    border-radius: 0.75rem;
    background: #fbfcff;
}

.cr-chart-canvas-wrap {
    height: 240px;
}

.cr-results-head {
    border: 1px solid #dbe3f3;
    border-radius: 0.75rem;
    background: #fbfcff;
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cr-results-head p {
    color: #0f172a;
}

#carSortSelect {
    min-width: 220px;
}

.cr-mobile-filter-head {
    display: none;
}

.cr-result-card {
    display: grid;
    grid-template-columns: 220px 1fr 210px;
    gap: 1rem;
    align-items: center;
    border: 1px solid #e6e9f0;
    border-radius: 0.85rem;
    background: #fff;
    padding: 1rem;
}

.cr-result-image {
    position: relative;
}

.cr-result-image img {
    width: 100%;
    border-radius: 0.65rem;
    object-fit: cover;
}

.cr-result-badges {
    position: absolute;
    left: 0.5rem;
    bottom: 0.5rem;
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.cr-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
}

.cr-result-grid p {
    margin: 0;
    color: #475569;
    font-size: 0.83rem;
}

.cr-result-price {
    text-align: right;
}

.cr-result-price .btn {
    border-radius: 0.55rem;
}

.car-office-accent {
    color: #4f9cff !important;
}

.cr-card {
    display: grid;
    grid-template-columns: 220px 1fr 210px;
    gap: 1rem;
    align-items: center;
    border: 1px solid #e6e9f0;
    border-radius: 0.85rem;
    background: #fff;
    padding: 1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cr-card:hover {
    border-color: #cad4ea;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.cr-card-media {
    position: relative;
}

.cr-card-media img {
    width: 100%;
    border-radius: 0.65rem;
    object-fit: cover;
}

.cr-card-badge-row {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cr-card-body {
    min-width: 0;
}

.cr-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.cr-card-vendor {
    margin-bottom: 0.65rem;
    color: #64748b;
    font-size: 0.84rem;
}

.cr-card-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.65rem;
}

.cr-card-feature {
    margin: 0;
    color: #475569;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.cr-card-price {
    text-align: right;
}

.cr-card-price .cr-card-daily {
    font-size: 1.32rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
}

.cr-card-price .cr-card-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: #262b61;
    line-height: 1.2;
}

.cr-card-price .cr-card-meta {
    color: #94a3b8;
    font-size: 0.74rem;
}

.cr-card-select {
    margin-top: 0.6rem;
    width: 100%;
    border-radius: 0.55rem;
}

.findeks-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
}

@media (max-width: 1199.98px) {
    #carFilterPanel.cr-mobile-open {
        display: block;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 320px;
        max-width: 90vw;
        z-index: 1041;
        background: #fff;
        padding: 1rem;
        overflow-y: auto;
    }

    #carFilterPanel.cr-mobile-open .cr-mobile-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 991.98px) {
    .cr-result-card,
    .cr-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .cr-result-price,
    .cr-card-price {
        text-align: left;
    }

    .cr-chart-canvas-wrap {
        height: 180px;
    }
}

@media (max-width: 575.98px) {
    #carSortSelect {
        min-width: 0;
        width: 100%;
    }

    .cr-results-head {
        flex-direction: column;
        align-items: stretch;
    }

    .cr-card-features,
    .cr-result-grid {
        grid-template-columns: 1fr;
    }
}
