@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =====================================================================
   RoyalPMS — Modern theme (clean light SaaS)
   Reskin layer on top of AdminLTE 3. Loaded LAST so it overrides
   adminlte.min.css and custom.css. Pure visual layer — no markup/JS
   dependencies. Tuned for both the hoteladmin and superadmin panels.
   ===================================================================== */

:root {
    --rp-primary: #04526E;
    --rp-primary-hover: #033e54;
    --rp-primary-soft: #eaf1f4;
    --rp-primary-soft-2: #d6e2e7;

    --rp-body-bg: #f4f6fb;
    --rp-surface: #ffffff;
    --rp-sidebar-bg: #ffffff;

    --rp-text: #1e293b;
    --rp-text-muted: #64748b;
    --rp-text-faint: #94a3b8;

    --rp-border: #e9edf3;
    --rp-border-strong: #dde3ec;

    --rp-radius-sm: 8px;
    --rp-radius: 12px;
    --rp-radius-lg: 16px;

    --rp-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --rp-shadow: 0 1px 3px rgba(16, 24, 40, 0.04), 0 6px 16px rgba(16, 24, 40, 0.06);
    --rp-shadow-lg: 0 10px 30px rgba(16, 24, 40, 0.10);
    --rp-ring: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

html[data-theme="dark"] {
    --rp-primary: #0e7490;
    --rp-primary-hover: #387e99;
    --rp-body-bg: #0f172a;
    --rp-surface: #111827;
    --rp-sidebar-bg: #111827;
    --rp-text: #e5e7eb;
    --rp-text-muted: #a3adc2;
    --rp-text-faint: #7d89a1;
    --rp-border: #263244;
    --rp-border-strong: #344256;
    --rp-primary-soft: rgba(14, 165, 233, 0.14);
    --rp-primary-soft-2: rgba(14, 165, 233, 0.22);
    --rp-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
    --rp-shadow: 0 1px 3px rgba(0, 0, 0, 0.20), 0 10px 24px rgba(0, 0, 0, 0.22);
    --rp-shadow-lg: 0 18px 36px rgba(0, 0, 0, 0.34);
}

/* ---------- Base / typography ---------- */
body,
.wrapper {
    background-color: var(--rp-body-bg);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--rp-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
    color: #0f172a;
}

a {
    color: var(--rp-primary);
}

a:hover {
    color: var(--rp-primary-hover);
}

.content-wrapper {
    background-color: var(--rp-body-bg) !important;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .wrapper,
html[data-theme="dark"] .content-wrapper {
    background-color: var(--rp-body-bg) !important;
    color: var(--rp-text);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .h1,
html[data-theme="dark"] .h2,
html[data-theme="dark"] .h3,
html[data-theme="dark"] .h4,
html[data-theme="dark"] .h5,
html[data-theme="dark"] .h6 {
    color: #f8fafc;
}

/* ---------- Top navbar ---------- */
.main-header.navbar {
    background: var(--rp-surface) !important;
    border-bottom: 1px solid var(--rp-border) !important;
    box-shadow: none !important;
}

.main-header.navbar .nav-link {
    color: var(--rp-text-muted) !important;
    border-radius: var(--rp-radius-sm);
    transition: background-color .15s ease, color .15s ease;
    /* margin: 4px 2px; */
}

.main-header.navbar .nav-link:hover {
    background: var(--rp-primary-soft);
    color: var(--rp-primary) !important;
}

.theme-toggle-btn {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.theme-toggle-btn:focus {
    outline: none;
    box-shadow: var(--rp-ring);
}



/* ---------- Sidebar (forced light, works regardless of dark/light class) ---------- */
.main-sidebar,
.main-sidebar .sidebar {
    background: var(--rp-sidebar-bg) !important;
    box-shadow: 1px 0 0 var(--rp-border) !important;
}

.main-sidebar.elevation-4 {
    box-shadow: 1px 0 0 var(--rp-border) !important;
}

.brand-link {
    border-bottom: 1px solid var(--rp-border) !important;
    background: var(--rp-surface) !important;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.brand-link .brand-text {
    color: #0f172a !important;
    font-weight: 600 !important;
    letter-spacing: -0.02em;
}

html[data-theme="dark"] .brand-link .brand-text,
html[data-theme="dark"] .brand-link .brand-text b {
    color: #f8fafc !important;
}

.brand-link .brand-image {
    box-shadow: none;
    margin-left: .8rem;
    opacity: 1;
}

/* sidebar links */
.main-sidebar .nav-sidebar .nav-item>.nav-link {
    color: #475569 !important;
    border-radius: var(--rp-radius-sm);
    /* margin: 2px 12px; */
    padding: 0.6rem 0.85rem;
    font-weight: 500;
    transition: background-color .15s ease, color .15s ease;
}

html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-item>.nav-link {
    color: #cbd5e1 !important;
}

.main-sidebar .nav-sidebar .nav-item>.nav-link .nav-icon {
    color: var(--rp-text-faint);
    transition: color .15s ease;
}

.main-sidebar .nav-sidebar .nav-item>.nav-link:hover {
    background: var(--rp-primary-soft) !important;
    color: var(--rp-primary) !important;
}

.main-sidebar .nav-sidebar .nav-item>.nav-link:hover i,
.main-sidebar .nav-sidebar .nav-item>.nav-link:hover .nav-icon {
    color: var(--rp-primary) !important;
}

.main-sidebar .nav-sidebar .nav-item>.nav-link:hover .nav-icon {
    color: var(--rp-primary);
}

/* active item */
.main-sidebar .nav-sidebar .nav-link.active {
    background: var(--rp-primary) !important;
    color: #fff !important;
    box-shadow: 0 6px 14px rgba(79, 70, 229, 0.30);
}

.main-sidebar .nav-sidebar .nav-link.active .nav-icon {
    color: #fff !important;
}

/* open parent (has active child) */
.main-sidebar .nav-sidebar .nav-item.menu-open>.nav-link {
    background: var(--rp-primary-soft) !important;
    color: var(--rp-primary) !important;
}

.main-sidebar .nav-sidebar .nav-item.menu-open>.nav-link .nav-icon {
    color: var(--rp-primary) !important;
}

html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-item.menu-open>.nav-link .nav-icon {
    color: var(--rp-text-faint) !important;
}

/* treeview (submenus) */
.main-sidebar .nav-treeview>.nav-item>.nav-link {
    color: #64748b !important;
    border-radius: var(--rp-radius-sm);
    /* margin: 2px 10px 2px 14px; */
    /* padding: 0.45rem 0.85rem; */
    font-weight: 500;
}

html[data-theme="dark"] .main-sidebar .nav-treeview>.nav-item>.nav-link {
    color: #94a3b8 !important;
}

.main-sidebar .nav-treeview>.nav-item>.nav-link .nav-icon {
    font-size: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
    vertical-align: middle;
}

.main-sidebar .nav-treeview>.nav-item>.nav-link:hover {
    background: var(--rp-primary-soft) !important;
    color: var(--rp-primary) !important;
}

.main-sidebar .nav-treeview>.nav-item>.nav-link.active {
    background: var(--rp-primary-soft-2) !important;
    color: var(--rp-primary-hover) !important;
    box-shadow: none;
}

.main-sidebar .nav-treeview>.nav-item>.nav-link.active .nav-icon {
    color: var(--rp-primary-hover) !important;
}

/* section headers */
.main-sidebar .nav-header {
    color: var(--rp-text-faint) !important;
    background: transparent !important;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 1rem 1.5rem 0.35rem;
}

/* ---------- Sidebar Search Styling (Modern Light SaaS Fix) ---------- */
.main-sidebar .form-control-sidebar {
    background: #f1f5f9 !important;
    border: 1px solid var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
    border-radius: var(--rp-radius-sm) 0 0 var(--rp-radius-sm);
}

.main-sidebar .btn-sidebar {
    background: #f1f5f9 !important;
    border: 1px solid var(--rp-border-strong) !important;
    color: var(--rp-text-muted) !important;
    border-radius: 0 var(--rp-radius-sm) var(--rp-radius-sm) 0;
}

.sidebar-search-results {
    position: relative;
    z-index: 9999 !important;
}

.sidebar-search-results .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid var(--rp-border-strong) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border-radius: var(--rp-radius) !important;
    padding: 0.4rem !important;
    width: 100% !important;
    display: block !important;
    opacity: 1 !important;
}

.sidebar-search-results .list-group {
    background: #ffffff !important;
}

.sidebar-search-results .list-group-item {
    background: #ffffff !important;
    border: none !important;
    color: var(--rp-text) !important;
    border-radius: var(--rp-radius-sm) !important;
    padding: 0.6rem 0.85rem !important;
    font-weight: 500 !important;
}

.sidebar-search-results .list-group-item .search-path {
    color: var(--rp-text-muted) !important;
    font-size: 0.8rem !important;
}

.sidebar-search-results .list-group-item:hover {
    background: var(--rp-primary-soft) !important;
    color: var(--rp-primary) !important;
}

.sidebar-search-results .list-group-item strong {
    color: var(--rp-primary) !important;
    font-weight: 700 !important;
}

/* ---------- Content header / breadcrumb ---------- */
.content-header {
    padding: 1.5rem 0.5rem 0.5rem;
}

.content-header h1 {
    font-size: 1.5rem !important;
    font-weight: 600;
}

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

.breadcrumb-item,
.breadcrumb-item a {
    color: var(--rp-text-muted);
}

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

/* ---------- Cards ---------- */
.card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border) !important;
    border-radius: var(--rp-radius) !important;
    box-shadow: var(--rp-shadow) !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .info-box {
    background: var(--rp-surface) !important;
    color: var(--rp-text);
}

html[data-theme="dark"] .card-footer {
    background: #0f172a;
}

html[data-theme="dark"] .dropdown-item {
    color: var(--rp-text);
}

html[data-theme="dark"] .table {
    color: var(--rp-text);
}

html[data-theme="dark"] .table td {
    border-color: var(--rp-border-strong) !important;
}

html[data-theme="dark"] .form-control,
html[data-theme="dark"] .custom-select,
html[data-theme="dark"] .select2-container--default .select2-selection--single,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-selection--single,
html[data-theme="dark"] .select2-container--default .select2-selection--multiple,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-selection--multiple,
html[data-theme="dark"] .royal-datepicker,
html[data-theme="dark"] .input-group-text {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
}

html[data-theme="dark"] label,
html[data-theme="dark"] .form-group>label,
html[data-theme="dark"] .card-body form label:not(.form-check-label):not(.custom-file-label),
html[data-theme="dark"] .breadcrumb-item.active,
html[data-theme="dark"] .product-info>b {
    color: var(--rp-text) !important;
}

html[data-theme="dark"] .breadcrumb-item,
html[data-theme="dark"] .breadcrumb-item a,
html[data-theme="dark"] .product-description,
html[data-theme="dark"] .dataTables_info,
html[data-theme="dark"] .dataTables_length,
html[data-theme="dark"] .dataTables_filter {
    color: var(--rp-text-muted) !important;
}

.card>.card-header {
    background: transparent;
    border-bottom: 1px solid var(--rp-border);
    border-radius: var(--rp-radius) var(--rp-radius) 0 0 !important;
    padding: 1rem 1.25rem;
}

.card-header .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.card-footer {
    background: #fafbfd;
    border-top: 1px solid var(--rp-border);
    border-radius: 0 0 var(--rp-radius) var(--rp-radius) !important;
}

/* kill the heavy top-border accent AdminLTE adds on .card-primary etc. */
.card.card-primary:not(.card-outline)>.card-header {
    background: var(--rp-primary);
}

.card-outline {
    border-top: 1px solid var(--rp-border) !important;
}

/* ---------- Dashboard widgets ---------- */
.small-box {
    border-radius: var(--rp-radius) !important;
    box-shadow: var(--rp-shadow) !important;
    overflow: hidden;
}

.small-box>.inner {
    padding: 1.25rem;
}

.small-box .icon {
    opacity: 0.25;
    top: 8px;
}

.info-box {
    border-radius: var(--rp-radius) !important;
    box-shadow: var(--rp-shadow) !important;
    border: 1px solid var(--rp-border);
}

.info-box .info-box-icon {
    border-radius: var(--rp-radius-sm);
}

/* ---------- Buttons ---------- */
.btn {
    /* border-radius: var(--rp-radius-sm) !important; */
    font-weight: 500;
    padding: 0.45rem 1rem;
    transition: all .15s ease;
    box-shadow: none;
}

.btn.rounded-circle {
    padding: 0 !important;
    width: 33.5px !important;
    height: 32px !important;
    line-height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-sm {
    padding: 0.3rem 0.7rem;
}

.btn:focus,
.btn.focus {
    box-shadow: var(--rp-ring) !important;
}

.btn-primary {
    background-color: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--rp-primary-hover) !important;
    border-color: var(--rp-primary-hover) !important;
}

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

.btn-outline-primary:hover {
    background-color: var(--rp-primary) !important;
    color: #fff !important;
}

.btn-default,
.btn-secondary {
    background: #fff !important;
    border-color: var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
}

.btn-default:hover,
.btn-secondary:hover {
    background: #f1f5f9 !important;
}

/* ---------- Forms ---------- */
label {
    font-weight: 500;
    color: #334155;
    font-size: 0.875rem;
}

.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out !important;
}

.modal.modal-static .modal-dialog {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

.form-control {
    border-radius: var(--rp-radius-sm);
    border: 1px solid var(--rp-border-strong) !important;
    color: var(--rp-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.custom-select,
.select2-container--default .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--single,
.select2-container--default .select2-selection--multiple,
.select2-container--bootstrap4 .select2-selection--multiple {
    border-radius: var(--rp-radius-sm) !important;
    border: 1px solid var(--rp-border-strong) !important;
    min-height: calc(2.5rem + 2px) !important;
    background: #ffffff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered,
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__rendered {
    padding: 0 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered .select2-search.select2-search--inline .select2-search__field {
    border: 0;
    margin-top: 7.5px;
}

.input-group>.form-control:not(:last-child),
.input-group>.custom-select:not(:last-child),
.input-group>.select2-container:not(:last-child) .select2-selection {
    border-top-left-radius: var(--rp-radius-sm) !important;
    border-bottom-left-radius: var(--rp-radius-sm) !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group>.input-group-append>.btn,
.input-group>.input-group-append>.input-group-text {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: var(--rp-radius-sm) !important;
    border-bottom-right-radius: var(--rp-radius-sm) !important;
}

.input-group>.input-group-prepend>.btn,
.input-group>.input-group-prepend>.input-group-text {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: var(--rp-radius-sm) !important;
    border-bottom-left-radius: var(--rp-radius-sm) !important;
}

.form-control:focus,
.custom-select:focus {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring) !important;
}

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

.input-group-text {
    border-radius: var(--rp-radius-sm);
    background: #f1f5f9;
    border-color: var(--rp-border-strong);
    color: var(--rp-text-muted);
}

/* Select2, checkboxes and radios */
.select2-container--default .select2-selection,
.select2-container--bootstrap4 .select2-selection {
    border-radius: var(--rp-radius-sm) !important;
    border-color: var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
}

.select2-container--default.select2-container--open .select2-selection,
.select2-container--default.select2-container--focus .select2-selection,
.select2-container--bootstrap4.select2-container--open .select2-selection,
.select2-container--bootstrap4.select2-container--focus .select2-selection {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring) !important;
}

.select2-container--default .select2-selection__rendered,
.select2-container--bootstrap4 .select2-selection__rendered {
    color: var(--rp-text) !important;
}

/* ---------- Select2 Dropdown Position & Border Fix ---------- */
.select2-container--default .select2-dropdown,
.select2-container--bootstrap4 .select2-dropdown {
    border-color: var(--rp-border-strong) !important;
    box-shadow: var(--rp-shadow-lg) !important;
    background: #ffffff !important;
}

.select2-container--default .select2-dropdown.select2-dropdown--above,
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--above {
    border-bottom: 1px solid var(--rp-border-strong) !important;
    border-top-left-radius: var(--rp-radius-sm) !important;
    border-top-right-radius: var(--rp-radius-sm) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    transform: translateY(2px) !important;
}

.select2-container--default .select2-dropdown.select2-dropdown--below,
.select2-container--bootstrap4 .select2-dropdown.select2-dropdown--below {
    border-top: none !important;
    border-bottom-left-radius: var(--rp-radius-sm) !important;
    border-bottom-right-radius: var(--rp-radius-sm) !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    transform: translateY(-2px) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field,
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    border-color: var(--rp-border-strong) !important;
    border-radius: var(--rp-radius-sm) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus,
.select2-container--bootstrap4 .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring) !important;
    outline: none !important;
}

.select2-container--default .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--selected,
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap4 .select2-results__option--selected,
.select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
    background-color: var(--rp-primary) !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--selected:hover,
.select2-container--default .select2-results__option[aria-selected=true]:hover,
.select2-container--bootstrap4 .select2-results__option--selected:hover,
.select2-container--bootstrap4 .select2-results__option[aria-selected=true]:hover {
    background-color: var(--rp-primary-hover) !important;
    color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice {
    background-color: var(--rp-primary) !important;
    border-color: var(--rp-primary-hover) !important;
    color: #fff !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-container--bootstrap4 .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, 0.8) !important;
}

input[type="checkbox"],
input[type="radio"],
.status-toggle {
    accent-color: var(--rp-primary) !important;
}

.form-check-input:checked,
.status-toggle:checked {
    background-color: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
}

.form-check-input:focus,
.status-toggle:focus {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring) !important;
}

.custom-control-input:checked~.custom-control-label::before,
[class*="icheck-"]>input:first-child:checked+input[type="hidden"]+label::before,
[class*="icheck-"]>input:first-child:checked+label::before {
    background-color: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
}

.custom-control-input:focus~.custom-control-label::before,
.custom-control-input:not(:disabled):active~.custom-control-label::before {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring) !important;
}

.switch input:checked+.slider,
input:checked+.slider {
    background-color: var(--rp-primary) !important;
}

.switch input:focus+.slider,
input:focus+.slider {
    box-shadow: var(--rp-ring) !important;
}

.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary,
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success,
.bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-success {
    background-color: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
    color: #fff !important;
}

.bootstrap-switch.bootstrap-switch-focused {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring) !important;
}

/* ---------- Tables / DataTables ---------- */
.table {
    color: var(--rp-text);
}



.table td {
    border-top: 1px solid var(--rp-border) !important;
    vertical-align: middle;
    padding: 0.75rem;
}

.table-hover tbody tr {
    transition: background-color .12s ease;
}

.table-hover tbody tr:hover {
    background-color: var(--rp-primary-soft) !important;
}

/* ---------- DataTables Loading Only Color Fix (No Box Distortion) ---------- */
.dataTables_wrapper .dataTables_processing {
    background-color: #ffffff !important;
    border: 1px solid var(--rp-border-strong) !important;
    box-shadow: var(--rp-shadow-lg) !important;
    border-radius: var(--rp-radius) !important;
    padding: 1rem !important;
    height: auto !important;
    min-height: 45px !important;
}

.dataTables_wrapper .dataTables_processing>div {
    background-color: transparent !important;
    background: transparent !important;
}

.dataTables_wrapper .dataTables_processing i,
.dataTables_wrapper .dataTables_processing .spinner-border,
.dataTables_wrapper .dataTables_processing .loading-dots span,
.dataTables_wrapper .dataTables_processing::after {
    color: var(--rp-primary) !important;
    border-top-color: var(--rp-primary) !important;
}

.dataTables_wrapper .dataTables_processing>div>div {
    background: var(--rp-primary) !important;
    background-color: var(--rp-primary) !important;
}

/* ---------- DataTables Header Arrows Removal ---------- */
table.dataTable thead .sorting:before,
table.dataTable thead .sorting_asc:before,
table.dataTable thead .sorting_desc:before,
table.dataTable thead .sorting_asc_disabled:before,
table.dataTable thead .sorting_desc_disabled:before,
table.dataTable thead .sorting:after,
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting_asc_disabled:after,
table.dataTable thead .sorting_desc_disabled:after {
    display: none !important;
    content: "" !important;
}

table.dataTable thead th.sorting,
table.dataTable thead th.sorting_asc,
table.dataTable thead th.sorting_desc {
    padding-right: 0.75rem !important;
}

/* DataTables controls */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: var(--rp-radius-sm) !important;
    border: 1px solid var(--rp-border-strong) !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--rp-primary) !important;
    box-shadow: var(--rp-ring);
    outline: none;
}

.page-link {
    color: var(--rp-text-muted);
    border-color: var(--rp-border);
    border-radius: var(--rp-radius-sm) !important;
    margin: 0 2px;
}

.page-item.active .page-link {
    background-color: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.page-link:hover {
    background: var(--rp-primary-soft);
    color: var(--rp-primary);
}

/* ---------- Badges ---------- */
.badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35em 0.7em;
    letter-spacing: 0.01em;
}

.badge-primary {
    background-color: var(--rp-primary) !important;
}

/* ---------- Dropdowns ---------- */
.dropdown-menu {
    border: 1px solid var(--rp-border) !important;
    border-radius: var(--rp-radius) !important;
    box-shadow: var(--rp-shadow-lg) !important;
    padding: 0.4rem;
}

.dropdown-item {
    border-radius: var(--rp-radius-sm);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    color: var(--rp-text);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--rp-primary-soft);
    color: var(--rp-primary);
}

