/* ============================================================
   Royal Travels CRM — Premium UI Stylesheet v2.0
   Font: Inter / Poppins
   Brand: Royal Blue #2563EB | Gold #F59E0B | Navy #1E293B
   ============================================================ */

/* ---------- CSS Variables (Light Theme) ---------- */
:root {
    --font-primary: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --brand-blue:   #2563EB;
    --brand-blue-dark: #1d4ed8;
    --brand-blue-light: #eff6ff;
    --brand-gold:   #F59E0B;
    --brand-gold-dark: #d97706;
    --brand-navy:   #1E293B;
    --brand-purple: #7C3AED;
    --brand-teal:   #14B8A6;
    --brand-rose:   #F43F5E;

    --bg-body:      #F8F9FC;
    --bg-surface:   #FFFFFF;
    --bg-sidebar:   #FFFFFF;
    --bg-sidebar-active: rgba(37,99,235,0.08);
    --bg-header:    #FFFFFF;
    --bg-card:      #FFFFFF;
    --bg-input:     #F8F9FC;
    --bg-hover:     #F1F5F9;

    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;
    --text-sidebar:   #475569;
    --text-sidebar-active: #2563EB;

    --border-color:   #E2E8F0;
    --border-radius:  18px;
    --border-radius-sm: 12px;
    --border-radius-xs: 8px;
    --border-radius-lg: 18px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg:  0 12px 24px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --shadow-xl:  0 20px 40px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.06);
    --shadow-blue: 0 8px 24px rgba(37,99,235,0.25);
    --shadow-gold: 0 8px 24px rgba(245,158,11,0.25);
    --shadow-purple: 0 8px 24px rgba(124,58,237,0.25);
    --shadow-glass: 0 4px 16px rgba(0,0,0,0.06);

    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --header-height: 72px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Status Colors */
    --color-paid:    #10B981;
    --color-partial: #F59E0B;
    --color-unpaid:  #EF4444;
    --color-active:  #10B981;
    --color-inactive:#94A3B8;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
    --bg-body:      linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-surface:   rgba(17, 24, 39, 0.95);
    --bg-sidebar:   rgba(7, 13, 26, 0.98);
    --bg-sidebar-active: rgba(37,99,235,0.25);
    --bg-header:    rgba(17,24,39,0.95);
    --bg-card:      rgba(26, 34, 53, 0.9);
    --bg-input:     rgba(30, 42, 59, 0.85);
    --bg-hover:     rgba(30, 42, 59, 0.9);

    --text-primary:   #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted:     #64748B;

    --border-color:   rgba(255,255,255,0.1);
    --shadow-sm:  0 2px 8px rgba(0,0,0,0.4);
    --shadow-md:  0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg:  0 16px 48px rgba(0,0,0,0.6);

    --glass-bg: rgba(26, 34, 53, 0.9);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a { color: var(--brand-blue); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-blue-dark); }

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.text-gold { color: var(--brand-gold) !important; }
.required::after { content: ' *'; color: var(--color-unpaid); }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left var(--transition);
}

.page-content {
    flex: 1;
    padding: 20px 28px 40px;
    max-width: 100%;
    width: 100%;
}

/* ============================================================
   SIDEBAR - Enterprise Design
   ============================================================ */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width var(--transition), transform var(--transition);
    overflow: hidden;
    border-right: 1px solid var(--border-color);
}

/* Brand */
.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
    min-height: 90px;
    position: relative;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px;
}

.brand-logo-img {
    width: 60px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

@media (max-width: 1440px) {
    .brand-logo-img {
        width: 55px;
    }
}

@media (max-width: 1366px) {
    .brand-logo-img {
        width: 50px;
    }
}

@media (max-width: 1280px) {
    .brand-logo-img {
        width: 48px;
    }
}

.brand-text {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.sidebar-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition-fast);
}

.sidebar-close-btn:hover { color: var(--text-primary); background: var(--bg-hover); }

/* Navigation */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 12px;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.nav-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    padding: 12px 12px 4px;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--text-sidebar);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
    white-space: nowrap;
    overflow: hidden;
    margin-bottom: 2px;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-sidebar-active);
    color: var(--text-sidebar-active);
    font-weight: 600;
}

.nav-item.active .nav-icon { color: var(--brand-blue); }
.nav-icon { font-size: 17px; flex-shrink: 0; width: 20px; text-align: center; }
.nav-text { flex: 1; }

.nav-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), transparent);
    transition: opacity var(--transition-fast);
}
.nav-item:hover .nav-glow { opacity: 1; }

.nav-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: auto;
}
.badge-warning { background: rgba(245,158,11,0.2); color: var(--brand-gold); }

.nav-logout { margin-top: 4px; }
.nav-logout:hover { background: rgba(239,68,68,0.1); color: #f87171; }

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.powered-by {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.powered-text {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.powered-link {
    font-size: 11px;
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.powered-link:hover {
    color: var(--brand-blue-dark);
    text-decoration: underline;
}

/* Overlay for mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(4px);
}

/* ============================================================
   TOP HEADER - Enterprise Design
   ============================================================ */
.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: var(--sidebar-width);
    height: var(--header-height);
    background: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 900;
    transition: left var(--transition), background var(--transition);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 8px; }

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 20px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.sidebar-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }

/* Breadcrumb */
.breadcrumb-wrap .breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--text-muted); }
.breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* Global Search */
.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.search-input {
    width: 280px;
    height: 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 12px 0 36px;
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: var(--bg-surface);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    width: 340px;
}

.search-input::placeholder { color: var(--text-muted); }

.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 360px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.search-results.show { display: block; }

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-color);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-hover); }

