/* ══════════════════════════════════════════════════════════════════════════════
   PREMIUM ENTERPRISE DARK MODE SYSTEM (LUXE & GARDENS)
   100% Comprehensive Dark Mode Rule Set - Zero Light Leaks Across All Pages
   ══════════════════════════════════════════════════════════════════════════════ */

/* Core Theme Tokens & CSS Variables Override — values mirror static/css/theme.css;
   change together. */
html[data-bs-theme="dark"],
html.dark-mode,
body.dark-mode,
.dark-mode,
[data-bs-theme="dark"] body {
    --pms-bg: #0b0e14 !important;
    --pms-card: #131826 !important;
    --pms-card-bg: #131826 !important;
    --pms-card-inner: #1b2233 !important;
    --pms-border: rgba(148, 163, 184, 0.14) !important;
    --pms-border-light: rgba(148, 163, 184, 0.08) !important;
    --pms-text: #eef2f8 !important;
    --pms-text-main: #eef2f8 !important;
    --pms-text-secondary: #b6c2d6 !important;
    --pms-text-muted: #8a97ad !important;
    --pms-accent: #60a5fa !important;
    --pms-accent-contrast: #081018 !important;
    --pms-accent-soft: rgba(96, 165, 250, 0.12) !important;
    --pms-input-bg: #0e1420 !important;
    /* Pages define light-only --pms-primary/--pms-primary-light in their own :root;
       these higher-specificity overrides keep selected tiles/pills readable in dark. */
    --pms-primary: #60a5fa !important;
    --pms-primary-light: rgba(96, 165, 250, 0.14) !important;

    background-color: var(--pms-bg) !important;
    color: var(--pms-text) !important;
}

/* Page Layout Wrappers */
html[data-bs-theme="dark"] #layout-wrapper,
html[data-bs-theme="dark"] .main-content,
html[data-bs-theme="dark"] .page-content,
html[data-bs-theme="dark"] .content-body,
body.dark-mode #layout-wrapper,
body.dark-mode .main-content,
body.dark-mode .page-content,
body.dark-mode .content-body,
.dark-mode #layout-wrapper,
.dark-mode .main-content,
.dark-mode .page-content,
.dark-mode .content-body {
    background-color: var(--pms-bg) !important;
    color: var(--pms-text) !important;
}

/* Topbar Header & Sidebar */
html[data-bs-theme="dark"] #page-topbar,
html[data-bs-theme="dark"] .navbar-header,
html[data-bs-theme="dark"] .topbar-user-btn,
body.dark-mode #page-topbar,
body.dark-mode .navbar-header,
body.dark-mode .topbar-user-btn,
.dark-mode #page-topbar,
.dark-mode .navbar-header,
.dark-mode .topbar-user-btn {
    background-color: var(--pms-card) !important;
    border-bottom: 1px solid var(--pms-border) !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .app-menu,
html[data-bs-theme="dark"] .navbar-menu,
body.dark-mode .app-menu,
body.dark-mode .navbar-menu,
.dark-mode .app-menu,
.dark-mode .navbar-menu {
    /* `background` shorthand, not background-color — the Velzon build paints the
       sidebar with a background-image gradient that a color alone can't cover. */
    background: var(--pms-bg) !important;
    border-right: 1px solid var(--pms-border) !important;
}

/* The sidebar footer paints itself with the Velzon menu blue — repaint to match
   the dark sidebar above. */
html[data-bs-theme="dark"] .pms-sidebar-footer,
body.dark-mode .pms-sidebar-footer,
.dark-mode .pms-sidebar-footer {
    background: var(--pms-bg) !important;
    border-top: 1px solid var(--pms-border) !important;
}

/* Velzon gives the topbar user pill a light bg via --vz-topbar-user-bg */
html[data-bs-theme="dark"] .topbar-user,
body.dark-mode .topbar-user,
.dark-mode .topbar-user {
    background: transparent !important;
}

html[data-bs-theme="dark"] .nav-link,
body.dark-mode .nav-link,
.dark-mode .nav-link {
    color: var(--pms-text-secondary) !important;
}

html[data-bs-theme="dark"] .nav-link:hover,
html[data-bs-theme="dark"] .nav-link.active,
body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active,
.dark-mode .nav-link:hover,
.dark-mode .nav-link.active {
    color: var(--pms-accent) !important;
    background-color: var(--pms-accent-soft) !important;
}

/* ── WALKIN BOOKING SPECIFIC FORM & SECTION CARDS (GUEST PROFILE & STAY ALLOCATION) ── */
html[data-bs-theme="dark"] .pms-section-card,
html[data-bs-theme="dark"] .pms-section-header,
html[data-bs-theme="dark"] .pms-section-body,
html[data-bs-theme="dark"] .pms-progress-tracker,
html[data-bs-theme="dark"] .pms-card,
html[data-bs-theme="dark"] .wb-card,
html[data-bs-theme="dark"] .form-card,
html[data-bs-theme="dark"] .guest-profile-card,
html[data-bs-theme="dark"] .stay-allocation-card,
html[data-bs-theme="dark"] .room-type-card,
html[data-bs-theme="dark"] .pms-form-card,
body.dark-mode .pms-section-card,
body.dark-mode .pms-section-header,
body.dark-mode .pms-section-body,
body.dark-mode .pms-progress-tracker,
body.dark-mode .pms-card,
body.dark-mode .wb-card,
body.dark-mode .form-card,
body.dark-mode .guest-profile-card,
body.dark-mode .stay-allocation-card,
body.dark-mode .room-type-card,
body.dark-mode .pms-form-card,
.dark-mode .pms-section-card,
.dark-mode .pms-section-header,
.dark-mode .pms-section-body,
.dark-mode .pms-progress-tracker,
.dark-mode .pms-card,
.dark-mode .wb-card,
.dark-mode .form-card,
.dark-mode .guest-profile-card,
.dark-mode .stay-allocation-card,
.dark-mode .room-type-card,
.dark-mode .pms-form-card {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-border) !important;
    color: var(--pms-text) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25) !important;
}