/* ---------- Modals ---------- */
.modal-content {
    border: 0 !important;
    border-radius: var(--rp-radius-lg) !important;
    box-shadow: var(--rp-shadow-lg) !important;
}

.modal-header {
    border-bottom: 1px solid var(--rp-border);
    padding: 1.1rem 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--rp-border);
}

/* ---------- Alerts ---------- */
.alert {
    border: 0;
    border-radius: var(--rp-radius);
    box-shadow: var(--rp-shadow-sm);
}

/* ---------- Footer ---------- */
.main-footer {
    background: var(--rp-surface);
    border-top: 1px solid var(--rp-border);
    color: var(--rp-text-muted);
}

/* ---------- Misc ---------- */
.text-primary {
    color: var(--rp-primary) !important;
}

.bg-primary {
    background-color: var(--rp-primary) !important;
}

.border-primary {
    border-color: var(--rp-primary) !important;
}

/* Slimmer, modern scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

*::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

*::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
    background-clip: content-box;
}

/* Preloader logo backdrop */
.preloader {
    background-color: var(--rp-body-bg) !important;
}

/* =====================================================================
   FORMS — modern, easy-to-scan layout (applies to every form globally)
   ===================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group>label,
.card-body form label:not(.form-check-label):not(.custom-file-label) {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 500;
    color: #334155;
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
    letter-spacing: 0.005em;
}

/* icon shown inside a label */
.form-group>label>i,
.form-group>label>.fa,
.form-group>label>.fas,
.form-group>label>.far {
    color: var(--rp-primary);
    font-size: 0.85rem;
    width: 1rem;
    text-align: center;
}