.search-result-icon {
    width: 34px;
    height: 34px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.search-result-info { flex: 1; }
.search-result-title { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.search-result-sub { font-size: 11px; color: var(--text-muted); }

/* Header Buttons */
.header-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.header-btn:hover { background: var(--bg-hover); color: var(--text-primary); }

.notif-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    background: var(--color-unpaid);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-surface);
    display: none;
}
.notif-badge.show { display: flex; }

/* Notification Dropdown */
.notif-menu {
    width: 340px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    background: var(--bg-surface);
    padding: 0;
}

.notif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 13px;
}
.mark-all-read { font-size: 12px; color: var(--brand-blue); font-weight: 400; }
.notif-body { max-height: 300px; overflow-y: auto; }
.notif-empty { text-align: center; padding: 24px; color: var(--text-muted); }
.notif-empty i { font-size: 24px; display: block; margin-bottom: 8px; }

/* Profile Dropdown - Enterprise */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-surface);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.profile-btn:hover { 
    border-color: var(--brand-blue); 
    box-shadow: var(--shadow-sm);
    background: var(--bg-hover);
}

.profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue), #7C3AED);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: var(--shadow-blue);
}

.profile-name { font-size: 13px; font-weight: 600; color: var(--text-primary); line-height: 1.2; }
.profile-role { font-size: 11px; color: var(--text-muted); }

.profile-menu {
    min-width: 220px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    background: var(--bg-surface);
    padding: 8px;
}

.profile-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    margin-bottom: 4px;
}

.profile-avatar-lg {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--brand-blue), #7C3AED);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.profile-menu .dropdown-item {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 10px;
    transition: all var(--transition-fast);
    color: var(--text-primary);
}
.profile-menu .dropdown-item:hover { background: var(--bg-hover); }
.profile-menu .dropdown-item.text-danger:hover { background: rgba(239,68,68,0.07); }
.profile-menu .dropdown-divider { border-color: var(--border-color); margin: 4px 0; }

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin: 0;
}

.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 2px 0 0;
}