html[data-bs-theme="dark"] .form-section-title,
body.dark-mode .form-section-title,
.dark-mode .form-section-title {
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .pms-form-label,
body.dark-mode .pms-form-label,
.dark-mode .pms-form-label {
    color: var(--pms-text-muted) !important;
}

html[data-bs-theme="dark"] .pms-avatar,
body.dark-mode .pms-avatar,
.dark-mode .pms-avatar {
    background-color: var(--pms-card-inner) !important;
    color: var(--pms-accent) !important;
}

/* ── BOOKING MANAGEMENT CARDS & FILTERS ── */
html[data-bs-theme="dark"] .booking-mgmt-card,
html[data-bs-theme="dark"] .stat-widget,
html[data-bs-theme="dark"] .filter-section,
html[data-bs-theme="dark"] .filter-pills-container,
body.dark-mode .booking-mgmt-card,
body.dark-mode .stat-widget,
body.dark-mode .filter-section,
body.dark-mode .filter-pills-container,
.dark-mode .booking-mgmt-card,
.dark-mode .stat-widget,
.dark-mode .filter-section,
.dark-mode .filter-pills-container {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-border) !important;
    color: var(--pms-text) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25) !important;
}

html[data-bs-theme="dark"] .filter-pill,
body.dark-mode .filter-pill,
.dark-mode .filter-pill {
    background-color: var(--pms-card-inner) !important;
    border: 1px solid var(--pms-border) !important;
    color: var(--pms-text-muted) !important;
}

html[data-bs-theme="dark"] .filter-pill.active,
body.dark-mode .filter-pill.active,
.dark-mode .filter-pill.active {
    background-color: var(--pms-accent) !important;
    color: var(--pms-accent-contrast) !important;
}

/* ── INLINE PASTEL BACKGROUNDS (legend tiles, status chips, info strips) ─────
   Templates carry Tailwind "-50" pastels as inline styles; the blanket white-text
   rules make their labels unreadable in dark. Repaint them as inner surfaces —
   the coloured dots/borders inside keep carrying the status colour.
   NOTE: .pms-fc-booking-card rules below MUST stay after this block: event chips
   embed these hexes in --event-bg and win by source order at equal specificity. */