.reservation-guest-group {
    position: relative;
}

.reservation-add-guest-btn {
    position: absolute;
    top: -0.1rem;
    right: 0;
    padding: 0.15rem 0.55rem;
    font-size: 0.85rem;
    line-height: 1.35;
}

@media (max-width: 575.98px) {
    .reservation-add-guest-btn {
        position: static;
        display: inline-flex;
        margin-left: 0.5rem;
        margin-bottom: 0.45rem;
        vertical-align: top;
    }
}

/* required-field asterisk: add class="required" on the label */
label.required::after {
    content: " *";
    color: #ef4444;
    font-weight: 600;
}

/* comfortable, touch-friendly fields */
.form-control,
.custom-select {
    min-height: calc(2.5rem + 2px);
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
}

textarea.form-control {
    min-height: 5rem;
}

/* inline error text used across admin forms (.error-msg + @error spans) */
.text-danger.error-msg,
.form-group .text-danger {
    display: block;
    font-size: 0.78rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* invalid / valid states */
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #ef4444 !important;
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.16) !important;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #22c55e !important;
}

.invalid-feedback {
    font-size: 0.78rem;
    font-weight: 500;
}

/* input groups with leading/trailing icons — make them feel like one pill */
.input-group .form-control {
    box-shadow: none !important;
}

