/* Rahul Travels — Customer portal light / dark theme tokens */

:root,
html[data-theme="light"] {
    --rt-maroon: #7a1818;
    --rt-orange: #d2691e;
    --rt-gold: #c4891a;
    --rt-ink: #1a1210;
    --rt-muted: #5c534f;
    --rt-body-bg: #f3eeea;
    --rt-panel-bg: linear-gradient(180deg, #faf8f6 0%, #f3eeea 100%);
    --rt-glass-bg: rgba(255, 255, 255, 0.82);
    --rt-glass-border: rgba(122, 24, 24, 0.1);
    --rt-glass-shadow: 0 24px 64px rgba(26, 18, 16, 0.12);
    --rt-input-bg: rgba(255, 255, 255, 0.95);
    --rt-input-border: rgba(122, 24, 24, 0.18);
    --rt-card-text: #1a1210;
    --rt-alert-danger-bg: rgba(220, 53, 69, 0.1);
    --rt-alert-danger-text: #842029;
    --rt-alert-danger-border: rgba(220, 53, 69, 0.28);
    --rt-topbar-bg: rgba(255, 255, 255, 0.88);
    --rt-topbar-border: rgba(122, 24, 24, 0.08);
    --rt-dashboard-glass: rgba(255, 255, 255, 0.82);
    --rt-table-row-bg: rgba(255, 255, 255, 0.92);
    --rt-bg-image: url('/images/customer-portal/customer-portal-hero-light.png');
    --rt-toggle-bg: rgba(255, 255, 255, 0.9);
    --rt-toggle-border: rgba(122, 24, 24, 0.15);
    --rt-toggle-color: #7a1818;
}

html[data-theme="dark"] {
    --rt-maroon: #e87575;
    --rt-orange: #f0a060;
    --rt-gold: #f0c060;
    --rt-ink: #f5f0eb;
    --rt-muted: #b8aea8;
    --rt-body-bg: #0f0a0a;
    --rt-panel-bg: linear-gradient(180deg, #1a1210 0%, #120908 100%);
    --rt-glass-bg: rgba(28, 20, 18, 0.88);
    --rt-glass-border: rgba(255, 255, 255, 0.1);
    --rt-glass-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    --rt-input-bg: rgba(15, 10, 10, 0.65);
    --rt-input-border: rgba(255, 255, 255, 0.14);
    --rt-card-text: #f5f0eb;
    --rt-alert-danger-bg: rgba(220, 53, 69, 0.18);
    --rt-alert-danger-text: #ffb3bd;
    --rt-alert-danger-border: rgba(255, 107, 122, 0.35);
    --rt-topbar-bg: rgba(22, 16, 14, 0.92);
    --rt-topbar-border: rgba(255, 255, 255, 0.08);
    --rt-dashboard-glass: rgba(28, 20, 18, 0.85);
    --rt-table-row-bg: rgba(32, 24, 22, 0.92);
    --rt-bg-image: url('/images/customer-portal/customer-portal-hero-dark.png');
    --rt-toggle-bg: rgba(40, 30, 28, 0.9);
    --rt-toggle-border: rgba(255, 255, 255, 0.12);
    --rt-toggle-color: #f0c060;
}

.rt-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--rt-toggle-border);
    background: var(--rt-toggle-bg);
    color: var(--rt-toggle-color);
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.rt-theme-toggle:hover { transform: translateY(-1px); }
.rt-theme-toggle i { font-size: 0.95rem; }

/* Dashboard shared components */
html[data-theme="dark"] .glass-card {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    color: var(--rt-ink);
}

html[data-theme="dark"] .quick-link-card {
    background: rgba(40, 30, 28, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--rt-ink);
}
html[data-theme="dark"] .quick-link-card:hover {
    color: var(--rt-ink);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .quick-link-card i { color: var(--rt-gold); }
html[data-theme="dark"] .quick-link-card span { color: var(--rt-muted); }

html[data-theme="dark"] .table-theme,
html[data-theme="dark"] .table-theme td {
    color: var(--rt-ink);
    border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .table-theme thead th {
    color: var(--rt-gold);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
html[data-theme="dark"] .table-theme tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .table-theme tbody tr {
    background: var(--rt-table-row-bg);
}

html[data-theme="dark"] .empty-state-panel { color: var(--rt-muted); }
html[data-theme="dark"] .empty-state-panel h5 { color: var(--rt-ink); }
html[data-theme="dark"] .empty-state-panel i { color: var(--rt-gold); }

html[data-theme="dark"] .input-theme,
html[data-theme="dark"] .form-control,
html[data-theme="dark"] .form-select {
    background: var(--rt-input-bg);
    border-color: var(--rt-input-border);
    color: var(--rt-ink);
}
html[data-theme="dark"] .input-theme::placeholder,
html[data-theme="dark"] .form-control::placeholder {
    color: rgba(184, 174, 168, 0.65);
}

html[data-theme="dark"] .profile-header-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cancel-preview-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--rt-ink);
}

html[data-theme="dark"] .booking-filters .nav-link {
    color: var(--rt-gold);
    border-color: rgba(255, 255, 255, 0.15);
}
html[data-theme="dark"] .booking-filters .nav-link.active {
    background: var(--rt-maroon);
    color: #fff;
}

html[data-theme="dark"] .booking-action-modify {
    background: rgba(232, 117, 117, 0.1);
    color: #ffb3b3;
    border-color: rgba(232, 117, 117, 0.35);
}
html[data-theme="dark"] .booking-action-modify:hover {
    background: #9b2323;
    color: #fff;
}

html[data-theme="dark"] .flash-success {
    background: rgba(25, 135, 84, 0.15);
    border-color: rgba(25, 135, 84, 0.35);
    color: #75d9a3;
}

html[data-theme="dark"] .dataTables_wrapper .dataTables_length,
html[data-theme="dark"] .dataTables_wrapper .dataTables_filter,
html[data-theme="dark"] .dataTables_wrapper .dataTables_info,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate {
    color: var(--rt-muted);
}
html[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
html[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
    background: var(--rt-input-bg);
    border: 1px solid var(--rt-input-border);
    color: var(--rt-ink);
    border-radius: 8px;
    padding: 4px 8px;
}
html[data-theme="dark"] .page-link {
    background: rgba(40, 30, 28, 0.9);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--rt-ink);
}
html[data-theme="dark"] .page-item.active .page-link {
    background: var(--rt-maroon);
    border-color: var(--rt-maroon);
}

html[data-theme="light"] .table-theme tbody tr {
    background: var(--rt-table-row-bg);
}
html[data-theme="light"] .table-theme thead th {
    color: var(--rt-ink);
}

@media (max-width: 576px) {
    html[data-theme="dark"] .table-theme tbody tr {
        background: rgba(32, 24, 22, 0.95);
        border-color: rgba(255, 255, 255, 0.08);
    }
}