html[data-bs-theme="dark"] [style*="#f0f9ff" i],
html[data-bs-theme="dark"] [style*="#ecfdf5" i],
html[data-bs-theme="dark"] [style*="#f5f3ff" i],
html[data-bs-theme="dark"] [style*="#fefce8" i],
html[data-bs-theme="dark"] [style*="#fef2f2" i],
html[data-bs-theme="dark"] [style*="#eff6ff" i],
html[data-bs-theme="dark"] [style*="#fffbeb" i],
html[data-bs-theme="dark"] [style*="#fffbe6" i],
html[data-bs-theme="dark"] [style*="#f0fdf4" i],
html[data-bs-theme="dark"] [style*="#f8fafc" i],
html[data-bs-theme="dark"] [style*="#f1f5f9" i],
html[data-bs-theme="dark"] [style*="#f9fafb" i],
html[data-bs-theme="dark"] [style*="#fafbfc" i],
html[data-bs-theme="dark"] [style*="#f1f4f9" i],
body.dark-mode [style*="#f0f9ff" i],
body.dark-mode [style*="#ecfdf5" i],
body.dark-mode [style*="#f5f3ff" i],
body.dark-mode [style*="#fefce8" i],
body.dark-mode [style*="#fef2f2" i],
body.dark-mode [style*="#eff6ff" i],
body.dark-mode [style*="#fffbeb" i],
body.dark-mode [style*="#fffbe6" i],
body.dark-mode [style*="#f0fdf4" i],
body.dark-mode [style*="#f8fafc" i],
body.dark-mode [style*="#f1f5f9" i],
body.dark-mode [style*="#f9fafb" i],
body.dark-mode [style*="#fafbfc" i],
body.dark-mode [style*="#f1f4f9" i],
.dark-mode [style*="#f0f9ff" i],
.dark-mode [style*="#ecfdf5" i],
.dark-mode [style*="#f5f3ff" i],
.dark-mode [style*="#fefce8" i],
.dark-mode [style*="#fef2f2" i],
.dark-mode [style*="#eff6ff" i],
.dark-mode [style*="#fffbeb" i],
.dark-mode [style*="#fffbe6" i],
.dark-mode [style*="#f0fdf4" i],
.dark-mode [style*="#f8fafc" i],
.dark-mode [style*="#f1f5f9" i],
.dark-mode [style*="#f9fafb" i],
.dark-mode [style*="#fafbfc" i],
.dark-mode [style*="#f1f4f9" i] {
    background: var(--pms-card-inner) !important;
    border-color: var(--pms-border) !important;
}

/* ── BOOKING CALENDAR: HEATMAP & EVENT CHIPS ── */
/* Empty-occupancy blocks carry an inline light background (#F1F5F9) from JS */
html[data-bs-theme="dark"] .occ-block.occ-very-low,
body.dark-mode .occ-block.occ-very-low,
.dark-mode .occ-block.occ-very-low {
    background-color: var(--pms-card-inner) !important;
    color: var(--pms-text-muted) !important;
}

html[data-bs-theme="dark"] .pms-date-capsule.today-card,
body.dark-mode .pms-date-capsule.today-card,
.dark-mode .pms-date-capsule.today-card {
    background: var(--pms-accent-soft) !important;
    border-color: var(--pms-accent) !important;
}

html[data-bs-theme="dark"] .pms-calendar-main,
body.dark-mode .pms-calendar-main,
.dark-mode .pms-calendar-main {
    background: var(--pms-bg) !important;
}

/* FullCalendar booking chips get a pastel --event-bg inline (cream/mint) that
   turns white-on-cream in dark; re-tint from the event colour over the card. */