.input-group .input-group-text {
    background: #fff;
    border-color: var(--rp-border-strong);
    color: var(--rp-text-faint);
    transition: color .15s ease, border-color .15s ease;
}

.input-group:focus-within {
    border-radius: var(--rp-radius-sm);
    box-shadow: var(--rp-ring);
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
    border-color: var(--rp-primary) !important;
}

.input-group:focus-within .input-group-text {
    color: var(--rp-primary);
}

/* the password eye toggle is clickable */
.input-group-append[onclick] {
    cursor: pointer;
}

/* file input */
.custom-file-input,
.custom-file-label {
    min-height: calc(2.5rem + 2px);
    border-radius: var(--rp-radius-sm) !important;
    border-color: var(--rp-border-strong);
    display: flex;
    align-items: center;
}

.custom-file-label::after {
    height: 100%;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-left: 1px solid var(--rp-border-strong);
    color: var(--rp-text-muted);
}

/* radio / checkbox spacing */
.form-group input[type="radio"],
.form-group input[type="checkbox"] {
    margin-right: 0.35rem;
    vertical-align: middle;
}

/* form card: title + actions */
.card-primary:not(.card-outline)>.card-header {
    color: #fff;
}

.card-primary:not(.card-outline)>.card-header .card-title {
    color: #fff;
}

.card-body>.btn,
form.card-body>.btn {
    margin-top: 0.25rem;
}

/* date picker fields used in admin forms */
.royal-datepicker {
    display: block;
    width: 100%;
    min-height: calc(2.5rem + 2px);
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    border: 1px solid var(--rp-border-strong);
    border-radius: var(--rp-radius-sm);
    background: #fff;
    color: var(--rp-text);
}

.royal-datepicker:focus {
    border-color: var(--rp-primary);
    box-shadow: var(--rp-ring);
    outline: none;
}

/* =====================================================================
   AUTH pages (login / register) — centered modern card
   ===================================================================== */
.login-page,
.register-page {
    background: linear-gradient(135deg, #eef2ff 0%, #f4f6fb 45%, #ecfeff 100%) !important;
    min-height: 100vh;
}

.login-box,
.register-box {
    width: 100%;
    max-width: 420px;
    margin: 6vh auto;
}

.register-box {
    max-width: 460px;
}

.login-logo a,
.register-logo a {
    color: #0f172a;
}

.login-card-body,
.register-card-body {
    border-radius: var(--rp-radius-lg) !important;
    padding: 2rem 1.75rem;
}

.login-page .card,
.register-page .card {
    border: 0 !important;
    border-radius: var(--rp-radius-lg) !important;
    box-shadow: var(--rp-shadow-lg) !important;
}

.login-box-msg,
.register-box-msg {
    font-weight: 600;
    color: #0f172a;
    font-size: 1.05rem;
    padding-top: 0;
}

/* =====================================================================
   DASHBOARD — richer stat widgets & lists (presentation only)
   ===================================================================== */
.small-box {
    position: relative;
    border: 0 !important;
}

.small-box>.inner h3 {
    font-weight: 700;
    font-size: 2.1rem;
    letter-spacing: -0.02em;
}

.small-box>.inner p {
    font-weight: 500;
    opacity: 0.92;
}

.small-box .icon>i {
    font-size: 4rem;
    transition: transform .2s ease;
}

.small-box:hover {
    transform: translateY(-3px);
    transition: transform .2s ease;
}

.small-box:hover .icon>i {
    transform: scale(1.08) rotate(-4deg);
}

.small-box .small-box-footer {
    background: rgba(0, 0, 0, 0.08);
    font-weight: 500;
    transition: background .15s ease;
}

.small-box .small-box-footer:hover {
    background: rgba(0, 0, 0, 0.16);
}

/* gradient accents for the stat tiles */
.small-box.bg-olive {
    background: linear-gradient(135deg, #16a34a, #15803d) !important;
}

.small-box.bg-maroon {
    background: linear-gradient(135deg, #e11d48, #be123c) !important;
}

.small-box.bg-lightblue {
    background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
}

.small-box.bg-purple {
    background: linear-gradient(135deg, #7c3aed, #6d28d9) !important;
}

.small-box.bg-info {
    background: linear-gradient(135deg, #06b6d4, #0891b2) !important;
}

.small-box.bg-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
}

.small-box.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
}

.small-box.bg-warning .inner,
.small-box.bg-warning h3,
.small-box.bg-warning p {
    color: #fff !important;
}

.small-box.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

/* dashboard list cards */
.products-list .item {
    border-bottom: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    padding: 0.75rem 0.5rem;
    transition: background .12s ease;
}

.products-list .item:hover {
    background: var(--rp-primary-soft);
}

.products-list .item:last-child {
    border-bottom: 0;
}

.product-info>b {
    color: #0f172a;
}

.product-description {
    color: var(--rp-text-muted);
}

.card-footer .uppercase {
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* =====================================================================
   HOTELADMIN DASHBOARD - front office overview
   ===================================================================== */
.hotel-dashboard {
    padding: 22px 8px 28px;
}

.hotel-kpi-grid,
.hotel-panel-grid {
    display: grid;
    gap: 20px;
}

.hotel-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 20px;
}

.hotel-kpi-card,
.hotel-list-panel,
.reservation-card {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border-strong);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}

.hotel-kpi-card {
    min-height: 158px;
    padding: 21px 20px;
    color: var(--rp-text);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.hotel-kpi-card:hover {
    color: var(--rp-text);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--rp-shadow);
}

.hotel-kpi-card p {
    margin: 0 0 10px;
    color: #475569;
    font-size: 18px;
    font-weight: 400;
}

.hotel-kpi-card h3 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 700;
}

.hotel-kpi-card small {
    display: block;
    margin-top: 14px;
    color: #667085;
    font-size: 14px;
}

.hotel-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    font-size: 17px;
}

.accent-blue .hotel-kpi-icon {
    background: #e8f0ff;
    color: #2563eb;
}

.accent-red .hotel-kpi-icon {
    background: #ffe8ef;
    color: #e11d48;
}

.accent-green .hotel-kpi-icon {
    background: #dff4ee;
    color: #008c6b;
}