.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.back-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 16px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.back-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ============================================================
   STAT CARDS - Enterprise Design
   ============================================================ */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px 0;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 110px;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-card-body {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stat-blue { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: var(--brand-blue); }
.stat-purple { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); color: var(--brand-purple); }
.stat-gold { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); color: var(--brand-gold); }
.stat-green { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #10B981; }
.stat-red { background: linear-gradient(135deg, #FEF2F2, #FEE2E2); color: #EF4444; }
.stat-teal { background: linear-gradient(135deg, #F0FDFA, #CCFBF1); color: var(--brand-teal); }
.stat-indigo { background: linear-gradient(135deg, #EEF2FF, #E0E7FF); color: #6366F1; }

.stat-info { flex: 1; }
.stat-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.stat-value { display: block; font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }

.stat-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 10px;
}

.stat-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition-fast);
}

.stat-link:hover { color: var(--brand-blue-dark); }

/* Enhanced KPI Card with Growth */
.kpi-card-link { text-decoration: none; color: inherit; display: block; }
.kpi-card-link:hover .kpi-card { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.kpi-card {
    background: var(--bg-surface);
    border-radius: var(--border-radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}
.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-purple));
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.kpi-card:hover::before { opacity: 1; }
.kpi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.kpi-icon-blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.kpi-icon-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.kpi-icon-green { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.kpi-icon-red { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.kpi-icon-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.kpi-icon-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); color: #fff; }
.kpi-icon-orange { background: linear-gradient(135deg, #f97316, #ea580c); color: #fff; }
.kpi-icon-warning { background: linear-gradient(135deg, #eab308, #ca8a04); color: #fff; }
.kpi-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.kpi-trend-up { background: #d1fae5; color: #065f46; }
.kpi-trend-down { background: #fee2e2; color: #991b1b; }
.kpi-trend-neutral { background: #f3f4f6; color: #6b7280; }
.kpi-value { font-size: 28px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; line-height: 1.2; }
.kpi-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: 12px; }
.kpi-comparison { display: flex; gap: 16px; flex-wrap: wrap; }
.kpi-compare-item { display: flex; flex-direction: column; }
.kpi-compare-label { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
.kpi-compare-value { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.kpi-arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 11px;
    color: var(--brand-blue);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    transform: translateX(-8px);
    transition: all var(--transition-normal);
}
.kpi-card:hover .kpi-arrow { opacity: 1; transform: translateX(0); }

.kpi-mini-chart {
    height: 40px;
    margin-top: 12px;
}

.stat-danger-card .stat-card { border-top: 3px solid rgba(239,68,68,0.4); }

/* Mini Stats */
.mini-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.mini-stat:hover { box-shadow: var(--shadow-md); }
.mini-stat i { font-size: 22px; flex-shrink: 0; }
.mini-val { display: block; font-size: 18px; font-weight: 700; color: var(--text-primary); }
.mini-label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   CHART CARDS - Enterprise Design
   ============================================================ */
.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all var(--transition);
}

.chart-card:hover {
    box-shadow: var(--shadow-md);
}

.chart-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.chart-title { font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.chart-subtitle { font-size: 13px; color: var(--text-muted); margin-top: 4px; font-weight: 500; }
.chart-body { position: relative; }

.chart-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

/* ============================================================
   DATA CARDS - Enterprise Design
   ============================================================ */
.data-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.data-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.data-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.data-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.card-body-pad { padding: 20px; }

/* Table Actions */
.table-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-search {
    position: relative;
    width: 240px;
}

.table-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
}

.table-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 13px;
    transition: all var(--transition-fast);
}

.table-search input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--bg-input);
    border-radius: 12px;
    width: fit-content;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text-primary);
    background: rgba(0,0,0,0.05);
}

.filter-tab.active {
    background: var(--bg-surface);
    color: var(--brand-blue);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #EFF6FF, #DBEAFE);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--brand-blue);
    margin-bottom: 20px;
}

.empty-state h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* Pending Payments List */
.pending-list {
    padding: 16px 24px;
    max-height: 320px;
    overflow-y: auto;
}

.pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.pending-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pending-customer {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pending-ref {
    font-size: 12px;
    color: var(--text-muted);
}

.pending-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-gold);
}

/* Top Agents List */
.agent-list {
    padding: 16px 24px;
    max-height: 320px;
    overflow-y: auto;
}

.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.agent-rank {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.agent-rank.rank-1 { background: #FEF3C7; color: var(--brand-gold); }
.agent-rank.rank-2 { background: #E2E8F0; color: #64748B; }
.agent-rank.rank-3 { background: #FED7AA; color: #EA580C; }

.agent-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.agent-company {
    font-size: 12px;
    color: var(--text-muted);
}

.agent-stats {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-sales {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.agent-bookings {
    font-size: 11px;
    color: var(--text-muted);
}

/* Transaction List */
.transaction-list {
    padding: 16px 24px;
    max-height: 320px;
    overflow-y: auto;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.transaction-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.transaction-item-link:hover .transaction-item {
    background: var(--bg-hover);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #ECFDF5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #10B981;
    flex-shrink: 0;
}

.transaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-ref {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.transaction-customer {
    font-size: 12px;
    color: var(--text-muted);
}

.transaction-amount {
    font-size: 14px;
    font-weight: 700;
    color: #10B981;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rt-table {
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
    min-width: 800px;
}

.rt-table thead th {
    background: var(--bg-input);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.rt-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 13.5px;
    vertical-align: middle;
    transition: background var(--transition-fast);
}

.rt-table tbody tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.rt-table tbody tr:last-child td { border-bottom: none; }
.rt-table tbody tr:hover td { background: var(--bg-hover); }
.rt-table tfoot td { padding: 12px 16px; border-top: 2px solid var(--border-color); font-size: 13.5px; }

.booking-ref {
    font-weight: 600;
    color: var(--brand-blue);
    font-family: monospace;
    font-size: 13px;
}
.booking-ref:hover { color: var(--brand-blue-dark); }

.td-name { font-weight: 500; color: var(--text-primary); }
.td-sub { font-size: 11px; color: var(--text-muted); }
.td-amount { font-weight: 600; }
.td-due { font-size: 11px; color: var(--color-unpaid); }

/* DataTables overrides */
div.dataTables_wrapper div.dataTables_filter,
div.dataTables_wrapper div.dataTables_length {
    display: none;
}

div.dataTables_wrapper div.dataTables_info { 
    font-size: 12px; 
    color: var(--text-muted); 
    padding: 16px 20px;
}

div.dataTables_wrapper div.dataTables_paginate { 
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.paginate_button { 
    border-radius: 8px !important; 
    font-size: 12px !important;
    padding: 6px 12px !important;
    border: 1px solid var(--border-color) !important;
    background: var(--bg-surface) !important;
    color: var(--text-primary) !important;
    transition: all var(--transition-fast) !important;
}

.paginate_button:hover {
    border-color: var(--brand-blue) !important;
    color: var(--brand-blue) !important;
}

.paginate_button.current, .paginate_button.current:hover {
    background: var(--brand-blue) !important;
    border-color: var(--brand-blue) !important;
    color: #fff !important;
}

.paginate_button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================================
   STATUS & BADGES
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-paid    { background: rgba(16,185,129,0.12); color: #059669; }
.status-partial { background: rgba(245,158,11,0.12); color: #D97706; }
.status-unpaid  { background: rgba(239,68,68,0.10); color: #DC2626; }
.status-active  { background: rgba(16,185,129,0.12); color: #059669; }
.status-inactive{ background: rgba(148,163,184,0.12); color: #94A3B8; }

.travel-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.travel-flight          { background: rgba(37,99,235,0.12);  color: #2563EB; }
.travel-train           { background: rgba(16,185,129,0.12); color: #059669; }
.travel-bus             { background: rgba(249,115,22,0.12); color: #EA580C; }
.travel-hotel           { background: rgba(124,58,237,0.12); color: #7C3AED; }
.travel-visa            { background: rgba(14,165,233,0.12); color: #0284C7; }
.travel-holiday_package { background: rgba(245,158,11,0.12); color: #D97706; }

.bg-soft-primary { background: rgba(37,99,235,0.10) !important; }

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.action-btns { display: flex; align-items: center; gap: 4px; }

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-view   { background: rgba(37,99,235,0.1);  color: var(--brand-blue); }
.btn-view:hover { background: var(--brand-blue); color: #fff; }
.btn-edit   { background: rgba(245,158,11,0.1); color: var(--brand-gold); }
.btn-edit:hover { background: var(--brand-gold); color: #fff; }
.btn-delete { background: rgba(239,68,68,0.1);  color: #EF4444; }
.btn-delete:hover { background: #EF4444; color: #fff; }
.btn-success { background: rgba(16,185,129,0.1); color: #10B981; }
.btn-success:hover { background: #10B981; color: #fff; }
.btn-whatsapp { background: rgba(37,211,102,0.1); color: #25D366; }
.btn-whatsapp:hover { background: #25D366; color: #fff; }

/* ============================================================
   PRIMARY BUTTON — GLOW
   ============================================================ */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), #1d4ed8) !important;
    border: none !important;
    box-shadow: var(--shadow-blue) !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    letter-spacing: 0.2px;
    transition: all var(--transition-fast) !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    box-shadow: 0 12px 32px rgba(37,99,235,0.40) !important;
    transform: translateY(-1px) !important;
}
.btn-glow { animation: glowPulse 3s infinite; }
@keyframes glowPulse {
    0%, 100% { box-shadow: var(--shadow-blue); }
    50% { box-shadow: 0 8px 30px rgba(37,99,235,0.50); }
}

.btn-warning {
    background: linear-gradient(135deg, var(--brand-gold), #d97706) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
}

.btn-outline-primary { border-radius: 12px !important; }
.btn-outline-secondary { border-radius: 12px !important; }
.btn-outline-warning { border-radius: 12px !important; }
.btn-outline-success { border-radius: 12px !important; }
.btn-outline-danger { border-radius: 12px !important; }
.btn-light { border-radius: 12px !important; }

/* ============================================================
   FORMS - Premium Glassmorphism
   ============================================================ */
.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: var(--bg-surface);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.form-control::placeholder { color: var(--text-muted); }

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-floating > .form-control {
    padding: 14px 16px;
    height: 52px;
}

.form-floating > label {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--brand-blue);
    font-weight: 600;
}
.form-floating label { color: var(--text-muted); }

/* Travel Type Selector */
.travel-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.travel-type-opt input[type="radio"] { display: none; }

.travel-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--bg-input);
    min-width: 76px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
}

.travel-type-card i { font-size: 18px; color: var(--text-muted); }
.travel-type-card:hover { border-color: var(--brand-blue); background: var(--brand-blue-light); color: var(--brand-blue); }
.travel-type-card:hover i { color: var(--brand-blue); }

.travel-type-opt input:checked + .travel-type-card {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 600;
}
.travel-type-opt input:checked + .travel-type-card i { color: var(--brand-blue); }

/* Due Calc Box */
.due-calc-box {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px;
}

.due-calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    padding: 4px 0;
    color: var(--text-secondary);
}

.due-calc-total {
    border-top: 1px solid var(--border-color);
    margin-top: 8px;
    padding-top: 8px;
    font-weight: 700;
    font-size: 14px;
}

/* ============================================================
   DASHBOARD SPECIFIC
   ============================================================ */
.pending-list { padding: 4px 0; }
.pending-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.pending-item:last-child { border-bottom: none; }
.pending-item:hover { background: var(--bg-hover); }

.pending-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.pending-item-link:hover .pending-item {
    background: var(--bg-hover);
}
.pending-customer { font-size: 13px; font-weight: 500; color: var(--text-primary); display: block; }
.pending-ref { font-size: 11px; color: var(--text-muted); display: block; }
.due-amount { font-size: 14px; font-weight: 700; color: var(--color-unpaid); }

/* Agent List */
.agent-list { padding: 4px 0; }
.agent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.agent-item:last-child { border-bottom: none; }
.agent-item:hover { background: var(--bg-hover); }

.agent-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.agent-item-link:hover .agent-item {
    background: var(--bg-hover);
}

.agent-rank {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rank-1 { background: rgba(245,158,11,0.2); color: var(--brand-gold); }
.rank-2 { background: rgba(148,163,184,0.2); color: #64748b; }
.rank-3 { background: rgba(249,115,22,0.2); color: #F97316; }
.rank-4, .rank-5 { background: var(--bg-hover); color: var(--text-muted); }

.agent-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-blue), #7C3AED);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}
.agent-info { flex: 1; min-width: 0; }
.agent-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-company { font-size: 11px; color: var(--text-muted); display: block; }
.agent-stats { text-align: right; }
.agent-sales { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.agent-bookings { font-size: 11px; color: var(--text-muted); }

/* Transaction List */
.txn-list { padding: 4px 0; }
.txn-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}
.txn-item:last-child { border-bottom: none; }
.txn-item:hover { background: var(--bg-hover); }

.txn-icon {
    width: 36px;
    height: 36px;
    background: rgba(16,185,129,0.12);
    color: #10B981;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.txn-info { flex: 1; min-width: 0; }
.txn-name { font-size: 13px; font-weight: 500; color: var(--text-primary); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-ref { font-size: 11px; color: var(--text-muted); display: block; }
.txn-amount { font-size: 14px; font-weight: 700; color: #10B981; white-space: nowrap; }

/* ============================================================
   PAYMENT TIMELINE (Booking View)
   ============================================================ */
.payment-timeline { position: relative; padding-left: 24px; }
.payment-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    border-radius: 2px;
}

.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--brand-blue);
    border-radius: 50%;
    border: 3px solid var(--bg-surface);
    box-shadow: 0 0 0 2px var(--brand-blue);
}

.timeline-content {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.timeline-title { font-weight: 600; font-size: 13px; }
.timeline-amount { font-weight: 700; font-size: 15px; color: #10B981; }
.timeline-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; }
.timeline-balance { font-size: 12px; color: var(--text-muted); }

/* Payment Summary Box */
.payment-summary-box { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; }
.ps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.ps-row:last-child { border-bottom: none; }
.ps-divider { border-top: 2px solid var(--border-color); margin: 4px 0; }

/* Detail Fields (view pages) */
.detail-field { margin-bottom: 0; }
.detail-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.detail-field span { font-size: 14px; color: var(--text-primary); font-weight: 500; }

.agent-detail-list { padding: 16px 20px; }
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 12px; color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.detail-value { font-size: 13px; color: var(--text-primary); font-weight: 500; text-align: right; }

/* ============================================================
   AGENT AVATAR (small, table)
   ============================================================ */
.agent-avatar-sm {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--brand-blue), #7C3AED);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

/* ============================================================
   FILTER TABS
   ============================================================/* Travel Type Selector - Premium */
.travel-type-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.travel-type-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
}

.travel-type-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: rgba(37,99,235,0.05);
}

.travel-type-btn.active {
    border-color: var(--brand-blue);
    background: rgba(37,99,235,0.12);
    color: var(--brand-blue);
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.travel-type-btn i {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tab {
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.filter-tab:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.filter-tab.active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }

/* ============================================================
   RT TABS
   ============================================================ */
.rt-tabs { border-bottom: 2px solid var(--border-color); }
.rt-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: -2px;
    border-radius: 0;
    transition: all var(--transition-fast);
}
.rt-tabs .nav-link:hover { color: var(--brand-blue); }
.rt-tabs .nav-link.active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); font-weight: 600; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.brand-logo-img {
    width: 40px;
    height: auto;
    object-fit: contain;
}

.sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

/* ============================================================
   MODAL
   ============================================================ */
.rt-modal {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}
.rt-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}
.rt-modal .modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
}
.rt-modal .modal-body { padding: 20px; }
.rt-modal .modal-title { font-size: 15px; font-weight: 600; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.rt-toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
    cursor: pointer;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);   opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

.rt-toast.hide { animation: slideOut 0.3s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-success .toast-icon { color: #10B981; }
.toast-error   .toast-icon { color: #EF4444; }
.toast-warning .toast-icon { color: var(--brand-gold); }
.toast-info    .toast-icon { color: var(--brand-blue); }
.toast-text { font-size: 13px; font-weight: 500; color: var(--text-primary); flex: 1; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page transition */
.page-transition {
    animation: pageFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Card hover lift */
.card-lift {
    transition: transform var(--transition), box-shadow var(--transition);
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Button press effect */
.btn:active {
    transform: scale(0.97);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fade in animation for dynamic content */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide in from right */
.slide-in-right {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scale in animation */
.scale-in {
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Pulse animation for notifications */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   LOADING SKELETONS - Enterprise Design
   ============================================================ */
.skeleton {
    background: linear-gradient(90deg, #F8F9FC 25%, #E2E8F0 50%, #F8F9FC 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--border-radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    height: 120px;
    border-radius: 18px;
}

.skeleton-kpi {
    height: 140px;
    border-radius: 18px;
}

.skeleton-chart {
    height: 300px;
    border-radius: 18px;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text-sm {
    height: 12px;
    width: 60%;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.skeleton-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text-sm { height: 12px; }
.skeleton-text-lg { height: 24px; }
.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--border-radius-lg);
}

.skeleton-row {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
}

.skeleton-btn {
    height: 48px;
    border-radius: 14px;
    width: 100%;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    animation: logo-pulse 2s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.9; }
}

.loading-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.loading-subtext {
    font-size: 14px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--brand-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   LOGIN PAGE - Premium Design
   ============================================================ */
:root {
    --navy-blue: #0F172A;
    --royal-blue: #2563EB;
    --gold: #D4AF37;
    --gold-light: #E8C86E;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --text-dark: #1E293B;
    --text-muted: #64748B;
}

.login-body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Poppins', 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--navy-blue) 0%, #1E3A8A 50%, var(--navy-blue) 100%);
    position: relative;
}

.login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="30" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/><circle cx="50" cy="50" r="20" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100% 100%, 100% 100%, 200px 200px;
    pointer-events: none;
    z-index: 0;
}

.login-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: float linear infinite;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-20px) scale(1); opacity: 0; }
}

.login-wrapper {
    min-height: 100vh;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: row;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-left {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 138, 0.88) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 45%;
    flex-shrink: 0;
    border-right: 1px solid rgba(212, 175, 55, 0.15);
}

.travel-illustration {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.illustration-bg {
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        linear-gradient(225deg, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><defs><linearGradient id="sky" x1="0%" y1="0%" x2="0%" y2="100%"><stop offset="0%" style="stop-color:%23E0F4FF;stop-opacity:0.3"/><stop offset="100%" style="stop-color:%23B8E6FF;stop-opacity:0.2"/></linearGradient></defs><rect fill="url(%23sky)" width="800" height="600"/><ellipse cx="100" cy="100" rx="60" ry="40" fill="rgba(255,255,255,0.15)"/><ellipse cx="200" cy="80" rx="40" ry="25" fill="rgba(255,255,255,0.12)"/><ellipse cx="600" cy="120" rx="50" ry="30" fill="rgba(255,255,255,0.1)"/><path d="M0 400 Q200 350 400 380 T800 360 V600 H0 Z" fill="rgba(30,58,138,0.15)"/><path d="M0 450 Q300 400 500 430 T800 410 V600 H0 Z" fill="rgba(15,23,42,0.2)"/><rect x="50" y="320" width="80" height="120" fill="rgba(37,99,235,0.1)" rx="4"/><rect x="60" y="330" width="20" height="15" fill="rgba(37,99,235,0.15)"/><rect x="90" y="330" width="20" height="15" fill="rgba(37,99,235,0.15)"/><rect x="60" y="360" width="20" height="15" fill="rgba(37,99,235,0.15)"/><rect x="90" y="360" width="20" height="15" fill="rgba(37,99,235,0.15)"/><rect x="60" y="390" width="20" height="15" fill="rgba(37,99,235,0.15)"/><rect x="90" y="390" width="20" height="15" fill="rgba(37,99,235,0.15)"/><rect x="150" y="350" width="100" height="90" fill="rgba(37,99,235,0.08)" rx="4"/><rect x="160" y="360" width="25" height="20" fill="rgba(37,99,235,0.12)"/><rect x="195" y="360" width="25" height="20" fill="rgba(37,99,235,0.12)"/><rect x="160" y="390" width="25" height="20" fill="rgba(37,99,235,0.12)"/><rect x="195" y="390" width="25" height="20" fill="rgba(37,99,235,0.12)"/><rect x="300" y="380" width="120" height="100" fill="rgba(37,99,235,0.06)" rx="4"/><rect x="550" y="340" width="90" height="110" fill="rgba(37,99,235,0.07)" rx="4"/><path d="M400 200 L420 180 L440 200 L420 220 Z" fill="rgba(212,175,55,0.15)"/><path d="M380 220 L400 200 L420 220 L400 240 Z" fill="rgba(212,175,55,0.12)"/><circle cx="650" cy="180" r="30" fill="rgba(255,255,255,0.08)"/><circle cx="700" cy="200" r="20" fill="rgba(255,255,255,0.06)"/><path d="M100 250 Q150 230 200 250 T300 240" stroke="rgba(37,99,235,0.2)" stroke-width="2" fill="none" stroke-dasharray="5,5"/><circle cx="100" cy="250" r="4" fill="rgba(212,175,55,0.3)"/><circle cx="200" cy="250" r="4" fill="rgba(212,175,55,0.25)"/><circle cx="300" cy="240" r="4" fill="rgba(212,175,55,0.2)"/></svg>');
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--white);
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.brand-logo {
    width: 220px;
    height: 220px;
    max-width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 30px rgba(212, 175, 55, 0.4));
    border-radius: 50%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.brand-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.3));
}

.brand-tagline {
    font-size: 18px;
    color: var(--gold);
    margin-bottom: 48px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.15);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--white);
    box-shadow: 0 3px 12px rgba(37, 99, 235, 0.25);
}

.feature-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    text-align: center;
}

.brand-footer {
    margin-top: 48px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0;
}

.brand-footer .powered-by {
    font-size: 11px;
    color: var(--gold);
    font-weight: 500;
}

.brand-footer .powered-by a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.brand-footer .powered-by a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.login-right {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    min-height: 100vh;
    width: 55%;
    flex: 1;
    position: relative;
}

.login-right::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 48px;
    width: 100%;
    max-width: 480px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    animation: cardSlide 0.6s ease-out 0.2s both;
}

@keyframes cardSlide {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.login-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy-blue);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    font-size: 18px;
    color: var(--text-muted);
    z-index: 2;
}

.input-wrapper .form-control {
    padding-left: 48px;
    padding-right: 48px;
    height: 52px;
    border: 2px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
}

.input-wrapper .form-control:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.input-wrapper .form-control::placeholder {
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 2;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--royal-blue);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--royal-blue);
    cursor: pointer;
}

.remember-me label {
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.forgot-password {
    font-size: 14px;
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--navy-blue);
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, #1E40AF 100%);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    margin-bottom: 24px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1E40AF 0%, var(--navy-blue) 100%);
}

.login-btn:active {
    transform: translateY(0);
}

.register-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.register-link p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.register-link a {
    color: var(--royal-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover {
    color: var(--navy-blue);
    text-decoration: underline;
}

.login-footer {
    text-align: center;
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid #E2E8F0;
}

.login-footer p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 4px 0;
}

.login-footer .powered-by {
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
}

.login-footer .powered-by a {
    color: var(--royal-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer .powered-by a:hover {
    color: var(--navy-blue);
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 1440px) {
    .login-left {
        padding: 48px 32px;
    }
    
    .login-right {
        padding: 48px 32px;
    }
    
    .login-card {
        padding: 40px 32px;
    }
}

@media (max-width: 1366px) {
    .login-left {
        padding: 40px 28px;
    }
    
    .login-right {
        padding: 40px 28px;
    }
    
    .login-card {
        padding: 36px 28px;
    }
}

@media (max-width: 1280px) {
    .login-left {
        padding: 36px 24px;
    }
    
    .login-right {
        padding: 36px 24px;
    }
    
    .login-card {
        padding: 32px 24px;
    }
}

@media (max-width: 1024px) {
    .login-left {
        padding: 32px 20px;
    }
    
    .login-right {
        padding: 32px 20px;
    }
    
    .login-card {
        padding: 28px 20px;
    }
}

@media (max-width: 991px) {
    .login-wrapper {
        flex-direction: column;
    }
    
    .login-left {
        display: none;
    }
    
    .login-right {
        width: 100%;
        padding: 40px 24px;
    }
    
    .login-card {
        padding: 36px 28px;
        max-width: 450px;
    }
    
    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .login-right {
        padding: 32px 20px;
    }
    
    .login-card {
        padding: 32px 24px;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 26px;
    }
    
    .login-card-header {
        margin-bottom: 28px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .login-right {
        padding: 28px 18px;
    }
    
    .login-card {
        padding: 28px 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 24px 16px;
    }
    
    .login-card {
        padding: 24px 18px;
    }
    
    .login-title {
        font-size: 22px;
    }
    
    .login-subtitle {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .login-right {
        padding: 20px 14px;
    }
    
    .login-card {
        padding: 20px 16px;
    }
    
    .login-title {
        font-size: 20px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .login-right {
        padding: 16px 12px;
    }
    
    .login-card {
        padding: 18px 14px;
    }
    
    .login-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    @page {
        size: A4;
        margin: 15mm 15mm 15mm 15mm;
    }

    body {
        background: #fff !important;
        font-size: 11pt;
        line-height: 1.4;
    }

    .sidebar, .top-header, .page-actions, .no-print, .action-btns, .dt-table_wrapper .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info { display: none !important; }
    .main-content { margin-left: 0 !important; margin-top: 0 !important; }
    .page-content { padding: 0 !important; }
    .page-header { display: none !important; }
    .back-btn { display: none !important; }

    .data-card, .stat-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
        margin-bottom: 16px !important;
        page-break-inside: avoid;
    }

    .print-header {
        display: flex !important;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0 20px;
        border-bottom: 3px solid #2563EB;
        margin-bottom: 20px;
    }

    .print-brand-logo {
        max-width: 150px;
        height: auto;
        margin-bottom: 10px;
    }

    .print-brand h2 {
        font-size: 24pt;
        font-weight: 800;
        color: #000;
        margin: 0 0 4px 0;
    }

    .print-brand p {
        font-size: 10pt;
        color: #555;
        margin: 2px 0;
    }

    .print-ref h3 {
        font-size: 16pt;
        font-weight: 700;
        text-align: right;
        margin: 0 0 4px 0;
        color: #2563EB;
    }

    .print-ref p {
        font-size: 9pt;
        font-weight: 600;
        color: #666;
        text-align: right;
        margin: 2px 0;
    }

    /* Table styles for print */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 9pt;
    }

    th, td {
        border: 1px solid #ddd !important;
        padding: 6px 8px !important;
        text-align: left !important;
    }

    th {
        background-color: #f5f5f5 !important;
        font-weight: 700 !important;
        color: #000 !important;
    }

    .table-responsive {
        overflow: visible !important;
    }

    /* Stat cards in print */
    .stat-card {
        display: inline-block !important;
        width: 23% !important;
        margin-right: 1% !important;
        vertical-align: top;
        border: 1px solid #ddd !important;
        padding: 12px !important;
    }

    .stat-icon {
        display: none !important;
    }

    .stat-value {
        font-size: 14pt !important;
        font-weight: 700 !important;
    }

    /* Footer with page numbers */
    @page {
        @bottom-center {
            content: "Page " counter(page) " of " counter(pages);
            font-size: 9pt;
            color: #666;
        }
    }

    /* Prevent page breaks inside important elements */
    .data-card, .stat-card, table, tr {
        page-break-inside: avoid;
    }

    /* Hide links in print */
    a {
        text-decoration: none !important;
        color: #000 !important;
    }

    /* Status badges in print */
    .status-badge, .travel-badge {
        border: 1px solid #ddd !important;
        background: #f5f5f5 !important;
        color: #000 !important;
        padding: 2px 6px !important;
        font-size: 8pt !important;
    }
}

/* ============================================================
   RESPONSIVE - Enterprise Design for All Devices
   ============================================================ */

/* Prevent horizontal overflow globally */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

* {
    max-width: 100%;
}

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
    .page-content { padding: 32px 40px 48px; }
    .kpi-card { padding: 32px; }
    .kpi-value { font-size: 40px; }
    .data-card-header { padding: 24px 28px; }
    .card-body-pad { padding: 28px; }
}

/* Desktop (1600px - 1919px) */
@media (max-width: 1919.98px) and (min-width: 1600px) {
    .page-content { padding: 28px 32px 40px; }
    .kpi-card { padding: 28px; }
    .kpi-value { font-size: 36px; }
}

/* Desktop (1440px - 1599px) */
@media (max-width: 1599.98px) and (min-width: 1440px) {
    .page-content { padding: 24px 28px 40px; }
    .kpi-card { padding: 24px; }
    .kpi-value { font-size: 32px; }
}

/* Desktop (1366px - 1439px) */
@media (max-width: 1439.98px) and (min-width: 1366px) {
    .page-content { padding: 24px 24px 36px; }
    .kpi-card { padding: 24px; }
    .kpi-value { font-size: 30px; }
}

/* Desktop (1280px - 1365px) */
@media (max-width: 1365.98px) and (min-width: 1280px) {
    .page-content { padding: 20px 24px 36px; }
    .kpi-card { padding: 20px; }
    .kpi-value { font-size: 28px; }
}

/* Laptop (1024px - 1279px) */
@media (max-width: 1279.98px) and (min-width: 1024px) {
    .page-content { padding: 20px 20px 32px; }
    .kpi-card { padding: 20px; }
    .kpi-value { font-size: 26px; }
    .header-search { width: 240px; }
    .header-search:focus { width: 280px; }
}

/* Tablet Landscape (992px - 1023px) */
@media (max-width: 1023.98px) and (min-width: 992px) {
    .page-content { padding: 18px 18px 28px; }
    .kpi-card { padding: 18px; }
    .kpi-value { font-size: 24px; }
    .header-search { width: 200px; }
    .header-search:focus { width: 240px; }
}

/* Tablet (768px - 991px) */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }
    .sidebar-overlay.show { display: block; }
    .main-content { margin-left: 0; }
    .page-content { padding: 16px 16px 24px; }

    .kpi-card { margin-bottom: 16px; }
    .kpi-value { font-size: 24px; }
    .chart-card { margin-bottom: 20px; }

    /* Dashboard cards - 2 columns on tablet */
    .row > .col-lg-3,
    .row > .col-lg-4 {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }

    .header-search { display: none; }
    .top-header { padding: 0 16px; }
    .profile-info { display: none; }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767.98px) and (min-width: 600px) {
    .page-title { font-size: 22px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    .page-actions { width: 100%; flex-wrap: wrap; }
    .page-actions .btn { flex: 1; min-width: 120px; }

    .kpi-card { margin-bottom: 16px; }
    .kpi-value { font-size: 22px; }
    .kpi-icon { width: 48px; height: 48px; font-size: 20px; }

    .data-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .data-card-header .btn { width: 100%; }

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

    /* Dashboard cards - 2 columns */
    .row > .col-lg-3,
    .row > .col-lg-4,
    .row > .col-md-6 {
        flex: 0 0 calc(50% - 8px);
        max-width: calc(50% - 8px);
    }
}

/* Mobile Large (480px - 599px) */
@media (max-width: 599.98px) and (min-width: 480px) {
    :root {
        --sidebar-width: 280px;
        --sidebar-collapsed: 0;
    }

    .sidebar { width: 280px; }
    .sidebar.collapsed { width: 280px; }
    .sidebar.collapsed + .main-content { margin-left: 0; }

    .page-content { padding: 14px 14px 20px; }
    .page-title { font-size: 20px; }
    .page-subtitle { font-size: 13px; }

    .stat-card { height: 100px; padding: 12px 14px 0; }
    .stat-icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-value { font-size: 18px; }

    .kpi-card { padding: 16px; }
    .kpi-value { font-size: 22px; }
    .kpi-label { font-size: 12px; }

    .data-card { border-radius: var(--border-radius); }
    .data-card-header { padding: 14px; flex-direction: column; align-items: flex-start; gap: 12px; }
    .data-card-title { font-size: 14px; }
    .card-body-pad { padding: 14px; }

    .table-actions { width: 100%; flex-direction: column; gap: 12px; }
    .table-search { width: 100%; }

    .filter-tabs { width: 100%; overflow-x: auto; }
    .filter-tab { padding: 8px 12px; font-size: 12px; white-space: nowrap; }

    .empty-state { padding: 40px 16px; }
    .empty-icon { width: 60px; height: 60px; font-size: 28px; }

    .chart-card { padding: 16px; }
    .chart-title { font-size: 14px; }

    .rt-table { font-size: 13px; }
    .rt-table th, .rt-table td { padding: 10px 8px; }

    .table-footer { flex-direction: column; gap: 12px; }
    div.dataTables_wrapper div.dataTables_paginate { justify-content: center; }

    .btn { padding: 10px 16px; font-size: 13px; }
    .btn-lg { padding: 12px 20px; font-size: 14px; }

    .form-control { padding: 10px 14px; font-size: 14px; }
    .form-floating > .form-control { height: 48px; }
    .form-floating > label { padding: 12px 14px; font-size: 12px; }

    .top-header { height: 64px; }
    .sidebar-toggle { width: 36px; height: 36px; }
    .sidebar-toggle i { font-size: 18px; }

    /* Dashboard cards - 1 column */
    .row > .col-lg-3,
    .row > .col-lg-4,
    .row > .col-md-6,
    .row > .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Forms - single column */
    .row > .col-md-6,
    .row > .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Mobile Medium (430px - 479px) */
@media (max-width: 479.98px) and (min-width: 430px) {
    .page-content { padding: 12px 12px 18px; }
    .kpi-card { padding: 14px; }
    .kpi-value { font-size: 20px; }
    .kpi-label { font-size: 11px; }

    .data-card-header { padding: 12px; }
    .card-body-pad { padding: 12px; }

    .btn { padding: 8px 14px; font-size: 12px; }
    .form-control { padding: 8px 12px; font-size: 13px; }

    .rt-table { font-size: 12px; }
    .rt-table th, .rt-table td { padding: 8px 6px; }
}

/* Mobile Small (390px - 429px) */
@media (max-width: 429.98px) and (min-width: 390px) {
    .page-content { padding: 12px 10px 16px; }
    .kpi-card { padding: 12px; }
    .kpi-value { font-size: 18px; }

    .data-card-header { padding: 10px; }
    .card-body-pad { padding: 10px; }

    .btn { padding: 8px 12px; font-size: 12px; }
    .form-control { padding: 8px 10px; font-size: 12px; }
}

/* Mobile Extra Small (375px - 389px) */
@media (max-width: 389.98px) and (min-width: 375px) {
    .page-content { padding: 10px 8px 16px; }
    .kpi-card { padding: 12px; }
    .kpi-value { font-size: 18px; }

    .page-title { font-size: 18px; }
    .brand-name { font-size: 14px; }
}

/* Mobile Minimum (360px - 374px) */
@media (max-width: 374.98px) {
    .page-content { padding: 10px 8px 14px; }
    .kpi-card { padding: 10px; }
    .kpi-value { font-size: 16px; }

    .page-title { font-size: 18px; }
    .brand-name { font-size: 13px; }

    .btn { padding: 6px 10px; font-size: 11px; }
    .form-control { padding: 8px 10px; font-size: 12px; }
}

/* Extra Small Devices (< 360px) */
@media (max-width: 359.98px) {
    .page-content { padding: 8px 6px 12px; }
    .kpi-card { padding: 8px; }
    .kpi-value { font-size: 14px; }

    .page-title { font-size: 16px; }
    .brand-name { font-size: 12px; }
}

/* Large Desktop (> 1400px) */
@media (min-width: 1400px) {
    .page-content { padding: 32px 32px 48px; }
    .kpi-card { padding: 28px; }
    .kpi-header { margin-bottom: 24px; }
    .kpi-icon { width: 60px; height: 60px; font-size: 26px; }
    .kpi-value { font-size: 36px; }
    .kpi-label { font-size: 14px; }
    .kpi-comparison { padding-top: 20px; }

    .data-card-header { padding: 20px 24px; }
    .card-body-pad { padding: 24px; }

    .chart-card { padding: 28px; }
    .chart-card-header { margin-bottom: 24px; }
}

/* Collapsed sidebar (desktop toggle) */
.sidebar.collapsed { width: var(--sidebar-collapsed); }
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-footer .su-info,
.sidebar.collapsed .sidebar-footer .su-logout,
.sidebar.collapsed .nav-badge { display: none; }
.sidebar.collapsed + .main-content { margin-left: var(--sidebar-collapsed); }
.sidebar.collapsed .brand-logo { justify-content: center; margin-bottom: 0; }
.sidebar.collapsed .sidebar-brand { padding: 16px 0; justify-content: center; }
.sidebar.collapsed .nav-item { justify-content: center; padding: 12px; }
.sidebar.collapsed .nav-icon { width: auto; }
.sidebar.collapsed .sidebar-user { justify-content: center; }
.sidebar.collapsed .su-avatar { margin: 0 auto; }