html[data-bs-theme="dark"] .pms-fc-booking-card,
body.dark-mode .pms-fc-booking-card,
.dark-mode .pms-fc-booking-card {
    background: color-mix(in srgb, var(--event-color, #60a5fa) 18%, var(--pms-card)) !important;
    border-color: color-mix(in srgb, var(--event-color, #60a5fa) 45%, transparent) !important;
    border-left-color: var(--event-color, #60a5fa) !important;
    color: var(--pms-text) !important;
}

/* ── BOOKING CALENDAR PAGE LIGHT-LEAK OVERRIDES ── */
html[data-bs-theme="dark"] .pms-sticky-toolbar,
body.dark-mode .pms-sticky-toolbar,
.dark-mode .pms-sticky-toolbar {
    background-color: var(--pms-bg) !important;
    background: var(--pms-bg) !important;
    border-bottom: 1px solid var(--pms-border) !important;
    backdrop-filter: blur(8px) !important;
}

html[data-bs-theme="dark"] .pms-heatmap-card,
body.dark-mode .pms-heatmap-card,
.dark-mode .pms-heatmap-card {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-border) !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .pms-timeline-container,
html[data-bs-theme="dark"] .pms-sidebar-right,
html[data-bs-theme="dark"] .pms-timeline-cell-room,
body.dark-mode .pms-timeline-container,
body.dark-mode .pms-sidebar-right,
body.dark-mode .pms-timeline-cell-room,
.dark-mode .pms-timeline-container,
.dark-mode .pms-sidebar-right,
.dark-mode .pms-timeline-cell-room {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border-color: var(--pms-border) !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .pms-timeline-header-scroll,
body.dark-mode .pms-timeline-header-scroll,
.dark-mode .pms-timeline-header-scroll {
    background: var(--pms-bg) !important;
    border-bottom: 2px solid var(--pms-border) !important;
}

html[data-bs-theme="dark"] .btn-segmented,
body.dark-mode .btn-segmented,
.dark-mode .btn-segmented {
    background-color: var(--pms-bg) !important;
    border: 1px solid var(--pms-border) !important;
}

/* ── ROOM STATUS & BOOKINGS FILTER PANELS OVERRIDES ── */
html[data-bs-theme="dark"] .fp-card,
html[data-bs-theme="dark"] .fp-head,
html[data-bs-theme="dark"] .fp-header,
html[data-bs-theme="dark"] .fp-body,
html[data-bs-theme="dark"] .filter-panel .fp-header,
html[data-bs-theme="dark"] .pms-filter-card,
html[data-bs-theme="dark"] .filter-card,
html[data-bs-theme="dark"] .filter-panel,
html[data-bs-theme="dark"] .pms-filter-box,
html[data-bs-theme="dark"] .custom-date-drawer,
body.dark-mode .fp-card,
body.dark-mode .fp-head,
body.dark-mode .fp-header,
body.dark-mode .fp-body,
body.dark-mode .filter-panel .fp-header,
body.dark-mode .pms-filter-card,
body.dark-mode .filter-card,
body.dark-mode .filter-panel,
body.dark-mode .pms-filter-box,
body.dark-mode .custom-date-drawer,
.dark-mode .fp-card,
.dark-mode .fp-head,
.dark-mode .fp-header,
.dark-mode .fp-body,
.dark-mode .filter-panel .fp-header,
.dark-mode .pms-filter-card,
.dark-mode .filter-card,
.dark-mode .filter-panel,
.dark-mode .pms-filter-box,
.dark-mode .custom-date-drawer {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-border) !important;
    color: var(--pms-text) !important;
}

/* ── HOME PAGE RECENT ACTIVITY / ARRIVALS / DEPARTURES ── */
html[data-bs-theme="dark"] .ops-panel,
html[data-bs-theme="dark"] .guest-card,
html[data-bs-theme="dark"] .pms-summary-card,
body.dark-mode .ops-panel,
body.dark-mode .guest-card,
body.dark-mode .pms-summary-card,
.dark-mode .ops-panel,
.dark-mode .guest-card,
.dark-mode .pms-summary-card {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-border) !important;
    color: var(--pms-text) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .25) !important;
}

html[data-bs-theme="dark"] .ops-panel-header,
html[data-bs-theme="dark"] .ops-panel-body,
body.dark-mode .ops-panel-header,
body.dark-mode .ops-panel-body,
.dark-mode .ops-panel-header,
.dark-mode .ops-panel-body {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .activity-item,
body.dark-mode .activity-item,
.dark-mode .activity-item {
    border-bottom: 1px solid var(--pms-border-light) !important;
}

html[data-bs-theme="dark"] .activity-item:hover,
body.dark-mode .activity-item:hover,
.dark-mode .activity-item:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

html[data-bs-theme="dark"] .activity-desc,
body.dark-mode .activity-desc,
.dark-mode .activity-desc {
    color: var(--pms-text) !important;
}

/* ── COMPLETE ELIMINATION OF ALL WHITE INLINE & CLASS BACKGROUNDS ── */
html[data-bs-theme="dark"] .bg-white,
html[data-bs-theme="dark"] .bg-light,
html[data-bs-theme="dark"] .card-header.bg-white,
html[data-bs-theme="dark"] .physical-room-selector,
html[data-bs-theme="dark"] .pms-room-checkbox-label,
html[data-bs-theme="dark"] [style*="background: #fff" i],
html[data-bs-theme="dark"] [style*="background:#fff" i],
html[data-bs-theme="dark"] [style*="background: white" i],
html[data-bs-theme="dark"] [style*="background:white" i],
html[data-bs-theme="dark"] [style*="background-color: #fff" i],
html[data-bs-theme="dark"] [style*="background-color:#fff" i],
html[data-bs-theme="dark"] [style*="background-color: white" i],
html[data-bs-theme="dark"] [style*="background-color:white" i],
body.dark-mode .bg-white,
body.dark-mode .bg-light,
body.dark-mode .card-header.bg-white,
body.dark-mode [style*="background: #fff" i],
body.dark-mode [style*="background:#fff" i],
body.dark-mode [style*="background: white" i],
body.dark-mode [style*="background:white" i],
body.dark-mode [style*="background-color: #fff" i],
body.dark-mode [style*="background-color:#fff" i],
body.dark-mode [style*="background-color: white" i],
body.dark-mode [style*="background-color:white" i],
.dark-mode .bg-white,
.dark-mode .bg-light,
.dark-mode [style*="background: #fff" i],
.dark-mode [style*="background:#fff" i],
.dark-mode [style*="background: white" i],
.dark-mode [style*="background:white" i],
.dark-mode [style*="background-color: #fff" i],
.dark-mode [style*="background-color:#fff" i],
.dark-mode [style*="background-color: white" i],
.dark-mode [style*="background-color:white" i] {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    color: var(--pms-text) !important;
    border-color: var(--pms-border) !important;
}

/* ── CARDS, PANELS, MODALS & TABLES ── */
html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .pms-card,
html[data-bs-theme="dark"] .rd-card,
html[data-bs-theme="dark"] .kpi-card,
body.dark-mode .card,
body.dark-mode .pms-card,
body.dark-mode .rd-card,
body.dark-mode .kpi-card,
.dark-mode .card,
.dark-mode .pms-card,
.dark-mode .rd-card,
.dark-mode .kpi-card {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-border) !important;
    border-radius: 12px !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .card-footer,
body.dark-mode .card-header,
body.dark-mode .card-footer,
.dark-mode .card-header,
.dark-mode .card-footer {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border-color: var(--pms-border) !important;
    color: var(--pms-text) !important;
}

/* Headings & Text */
html[data-bs-theme="dark"] h1, html[data-bs-theme="dark"] h2, html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4, html[data-bs-theme="dark"] h5, html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] .fw-bold, html[data-bs-theme="dark"] .fw-semibold,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode .fw-bold, body.dark-mode .fw-semibold,
.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6,
.dark-mode .fw-bold, .dark-mode .fw-semibold {
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .text-secondary,
body.dark-mode .text-muted,
body.dark-mode .text-secondary,
.dark-mode .text-muted,
.dark-mode .text-secondary {
    color: var(--pms-text-muted) !important;
}

html[data-bs-theme="dark"] .text-dark,
body.dark-mode .text-dark,
.dark-mode .text-dark {
    color: var(--pms-text) !important;
}

/* Forms & Text Controls */
html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] textarea,
html[data-bs-theme="dark"] .input-group-text,
body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode textarea,
body.dark-mode .input-group-text,
.dark-mode .form-control,
.dark-mode .form-select,
.dark-mode textarea,
.dark-mode .input-group-text {
    /* background-color only. The `background:` shorthand that used to sit here
       expanded to every background longhand with !important, so it wiped the
       dropdown chevron a <select> paints with background-image and reset
       repeat/size to their initial values - the arrow then tiled across the
       whole control, half a dozen chevrons per filter box. A control that draws
       its own indicator must be able to keep it while this rule repaints the
       surface behind it. */
    background-color: var(--pms-bg) !important;
    border: 1px solid var(--pms-input-border) !important;
    color: var(--pms-text) !important;
    border-radius: 8px !important;
}

/* Segmented Filter Buttons & Badges */
html[data-bs-theme="dark"] .seg-group,
body.dark-mode .seg-group,
.dark-mode .seg-group {
    background-color: var(--pms-bg) !important;
    border: 1px solid var(--pms-border) !important;
}

html[data-bs-theme="dark"] .seg-btn,
body.dark-mode .seg-btn,
.dark-mode .seg-btn {
    color: var(--pms-text-muted) !important;
    background: transparent !important;
}

html[data-bs-theme="dark"] .seg-btn.active,
body.dark-mode .seg-btn.active,
.dark-mode .seg-btn.active {
    background-color: var(--pms-accent) !important;
    color: var(--pms-accent-contrast) !important;
}

/* DataTables & Tables */
html[data-bs-theme="dark"] table,
html[data-bs-theme="dark"] .table,
html[data-bs-theme="dark"] table.dataTable,
body.dark-mode table,
body.dark-mode .table,
body.dark-mode table.dataTable,
.dark-mode table,
.dark-mode .table,
.dark-mode table.dataTable {
    color: var(--pms-text) !important;
    border-color: var(--pms-border) !important;
    background-color: var(--pms-card) !important;
}

html[data-bs-theme="dark"] table thead th,
html[data-bs-theme="dark"] .table thead th,
html[data-bs-theme="dark"] table.dataTable thead th,
body.dark-mode table thead th,
body.dark-mode .table thead th,
body.dark-mode table.dataTable thead th,
.dark-mode table thead th,
.dark-mode .table thead th,
.dark-mode table.dataTable thead th {
    background-color: var(--pms-bg) !important;
    color: var(--pms-text-secondary) !important;
    border-color: var(--pms-border) !important;
}

html[data-bs-theme="dark"] table tbody td,
html[data-bs-theme="dark"] .table tbody td,
html[data-bs-theme="dark"] table.dataTable tbody td,
body.dark-mode table tbody td,
body.dark-mode .table tbody td,
body.dark-mode table.dataTable tbody td,
.dark-mode table tbody td,
.dark-mode .table tbody td,
.dark-mode table.dataTable tbody td {
    background-color: var(--pms-card) !important;
    color: var(--pms-text) !important;
    border-color: var(--pms-border) !important;
}

/* Modals & Popups */
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .offcanvas,
body.dark-mode .modal-content,
body.dark-mode .offcanvas,
.dark-mode .modal-content,
.dark-mode .offcanvas {
    background-color: var(--pms-card) !important;
    background: var(--pms-card) !important;
    border: 1px solid var(--pms-input-border) !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .modal-header,
html[data-bs-theme="dark"] .modal-footer,
html[data-bs-theme="dark"] .offcanvas-header,
body.dark-mode .modal-header,
body.dark-mode .modal-footer,
body.dark-mode .offcanvas-header,
.dark-mode .modal-header,
.dark-mode .modal-footer,
.dark-mode .offcanvas-header {
    background-color: var(--pms-bg) !important;
    background: var(--pms-bg) !important;
    border-color: var(--pms-border) !important;
}

/* Property Page Hub Dark Mode Styles */
html[data-bs-theme="dark"] .property-card,
body.dark-mode .property-card,
.dark-mode .property-card {
    background: var(--pms-card) !important;
    border-color: var(--pms-border) !important;
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .property-card:hover,
body.dark-mode .property-card:hover,
.dark-mode .property-card:hover {
    background: var(--pms-card-inner) !important;
    border-color: var(--pms-border) !important;
    box-shadow: none !important;
}

html[data-bs-theme="dark"] .property-card .card-top h3,
body.dark-mode .property-card .card-top h3,
.dark-mode .property-card .card-top h3 {
    color: var(--pms-text) !important;
}

html[data-bs-theme="dark"] .property-card .card-body-info,
body.dark-mode .property-card .card-body-info,
.dark-mode .property-card .card-body-info {
    color: var(--pms-text-secondary) !important;
}

html[data-bs-theme="dark"] .modal-card,
body.dark-mode .modal-card,
.dark-mode .modal-card {
    background: var(--pms-card) !important;
    border-color: var(--pms-border) !important;
    color: var(--pms-text) !important;
}