.accent-purple .hotel-kpi-icon {
    background: #ece9ff;
    color: #6154e8;
}

.occupancy-progress {
    height: 7px;
    margin-top: 17px;
    background: #ededf0;
    border-radius: 999px;
    overflow: hidden;
}

.occupancy-progress span {
    display: block;
    height: 100%;
    background: #6154e8;
    border-radius: inherit;
}

.occupancy-scale {
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
}

.occupancy-scale small {
    margin: 0;
}

.hotel-panel-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hotel-list-panel {
    min-height: 337px;
    overflow: hidden;
}

.hotel-panel-header {
    min-height: 60px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--rp-border-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hotel-panel-header h2 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.panel-dot.blue {
    background: #2563eb;
}

.panel-dot.red {
    background: #dc2f55;
}

.panel-dot.green {
    background: #008c6b;
}

.panel-count {
    min-width: 30px;
    height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
}

.panel-count.blue {
    background: #e8f0ff;
    color: #2563eb;
}

.panel-count.red {
    background: #ffe8ef;
    color: #dc2f55;
}

.panel-count.green {
    background: #ddfaed;
    color: #008c6b;
}

.hotel-panel-body {
    padding: 20px;
    display: grid;
    gap: 12px;
}

.reservation-card {
    min-height: 88px;
    padding: 19px 15px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.reservation-card h3 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.reservation-card p {
    margin: 0 0 4px;
    color: #475569;
    font-size: 16px;
}

.reservation-card small {
    color: #667085;
    font-size: 14px;
}

.reservation-action {
    color: #0b4cff;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 16px;
    font-weight: 500;
}

.reservation-action:hover {
    text-decoration: none;
}

.reservation-action.red {
    color: #e00035;
}

.inhouse-card {
    align-items: center;
}

.inhouse-badge {
    padding: 5px 12px;
    border-radius: 999px;
    background: #eef0f4;
    color: #334155;
    white-space: nowrap;
    font-size: 14px;
}

.reservation-empty {
    min-height: 88px;
    padding: 22px 15px;
    border: 1px dashed var(--rp-border-strong);
    border-radius: 12px;
    color: var(--rp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .hotel-kpi-card p,
html[data-theme="dark"] .reservation-card p,
html[data-theme="dark"] .hotel-kpi-card small,
html[data-theme="dark"] .reservation-card small {
    color: var(--rp-text-muted);
}

html[data-theme="dark"] .hotel-kpi-card h3,
html[data-theme="dark"] .hotel-panel-header h2,
html[data-theme="dark"] .reservation-card h3 {
    color: #f8fafc;
}

html[data-theme="dark"] .reservation-card,
html[data-theme="dark"] .hotel-kpi-card,
html[data-theme="dark"] .hotel-list-panel {
    background: #111827;
    border-color: #344256;
}

html[data-theme="dark"] .occupancy-progress {
    background: #263244;
}

html[data-theme="dark"] .inhouse-badge {
    background: #263244;
    color: #dbe4f0;
}

@media (max-width: 1199.98px) {
    .hotel-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hotel-panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hotel-dashboard {
        padding: 14px 0 22px;
    }

    .hotel-kpi-grid {
        grid-template-columns: 1fr;
    }

    .hotel-kpi-card {
        min-height: 132px;
    }
}

/* =====================================================================
   SUPERADMIN DASHBOARD - restaurant platform overview
   ===================================================================== */
.superadmin-dashboard {
    padding: 22px 8px 28px;
}

.superadmin-dashboard .container-fluid {
    max-width: none;
}

.restaurant-count-grid,
.platform-metrics-grid,
.status-panels-grid {
    display: grid;
    gap: 14px;
}

.restaurant-count-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 40px;
}

.restaurant-count-card {
    min-height: 104px;
    padding: 18px 16px;
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

html[data-theme="dark"] .restaurant-count-card,
html[data-theme="dark"] .platform-panel,
html[data-theme="dark"] .platform-metric-card,
html[data-theme="dark"] .status-panel {
    background: #111827;
    border-color: #344256;
}

.restaurant-count-card b {
    display: block;
    margin-bottom: 12px;
    color: #5f6b7c;
    font-size: 14px;
    font-weight: 500;
}

.restaurant-count-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    min-width: 48px;
}

.card-today .card-icon {
    background-color: #e3fafc !important;
    color: #11999e !important;
}

.card-total .card-icon {
    background-color: #e8f0fe !important;
    color: #3f51b5 !important;
}

.card-free .card-icon {
    background-color: #fff4e6 !important;
    color: #fd7e14 !important;
}

.card-paid .card-icon {
    background-color: #ebfbee !important;
    color: #2b8a3e !important;
}


html[data-theme="dark"] .restaurant-count-card p,
html[data-theme="dark"] .platform-header p,
html[data-theme="dark"] .status-row {
    color: var(--rp-text-muted);
}

.restaurant-count-card h3 {
    margin: 0;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
}

html[data-theme="dark"] .restaurant-count-card h3,
html[data-theme="dark"] .platform-header h1,
html[data-theme="dark"] .platform-metric-card strong,
html[data-theme="dark"] .status-panel h2,
html[data-theme="dark"] .status-row strong {
    color: #f8fafc;
}

.restaurant-count-growth {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    color: #5f6b7c;
    font-size: 14px;
    white-space: nowrap;
}

.restaurant-count-growth span {
    color: #009966;
}

.platform-panel {
    padding: 36px 30px 30px;
    background: #ffffff;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

html[data-theme="dark"] .metric-revenue {
    background: rgba(0, 122, 90, 0.14);
}

html[data-theme="dark"] .metric-restaurants {
    background: rgba(37, 99, 235, 0.14);
}

html[data-theme="dark"] .metric-subscriptions {
    background: rgba(124, 58, 237, 0.14);
}

html[data-theme="dark"] .metric-users {
    background: rgba(194, 65, 12, 0.14);
}

.platform-header {
    margin-bottom: 30px;
}

.platform-header h1 {
    margin: 0 0 4px;
    color: #111827;
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 700;
}

.platform-header p {
    margin: 0;
    color: #667085;
    font-size: 16px;
}

.platform-metrics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 30px;
}

.platform-metric-card {
    min-height: 106px;
    padding: 22px 20px;
    border: 1px solid;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease;
}

.platform-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 24, 40, 0.06);
    text-decoration: none;
}

.platform-metric-card span,
.platform-metric-card strong {
    display: block;
}

.platform-metric-card span {
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 500;
}

.platform-metric-card strong {
    color: #111827;
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
}

.platform-metric-card>i {
    width: 50px;
    height: 50px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.metric-revenue {
    background: #eefaf4;
    border-color: #a7f3d0;
    color: #007a5a;
}

.metric-revenue>i {
    background: #d9f6e8;
}

.metric-restaurants {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.metric-restaurants>i {
    background: #dbeafe;
}

.metric-subscriptions {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #7c3aed;
}

.metric-subscriptions>i {
    background: #ede9fe;
}

.metric-users {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #c2410c;
}

.metric-users strong {
    color: #111827;
}

.metric-users>i {
    background: #ffedd5;
}

.status-panels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.status-panel {
    min-height: 255px;
    padding: 24px 20px 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.status-panel h2 {
    margin: 0 0 22px;
    color: #111827;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f2937;
    font-size: 17px;
}

.status-row strong {
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.status-label {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.status-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.status-icon.success {
    background: #dff8ed;
    color: #008c6b;
}

.status-icon.warning {
    background: #fff0ad;
    color: #a16207;
}

.status-icon.danger {
    background: #ffe4e6;
    color: #ff3333;
}

.status-icon.info {
    background: #dbeafe;
    color: #2563eb;
}

@media (max-width: 1199.98px) {

    .restaurant-count-grid,
    .platform-metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .superadmin-dashboard {
        padding: 14px 0 22px;
    }

    .restaurant-count-grid,
    .platform-metrics-grid,
    .status-panels-grid {
        grid-template-columns: 1fr;
    }

    .restaurant-count-grid {
        margin-bottom: 24px;
    }

    .platform-panel {
        padding: 24px 16px;
    }

    .restaurant-count-card,
    .platform-metric-card {
        min-height: 96px;
    }
}

/* =====================================================================
   DARK THEME COMPLETION - utilities, modals, profile and room surfaces
   ===================================================================== */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light,
html[data-theme="dark"] .card-body,
html[data-theme="dark"] .card-header,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-body,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .login-card-body,
html[data-theme="dark"] .register-card-body {
    background-color: #111827 !important;
    color: var(--rp-text) !important;
}

html[data-theme="dark"] .text-dark,
html[data-theme="dark"] .text-black,
html[data-theme="dark"] .profile-name,
html[data-theme="dark"] .profile-section-title,
html[data-theme="dark"] .room-type-card h5,
html[data-theme="dark"] .room-type-card .small,
html[data-theme="dark"] .room-card-custom h3,
html[data-theme="dark"] .room-card-custom b,
html[data-theme="dark"] .open-description-modal {
    color: #f8fafc !important;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .text-secondary,
html[data-theme="dark"] .profile-meta,
html[data-theme="dark"] .profile-section-copy,
html[data-theme="dark"] .room-card-custom p {
    color: var(--rp-text-muted) !important;
}

html[data-theme="dark"] .border,
html[data-theme="dark"] .border-top,
html[data-theme="dark"] .border-bottom,
html[data-theme="dark"] .modal-header,
html[data-theme="dark"] .modal-footer,
html[data-theme="dark"] .custom-room-tabs,
html[data-theme="dark"] hr {
    border-color: var(--rp-border-strong) !important;
}

html[data-theme="dark"] .profile-page {
    color: var(--rp-text) !important;
}

html[data-theme="dark"] .profile-hero h1 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .profile-hero p {
    color: var(--rp-text-muted) !important;
}

html[data-theme="dark"] .profile-card,
html[data-theme="dark"] .room-type-card,
html[data-theme="dark"] .room-card-custom,
html[data-theme="dark"] .settings-shell,
html[data-theme="dark"] .settings-section {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
    box-shadow: var(--rp-shadow) !important;
}

html[data-theme="dark"] .profile-input,
html[data-theme="dark"] .profile-file,
html[data-theme="dark"] .bootstrap-tagsinput,
html[data-theme="dark"] .custom-file-label,
html[data-theme="dark"] #dashed_border {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .custom-file-label::after {
    background: #111827 !important;
    color: var(--rp-text-muted) !important;
    border-color: var(--rp-border-strong) !important;
}

html[data-theme="dark"] .profile-label {
    color: #dbe4f0 !important;
}

html[data-theme="dark"] .profile-button {
    background: #f97316 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .room-type-card .card-body {
    background: #111827 !important;
}

html[data-theme="dark"] .img-wrapper {
    background: #0f172a !important;
}

html[data-theme="dark"] .custom-room-tabs .nav-link {
    color: #dbe4f0 !important;
    border-color: transparent !important;
}

html[data-theme="dark"] .custom-room-tabs .nav-link.active,
html[data-theme="dark"] .custom-room-tabs .nav-link:hover {
    background: transparent !important;
    border-color: transparent transparent #7c3aed transparent !important;
    color: #8b5cf6 !important;
}

html[data-theme="dark"] .room-card-custom {
    border-top-color: #36a26f !important;
}

html[data-theme="dark"] .modal-content {
    background: #111827 !important;
    border: 1px solid var(--rp-border-strong) !important;
}

html[data-theme="dark"] .modal-title {
    color: #f8fafc !important;
}

html[data-theme="dark"] .close,
html[data-theme="dark"] .mailbox-attachment-close {
    color: #f8fafc !important;
    text-shadow: none !important;
    opacity: 0.9 !important;
}

html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-default,
html[data-theme="dark"] .btn-light {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #111827 !important;
}

html[data-theme="dark"] .settings-section-header h2 {
    color: #f8fafc !important;
}

html[data-theme="dark"] .settings-section-header p {
    color: var(--rp-text-muted) !important;
}

/* =====================================================================
   SUPERADMIN SETTINGS
   ===================================================================== */
.superadmin-settings {
    padding-bottom: 32px;
}

.settings-shell {
    display: grid;
    gap: 22px;
}

.settings-section {
    background: var(--rp-surface);
    border: 1px solid var(--rp-border);
    border-radius: 8px;
    box-shadow: var(--rp-shadow);
    padding: 24px;
}

.settings-section-header {
    margin-bottom: 20px;
}

.settings-section-header h2 {
    margin: 0 0 4px;
    font-size: 21px;
    font-weight: 800;
    color: #111827;
}

.settings-section-header p {
    margin: 0;
    color: var(--rp-text-muted);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-section {
        padding: 18px;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-actions .btn {
        width: 100%;
    }
}

.nav-sidebar .nav-link>p>.right {
    position: absolute;
    right: 1rem;
    top: .85rem;
}

.note-editor.note-airframe .note-statusbar,
.note-editor.note-frame .note-statusbar {
    background-color: #ffffff1c;
    border-bottom-left-radius: 799px;
    border-bottom-right-radius: 799px;
    border-top: 1px solid #00000032;
}

/* =====================================================================
   DARK THEME COMPLETION - page widgets and plugin surfaces
   ===================================================================== */
html[data-theme="dark"] body.login-page,
html[data-theme="dark"] body.register-page {
    background: linear-gradient(135deg, #f5f7ff 0%, #eefcff 100%) !important;
    color: #111827 !important;
}

html[data-theme="dark"] body.login-page .login-card-body,
html[data-theme="dark"] body.register-page .register-card-body {
    background: #ffffff !important;
    color: #111827 !important;
}

html[data-theme="dark"] .main-sidebar .form-control-sidebar,
html[data-theme="dark"] .main-sidebar .btn-sidebar {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
}

html[data-theme="dark"] .sidebar-search-results .dropdown-menu,
html[data-theme="dark"] .sidebar-search-results .list-group,
html[data-theme="dark"] .sidebar-search-results .list-group-item {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .sidebar-search-results .list-group-item .search-path {
    color: #9fb0c7 !important;
}

html[data-theme="dark"] .sidebar-search-results .list-group-item:hover {
    background: rgba(6, 95, 121, 0.34) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .select2-container--default .select2-dropdown,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-dropdown {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option,
html[data-theme="dark"] .select2-results__options {
    background: #0f172a !important;
    color: #dbe4f0 !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option[aria-disabled=true],
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option[aria-disabled=true] {
    color: #7b8aa3 !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted,
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option--highlighted,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] {
    background: #0e7490 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option--selected,
html[data-theme="dark"] .select2-container--default .select2-results__option[aria-selected=true],
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option--selected,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option[aria-selected=true] {
    background: #065f79 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted.select2-results__option--selected,
html[data-theme="dark"] .select2-container--default .select2-results__option--highlighted[aria-selected=true],
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option--selected,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected=true] {
    background: var(--rp-primary) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field,
html[data-theme="dark"] .select2-container--bootstrap4 .select2-search--dropdown .select2-search__field {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .control-sidebar,
html[data-theme="dark"] .control-sidebar::before,
html[data-theme="dark"] #side-panel-edit,
html[data-theme="dark"] #checkin-sidebar,
html[data-theme="dark"] #checkout-sidebar,
html[data-theme="dark"] #panel-form,
html[data-theme="dark"] #panel-btn-div,
html[data-theme="dark"] #side-panel-header,
html[data-theme="dark"] .control-sidebar [style*="background: #fff"],
html[data-theme="dark"] .control-sidebar [style*="background:#fff"],
html[data-theme="dark"] .control-sidebar [style*="background: rgb(255"],
html[data-theme="dark"] .control-sidebar [style*="background-color: #fff"],
html[data-theme="dark"] .control-sidebar [style*="background-color:#fff"] {
    background: #111827 !important;
    color: var(--rp-text) !important;
    border-color: var(--rp-border-strong) !important;
}

html[data-theme="dark"] #side-panel-header h3,
html[data-theme="dark"] .control-sidebar h1,
html[data-theme="dark"] .control-sidebar h2,
html[data-theme="dark"] .control-sidebar h3,
html[data-theme="dark"] .control-sidebar h4,
html[data-theme="dark"] .control-sidebar label,
html[data-theme="dark"] .control-sidebar strong {
    color: #f8fafc !important;
}

html[data-theme="dark"] #field_div,
html[data-theme="dark"] #idProof,
html[data-theme="dark"] .roomTypeQty,
html[data-theme="dark"] #count_roomtype {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: #dbe4f0 !important;
}

html[data-theme="dark"] .res-card-premium,
html[data-theme="dark"] .guest-checkin-card,
html[data-theme="dark"] .guest-checkout-card,
html[data-theme="dark"] .guest-details-card,
html[data-theme="dark"] .stay-summary-card {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: var(--rp-text) !important;
    box-shadow: var(--rp-shadow) !important;
}

html[data-theme="dark"] .res-id-text,
html[data-theme="dark"] .res-no,
html[data-theme="dark"] .guest-name,
html[data-theme="dark"] .guest_name,
html[data-theme="dark"] #guestDetails,
html[data-theme="dark"] .checkout_folio_tfoot,
html[data-theme="dark"] .reservation-card h3,
html[data-theme="dark"] .reservation-action {
    color: #f8fafc !important;
}

html[data-theme="dark"] .date-info,
html[data-theme="dark"] .checkout_folio_tr,
html[data-theme="dark"] .reservation-card p,
html[data-theme="dark"] .reservation-card small {
    color: #b7c4d8 !important;
}

html[data-theme="dark"] .res-divider,
html[data-theme="dark"] #hr_design {
    border-color: var(--rp-border-strong) !important;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.42), transparent) !important;
}


html[data-theme="dark"] .guest-checkin-box,
html[data-theme="dark"] .guest-checkin-avatar-box,
html[data-theme="dark"] .rooms-tag,
html[data-theme="dark"] .accent-green .hotel-kpi-icon,
html[data-theme="dark"] .panel-count.green {
    background: rgba(53, 167, 121, 0.16) !important;
    border-color: rgba(53, 167, 121, 0.45) !important;
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .guest-checkout-box,
html[data-theme="dark"] .guest-checkout-avatar-box,
html[data-theme="dark"] .total-amount,
html[data-theme="dark"] .accent-red .hotel-kpi-icon,
html[data-theme="dark"] .panel-count.red {
    background: rgba(216, 27, 96, 0.16) !important;
    border-color: rgba(216, 27, 96, 0.45) !important;
    color: #ff7eb3 !important;
}

html[data-theme="dark"] .accent-blue .hotel-kpi-icon,
html[data-theme="dark"] .panel-count.blue {
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(37, 99, 235, 0.45) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .accent-purple .hotel-kpi-icon,
html[data-theme="dark"] .panel-count.purple {
    background: rgba(97, 84, 232, 0.16) !important;
    border-color: rgba(97, 84, 232, 0.45) !important;
    color: #c084fc !important;
}

html[data-theme="dark"] .card-today .card-icon {
    background: rgba(17, 153, 158, 0.16) !important;
    border-color: rgba(17, 153, 158, 0.45) !important;
    color: #4fe1e6 !important;
}

html[data-theme="dark"] .card-total .card-icon {
    background: rgba(63, 81, 181, 0.16) !important;
    border-color: rgba(63, 81, 181, 0.45) !important;
    color: #9fa8da !important;
}

html[data-theme="dark"] .card-free .card-icon {
    background: rgba(253, 126, 20, 0.16) !important;
    border-color: rgba(253, 126, 20, 0.45) !important;
    color: #ffaa66 !important;
}

html[data-theme="dark"] .card-paid .card-icon {
    background: rgba(43, 138, 62, 0.16) !important;
    border-color: rgba(43, 138, 62, 0.45) !important;
    color: #69db7c !important;
}

html[data-theme="dark"] .metric-subscriptions>i {
    background: rgba(139, 92, 246, 0.16) !important;
    border: 1px solid rgba(139, 92, 246, 0.45) !important;
    color: #c084fc !important;
}

html[data-theme="dark"] .metric-restaurants>i {
    background: rgba(37, 99, 235, 0.16) !important;
    border: 1px solid rgba(37, 99, 235, 0.45) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .metric-revenue>i {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .metric-users>i {
    background: rgba(249, 115, 22, 0.16) !important;
    border: 1px solid rgba(249, 115, 22, 0.45) !important;
    color: #ffb077 !important;
}

html[data-theme="dark"] .status-icon.success {
    background: rgba(0, 140, 107, 0.16) !important;
    border: 1px solid rgba(0, 140, 107, 0.45) !important;
    color: #34d399 !important;
}

html[data-theme="dark"] .status-icon.warning {
    background: rgba(161, 98, 7, 0.16) !important;
    border: 1px solid rgba(161, 98, 7, 0.45) !important;
    color: #fbbf24 !important;
}

html[data-theme="dark"] .status-icon.danger {
    background: rgba(255, 51, 51, 0.16) !important;
    border: 1px solid rgba(255, 51, 51, 0.45) !important;
    color: #ff6b6b !important;
}

html[data-theme="dark"] .page-link,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: #dbe4f0 !important;
}

html[data-theme="dark"] .page-link:hover,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(6, 95, 121, 0.42) !important;
    border-color: #0e7490 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .page-item.active .page-link,
html[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--rp-primary) !important;
    border-color: var(--rp-primary) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .pac-container {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    box-shadow: var(--rp-shadow-lg) !important;
}

html[data-theme="dark"] .pac-item {
    background: #0f172a !important;
    border-top-color: var(--rp-border-strong) !important;
    color: #b7c4d8 !important;
}

html[data-theme="dark"] .pac-item:hover,
html[data-theme="dark"] .pac-item-selected {
    background: rgba(6, 95, 121, 0.34) !important;
}

html[data-theme="dark"] .pac-item-query,
html[data-theme="dark"] .pac-matched {
    color: #f8fafc !important;
}

html[data-theme="dark"] .note-editor.note-frame,
html[data-theme="dark"] .note-toolbar,
html[data-theme="dark"] .note-editing-area,
html[data-theme="dark"] .note-editable {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .note-btn {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: #e5eefb !important;
}

html[data-theme="dark"] .note-btn:hover,
html[data-theme="dark"] .note-btn:focus,
html[data-theme="dark"] .note-btn.active,
html[data-theme="dark"] .note-btn.dropdown-toggle[aria-expanded="true"] {
    background: rgba(14, 116, 144, 0.28) !important;
    border-color: #0e7490 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .note-btn-group .dropdown-menu,
html[data-theme="dark"] .note-dropdown-menu {
    background: #111827 !important;
    border-color: var(--rp-border-strong) !important;
    color: #e5eefb !important;
}

html[data-theme="dark"] .note-dropdown-item,
html[data-theme="dark"] .note-color-palette div .note-color-btn {
    color: #e5eefb !important;
}

html[data-theme="dark"] .note-dropdown-item:hover {
    background: rgba(14, 116, 144, 0.28) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .note-editor .note-toolbar {
    border-color: var(--rp-border-strong) !important;
}

.checkout-discount-box {
    background: #fcfcfc;
    border: 1px dashed #ddd;
    border-radius: 8px;
    margin: 10px;
    padding: 12px;
}

html[data-theme="dark"] .checkout-discount-box {
    background: #0f172a !important;
    border: 1px dashed var(--rp-border-strong) !important;
}

html[data-theme="dark"] #discount_input,
html[data-theme="dark"] #amount.bg-white,
html[data-theme="dark"] input.form-control.bg-white,
html[data-theme="dark"] input.form-control[readonly] {
    background: #0f172a !important;
    border-color: var(--rp-border-strong) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] input[type="number"]::-webkit-inner-spin-button,
html[data-theme="dark"] input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1) opacity(.75);
}

html[data-theme="dark"] .table,
html[data-theme="dark"] table.dataTable {
    color: #f8fafc !important;
    border-color: rgba(71, 85, 105, 0.9) !important;
}

html[data-theme="dark"] .table-bordered,
html[data-theme="dark"] .table-bordered th,
html[data-theme="dark"] .table-bordered td,
html[data-theme="dark"] table.dataTable tbody th,
html[data-theme="dark"] table.dataTable tbody td,
html[data-theme="dark"] table.dataTable thead th,
html[data-theme="dark"] table.dataTable thead td,
html[data-theme="dark"] table.dataTable.no-footer,
html[data-theme="dark"] .dataTables_scrollHead,
html[data-theme="dark"] .dataTables_scrollBody {
    border-color: rgba(71, 85, 105, 0.9) !important;
}

html[data-theme="dark"] table.dataTable thead th,
html[data-theme="dark"] table.dataTable thead td {
    border-bottom-color: rgba(100, 116, 139, 0.95) !important;
}

html[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd),
html[data-theme="dark"] .table-hover tbody tr:hover {
    background-color: rgba(15, 23, 42, 0.72) !important;
}

html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-light {
    background-color: #111827 !important;
    color: var(--rp-text) !important;
}



html[data-theme="dark"] .room-card-custom h3,
html[data-theme="dark"] .room-card-custom .text-dark {
    color: #ffffff !important;
}

html[data-theme="dark"] .room-card-custom .text-secondary,
html[data-theme="dark"] .room-card-custom p {
    color: #b7c4d8 !important;
}

html[data-theme="dark"] .room-card-custom hr {
    border-color: rgba(71, 85, 105, 0.9) !important;
}

html[data-theme="dark"] .status-pill {
    border: 1px solid currentColor;
    box-shadow: none;
}

html[data-theme="dark"] .pill-available-clean {
    background: rgba(61, 153, 112, 0.18) !important;
    color: #6ee7b7 !important;
}

html[data-theme="dark"] .pill-available-dirty {
    background: rgba(220, 53, 69, 0.18) !important;
    color: #fca5a5 !important;
}

html[data-theme="dark"] .pill-occupied-clean {
    background: rgba(0, 123, 255, 0.18) !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] .pill-occupied-dirty {
    background: rgba(23, 162, 184, 0.18) !important;
    color: #67e8f9 !important;
}

html[data-theme="dark"] .pill-maintenance-clean {
    background: rgba(32, 201, 151, 0.18) !important;
    color: #5eead4 !important;
}

html[data-theme="dark"] .pill-maintenance-dirty {
    background: rgba(232, 62, 140, 0.18) !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] .pill-out-of-service {
    background: rgba(253, 126, 20, 0.18) !important;
    color: #fdba74 !important;
}

html[data-theme="dark"] .pill-out-of-order-inspected {
    background: rgba(111, 66, 193, 0.18) !important;
    color: #c4b5fd !important;
}

/* =====================================================================
   ROYALPMS - ACTIVE & HOVER SIDEBAR ICON COLOR FIX (DARK THEME)
   ===================================================================== */

html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-item>.nav-link.active .nav-icon,
html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-item>.nav-link.active i {
    color: #ffffff !important;
}

html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-link.active:hover .nav-icon,
html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-link.active:hover i {
    color: #ffffff !important;
}

html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-item>.nav-link:hover .nav-icon,
html[data-theme="dark"] .main-sidebar .nav-sidebar .nav-item>.nav-link:hover i {
    color: #ffffff !important;
    /* color: var(--rp-primary) !important; */
}

html[data-theme="dark"] .main-sidebar .nav-treeview>.nav-item>.nav-link.active .nav-icon {
    color: #ffffff !important;
    /* color: var(--rp-primary) !important; */
}

.check-in-pill,
a.check-in-pill {
    background: #dff4ee !important;
    color: #008c6b !important;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

.check-out-pill,
a.check-out-pill {
    background: #ffe8ef !important;
    color: #e11d48 !important;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

.room-pill,
span.room-pill {
    background: #e8f0ff !important;
    color: #2563eb !important;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-block;
}

a.check-in-pill:hover {
    color: #008c6b !important;
    opacity: 0.85;
    text-decoration: none;
}

a.check-out-pill:hover {
    color: #e11d48 !important;
    opacity: 0.85;
    text-decoration: none;
}

html[data-theme="dark"] .check-in-pill,
html[data-theme="dark"] a.check-in-pill {
    background: rgba(53, 167, 121, 0.16) !important;
    border: 1px solid rgba(53, 167, 121, 0.45) !important;
    color: #6ee7b7 !important;
}

html[data-theme="dark"] a.check-in-pill:hover {
    color: #6ee7b7 !important;
    opacity: 0.85;
}

html[data-theme="dark"] .check-out-pill,
html[data-theme="dark"] a.check-out-pill {
    background: rgba(216, 27, 96, 0.16) !important;
    border: 1px solid rgba(216, 27, 96, 0.45) !important;
    color: #ff7eb3 !important;
}

html[data-theme="dark"] a.check-out-pill:hover {
    color: #ff7eb3 !important;
    opacity: 0.85;
}

html[data-theme="dark"] .room-pill,
html[data-theme="dark"] span.room-pill {
    background: rgba(37, 99, 235, 0.16) !important;
    border: 1px solid rgba(37, 99, 235, 0.45) !important;
    color: #93c5fd !important;
}



/* room status board */

.custom-room-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    white-space: nowrap;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.custom-room-tabs::-webkit-scrollbar {
    display: none;
}

.custom-room-tabs .nav-item {
    flex: 0 0 auto;
}

.custom-room-tabs .nav-link {
    padding: 8px 16px;
    font-weight: 600;
    color: #444;
}

.custom-room-tabs .nav-link.active {
    color: #7b3ff3;
    border-bottom: 2px solid #7b3ff3;
}

.filter-pill {
    transition: all 0.3s ease;
}

.filter-pill.active {
    transform: scale(1.05);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}

.room-card-custom {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease-in-out;
}

.room-card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}

.card-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: nowrap;
}

#roomCardFooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#roomCardFooter b {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
}

#roomCardFooter i {
    line-height: 1;
    font-size: 0.9rem;
}

.room-card-item {
    transition: transform 0.3s ease, opacity 0.3s ease, max-width 0.3s ease, padding 0.3s ease;
    opacity: 1;
    transform: scale(1);
    display: block;
}

.room-card-item.hidden-card {
    opacity: 0;
    transform: scale(0);
    max-width: 0;
    padding: 0 !important;
    overflow: hidden;
}

.pill-all-rooms {
    background: #f1f1f1 !important;
    color: #4f4f4f;
}

html[data-theme="dark"] .pill-all-rooms {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #e0e0e0 !important;
}