/* ======================================================
   Unified Stay Management - MAIN.CSS  (LIGHT THEME)
   Roomify Deluxe — 70% light, 30% dark shell (sidebar via layout.css)
   Framework: Bootstrap 5.3.x + jQuery + DataTables + Chart.js
   ------------------------------------------------------
   Highlights:
   - Bright content, strong contrast
   - Elegant cards (solid / glass / gradient-border)
   - Rich buttons (filled / soft / outline / ghost)
   - Forms with required cues, helper/invalid states
   - Select2 / Flatpickr / noUiSlider styling
   - DataTables fully themed (buttons, row select, filters)
   - Loaders: spinner, dots, bar, shimmer
   - Utilities: focus rings, chips, tags, scrollbars, tooltips
   ====================================================== */

/* ------------------------------------------------------
   0) THEME VARIABLES
------------------------------------------------------ */

:root {
  color-scheme: light;

  /* Brand */
  --hrm-primary: #2563eb; /* blue */
  --hrm-primary-strong: #1d4ed8;
  --hrm-secondary: #0ea5e9; /* cyan */
  --hrm-accent: #ec4899; /* pink */
  --hrm-success: #16a34a;
  --hrm-warning: #f59e0b;
  --hrm-danger: #ef4444;

  /* Surfaces & text */
  --hrm-bg: #f5f7ff;
  --hrm-bg-soft: #e9efff;
  --hrm-surface: #ffffff;

  --hrm-text: #0f172a;
  --hrm-text-muted: #6b7280;

  /* Lines, shadows, radii */
  --hrm-border-subtle: rgba(148, 163, 184, 0.45);
  --hrm-border-soft: rgba(148, 163, 184, 0.22);

  --hrm-radius-lg: 18px;
  --hrm-radius-md: 12px;
  --hrm-radius-sm: 8px;

  --hrm-shadow-soft: 0 6px 18px rgba(15, 23, 42, 0.06);
  --hrm-shadow-card: 0 14px 36px rgba(15, 23, 42, 0.1);
  --hrm-shadow-strong: 0 22px 45px rgba(15, 23, 42, 0.16);

  /* Gradients */
  --hrm-gradient-primary: linear-gradient(135deg, #2563eb, #0ea5e9);
  --hrm-gradient-accent: linear-gradient(135deg, #ec4899, #f97316);
  --hrm-gradient-green: linear-gradient(135deg, #22c55e, #16a34a);
  --hrm-gradient-danger: linear-gradient(135deg, #f97373, #ef4444);

  /* Transitions */
  --hrm-tr: 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  --hrm-tr-fast: 0.14s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ------------------------------------------------------
   1) GLOBAL BASE – LIGHT CONTENT AREA
------------------------------------------------------ */

html,
body {
  height: 100%;
}

body {
  background: radial-gradient(circle at 0% 0%, #e0f2fe 0, transparent 45%),
    radial-gradient(circle at 100% 100%, #fee2f2 0, transparent 50%),
    var(--hrm-bg) !important;
  color: var(--hrm-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* keep app containers transparent, content remains bright */
.app-shell,
.app-wrapper,
.app-main,
.main-panel,
.content-wrapper,
.page-wrapper,
.app-content {
  background: transparent !important;
  color: var(--hrm-text);
}

/* central content spacing */
.app-content {
  flex: 1;
  padding: 16px 14px;
  overflow-x: hidden;
}

/* FORCE bright cards inside app-content (requested) */
.app-content > .card-hrm,
.app-content > .hrm-card,
.app-content > .card-surface {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

/* ------------------------------------------------------
   1.1) CARD SURFACES
------------------------------------------------------ */

.card-surface,
.hrm-card {
  background: var(--hrm-surface);
  border-radius: var(--hrm-radius-lg);
  box-shadow: var(--hrm-shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.16);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

/* top color accent strip */
.card-surface::before,
.hrm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    #2563eb,
    #0ea5e9,
    #22c55e,
    #f97316,
    #ec4899
  );
  opacity: 0.45;
  pointer-events: none;
}

.card-surface:hover,
.hrm-card:hover {
  box-shadow: var(--hrm-shadow-card);
  transform: translateY(-2px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* animated content card */
.card-hrm {
  background: #ffffff;
  border-radius: 18px;
  margin-bottom: 18px;
  padding: 16px 16px 10px 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.26s ease, transform 0.26s ease, box-shadow 0.26s ease;
}
.card-hrm .card-body-like {
  padding: 14px 16px;
}
.reveal {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Card variants */
.card-glass {
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.card-gradient-border {
  position: relative;
  border: 1px solid transparent;
  background: #fff;
}
.card-gradient-border::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* stat tiles */
.stat-card {
  border-radius: var(--hrm-radius-lg);
  padding: 14px 16px;
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  box-shadow: var(--hrm-shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.22);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.stat-card-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hrm-text-muted);
  margin-bottom: 4px;
}
.stat-card-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--hrm-primary-strong);
}
.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 0%, #eff6ff, #e0f2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

/* ------------------------------------------------------
   1.2) PAGE HEAD (TITLE BAR)
------------------------------------------------------ */

.page-head {
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
  border-radius: 18px;
  padding: 16px 20px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.page-head h5 {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #0f172a;
}
.page-head small {
  color: var(--hrm-text-muted);
  font-size: 12px;
}

/* ------------------------------------------------------
   1.3) KEY-VALUE GRID (VIEW PAGES)
------------------------------------------------------ */

.kv {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.kv-item {
  grid-column: span 4;
  background: #f9fafb;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}
.kv-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top left,
    rgba(37, 99, 235, 0.12),
    transparent
  );
  opacity: 0;
  transition: opacity 0.16s ease;
  pointer-events: none;
}
.kv-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
  border-color: rgba(37, 99, 235, 0.55);
}
.kv-item:hover::before {
  opacity: 1;
}
.kv-item.span-6 {
  grid-column: span 6;
}
.kv-item.span-12 {
  grid-column: span 12;
}
.kv-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hrm-text-muted);
  margin-bottom: 3px;
}
.kv-value {
  font-weight: 600;
  color: var(--hrm-text);
  word-break: break-word;
}

/* skeleton shimmer */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e5e7eb;
  border-radius: 14px;
  height: 54px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(100%);
  }
}

/* ------------------------------------------------------
   2) BUTTONS (Bootstrap-friendly)
------------------------------------------------------ */

.btn-mat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hrm-gradient-primary);
  border: none;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  border-radius: 999px;
  padding: 7px 18px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.42);
  line-height: 1.3;
}
.btn-mat:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.55);
  filter: brightness(1.05);
}
.btn-mat:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.45);
}

/* soft / ghost / outline variants */
.btn-mat-light {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  border-radius: 999px;
  color: var(--hrm-text);
  border: 1px solid rgba(148, 163, 184, 0.8);
  padding: 6px 14px;
}
.btn-ghost {
  background: transparent;
  color: var(--hrm-primary);
  border: 1px dashed rgba(37, 99, 235, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
}
.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.06);
}

.btn-outline-primary {
  border-color: var(--hrm-primary);
  color: var(--hrm-primary);
}
.btn-outline-primary:hover {
  background: rgba(37, 99, 235, 0.08);
}

.btn-primary {
  background: var(--hrm-gradient-primary);
  border: none;
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.6);
}

/* icon-only & row action */
.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(37, 99, 235, 0.08);
  color: var(--hrm-primary-strong);
  cursor: pointer;
  transition: transform 0.1s ease, background 0.1s ease;
}
.btn-icon:hover {
  transform: translateY(-1px);
  background: rgba(37, 99, 235, 0.2);
}

.btn-table {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  margin-right: 3px;
}
.btn-table:last-child {
  margin-right: 0;
}
.btn-table:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.22);
}
.btn-table.view {
  background: #22c55e;
  color: #fff;
}
.btn-table.edit {
  background: #f59e0b;
  color: #fff;
}
.btn-table.delete {
  background: #ef4444;
  color: #fff;
}

/* sheen + ripple */
.btn,
.btn-mat,
.btn-mat-light,
.btn-table {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn-mat::after,
.btn-mat-light::after,
.btn.btn-primary::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.26) 40%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.6s cubic-bezier(0.22, 0.6, 0.2, 1);
  mix-blend-mode: screen;
}
.btn-mat:hover::after,
.btn-mat-light:hover::after,
.btn.btn-primary:hover::after {
  transform: translateX(120%);
}
.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 620ms linear;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ------------------------------------------------------
   3) FORMS / INPUTS / VALIDATION + PLUGINS
------------------------------------------------------ */

.input-field {
  margin-top: 6px;
  margin-bottom: 10px;
}

/* Text inputs & selects (Bootstrap integrated) */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="password"],
textarea,
select,
.form-control,
.form-select {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px !important;
  background: #fff;
  padding: 7px 10px !important;
  font-size: 13px !important;
  transition: border var(--hrm-tr-fast), box-shadow var(--hrm-tr-fast),
    background-color var(--hrm-tr-fast);
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background-color: #f9fafb;
}

/* Required asterisk helper */
.required::after {
  content: " *";
  color: var(--hrm-danger);
  font-weight: 700;
}
/* Inline helper text */
.form-hint {
  font-size: 11px;
  color: var(--hrm-text-muted);
}

/* Invalid states */
.is-invalid,
input.invalid,
select.invalid,
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: rgba(239, 68, 68, 0.95) !important;
  background: rgba(254, 226, 226, 0.6);
}
.invalid-feedback,
.form-error,
.invalid-msg {
  font-size: 11px;
  color: #ef4444;
  margin-top: 2px;
}

/* Custom checkboxes & radios */
.form-check-input {
  border-radius: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}
.form-check-input:checked {
  background-color: var(--hrm-primary);
  border-color: var(--hrm-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

/* Switch */
.form-switch .form-check-input {
  width: 3rem;
  height: 1.5rem;
  border-radius: 2rem;
  background-color: #e5e7eb;
  background-image: none;
  position: relative;
}
.form-switch .form-check-input:checked {
  background-color: #bfdbfe;
}
.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  transition: left var(--hrm-tr);
}
.form-switch .form-check-input:checked::before {
  left: calc(100% - 1.1rem - 2px);
}

/* Input group */
.input-group .input-group-text {
  background: #f3f6ff;
  border-color: rgba(148, 163, 184, 0.5);
  color: #334155;
  font-size: 13px;
}

/* Select2 */
.select2-container .select2-selection--single {
  height: 36px;
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  font-size: 13px;
  color: var(--hrm-text);
  padding-left: 10px;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 100%;
  right: 8px;
}

/* Flatpickr */
.flatpickr-calendar {
  box-shadow: var(--hrm-shadow-strong);
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: var(--hrm-primary);
  border-color: var(--hrm-primary);
}

/* noUiSlider */
.noUi-target {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
}
.noUi-connect {
  background: var(--hrm-gradient-primary);
}
.noUi-handle {
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

/* Textarea autoresize look */
textarea {
  resize: vertical;
  min-height: 90px;
}

/* ------------------------------------------------------
   4) TABLES / DATATABLES
------------------------------------------------------ */

.table-responsive-soft {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

/* Base bootstrap */
.table thead th {
  background: #eff4ff;
  color: var(--hrm-text);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid var(--hrm-border-subtle);
  white-space: nowrap;
}
.table-hover tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

/* Striped alt */
table.striped > thead > tr > th {
  background: transparent;
  color: var(--hrm-text);
  font-weight: 600;
  font-size: 12.5px;
  border-bottom: 1px solid var(--hrm-border-subtle);
  white-space: normal;
}
table.striped > tbody > tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

/* DataTables */
.dataTables_wrapper .dataTables_filter label {
  font-size: 12px;
}
.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  padding: 4px 10px;
  height: 34px;
  line-height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  width: 240px;
  max-width: 32vw;
}
.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  padding: 2px 6px;
}

/* Buttons */
.dt-buttons .dt-button,
button.dt-button {
  background: #fff !important;
  border: 1px solid rgba(148, 163, 184, 0.4) !important;
  border-radius: 999px !important;
  color: #0f172a !important;
  font-size: 12px !important;
  padding: 4px 12px !important;
  text-transform: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  margin-right: 6px;
}
.dt-buttons .dt-button:hover {
  background: rgba(37, 99, 235, 0.06) !important;
}

/* Pagination & selected row */
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 999px !important;
  border: 1px solid transparent;
  margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #fff !important;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--hrm-text) !important;
}
table.dataTable tbody tr.selected {
  background: rgba(37, 99, 235, 0.08);
  box-shadow: inset 3px 0 0 #2563eb;
}

/* Filter row */
table.dataTable thead tr.filters th {
  background: #fff !important;
  padding: 4px 6px;
}
table.dataTable thead tr.filters input {
  width: 100%;
  height: 30px;
  line-height: 30px;
  font-size: 11px;
  padding: 2px 8px;
  margin: 0;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  box-sizing: border-box;
}
table.dataTable thead tr:last-child th {
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}

/* RowGroup look */
.dtrg-group,
.dtrg-start,
.dtrg-end {
  background: #e0ebff !important;
  font-weight: 600;
}

/* Guest Register tweaks */
#tblGuestRegister tbody tr {
  transition: background-color 0.12s ease, box-shadow 0.12s ease,
    transform 0.12s ease;
}
#tblGuestRegister tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
#tblGuestRegister tbody tr td {
  vertical-align: middle;
}

.dataTables_wrapper .dataTables_info {
  padding-top: 14px !important;
}
.dataTables_wrapper .dataTables_paginate {
  padding-top: 10px !important;
}

/* Processing overlay */
div.dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--hrm-shadow-strong);
  border: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 3;
  color: var(--hrm-text);
}
.dt-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(37, 99, 235, 0.28);
  border-top-color: #2563eb;
  border-radius: 999px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  animation: spin 0.9s linear infinite;
}

table.dataTable {
  margin: 0 !important;
  width: 100% !important;
}
#tblUserRegister td:nth-child(3),
#tblUserRegister td:nth-child(4) {
  white-space: normal;
  word-break: break-word;
}

/* ------------------------------------------------------
   5) LOADERS / OVERLAYS
------------------------------------------------------ */

.app-loader {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.12);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.app-loader.show,
.ajax-loading .app-loader {
  display: flex;
}

.loader-box {
  background: #fff;
  padding: 18px 22px;
  border-radius: 18px;
  box-shadow: var(--hrm-shadow-strong);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  min-width: 190px;
  animation: fadeIn 0.16s ease, floatBox 1.8s ease-in-out infinite alternate;
}
.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(37, 99, 235, 0.28);
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}
.loader-text {
  font-size: 12px;
  color: var(--hrm-text);
  opacity: 0.8;
}

/* dots loader */
.loader-dots {
  display: flex;
  gap: 6px;
}
.loader-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  animation: dot 1s ease-in-out infinite;
}
.loader-dots span:nth-child(2) {
  animation-delay: 0.18s;
}
.loader-dots span:nth-child(3) {
  animation-delay: 0.32s;
}
@keyframes dot {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  40% {
    transform: translateY(-6px);
    opacity: 1;
  }
}

/* thin progress bar */
.loader-bar {
  width: 220px;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
  position: relative;
}
.loader-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hrm-gradient-primary);
  transform: translateX(-100%);
  animation: barMove 1.4s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes barMove {
  50% {
    transform: translateX(-10%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* ------------------------------------------------------
   6) ANIMATIONS / UTILITIES / MISC
------------------------------------------------------ */

.fade-in {
  animation: fadeIn 0.18s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes floatBox {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-4px);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.shadow-sm {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}
.rounded-lg {
  border-radius: 16px;
}

/* Layout helpers */
.flex {
  display: flex;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gap-6 {
  gap: 6px;
}
.gap-10 {
  gap: 10px;
}

/* Chips / tags */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #1f2937;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 12px;
}
.chip .chip-close {
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Tooltip (pure CSS helper) */
.tooltip-lite {
  position: relative;
  cursor: help;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.7);
}
.tooltip-lite:hover::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #0f172a;
  color: #fff;
  padding: 6px 8px;
  font-size: 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
  z-index: 10;
}

/* Selection & Scrollbars */
::selection {
  background: rgba(37, 99, 235, 0.25);
  color: #0f172a;
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.5) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c7d2fe, #e0e7ff);
  border-radius: 999px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}

/* Icon animations (hotel feel) */
.hotel-bell {
  display: inline-block;
  transform-origin: 10% 10%;
  animation: bell-ring 1.6s ease-in-out infinite;
}
@keyframes bell-ring {
  0%,
  100% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(12deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(8deg);
  }
  40% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(4deg);
  }
  60% {
    transform: rotate(-2deg);
  }
}
.hotel-key {
  display: inline-block;
  transform-origin: 50% 60%;
  animation: key-wiggle 1.8s ease-in-out infinite;
}
@keyframes key-wiggle {
  0%,
  100% {
    transform: rotate(0) translateX(0);
  }
  30% {
    transform: rotate(-12deg) translateX(-1px);
  }
  60% {
    transform: rotate(10deg) translateX(1px);
  }
}
.hotel-door {
  display: inline-block;
  transform-origin: left center;
  animation: door-swing 2.2s ease-in-out infinite;
}
@keyframes door-swing {
  0%,
  100% {
    transform: perspective(180px) rotateY(0);
  }
  50% {
    transform: perspective(180px) rotateY(-18deg);
  }
}
.hotel-bed {
  display: inline-block;
  animation: bed-bounce 2.2s ease-in-out infinite;
}
@keyframes bed-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
}

/* Icon sizes */
.icon-16 {
  font-size: 16px;
}
.icon-20 {
  font-size: 20px;
}
.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

/* ------------------------------------------------------
   6.2) SWEETALERT2 & TOASTR
------------------------------------------------------ */

.swal2-popup {
  border-radius: 18px !important;
  box-shadow: var(--hrm-shadow-strong) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}
.swal2-title {
  font-size: 18px !important;
  font-weight: 600 !important;
}
.swal2-confirm {
  border-radius: 999px !important;
  padding: 6px 18px !important;
  background: var(--hrm-gradient-primary) !important;
  border: none !important;
}
.swal2-cancel {
  border-radius: 999px !important;
}

#toast-container > div {
  border-radius: 14px;
  box-shadow: var(--hrm-shadow-strong);
  padding: 10px 12px 10px 38px;
}
.toast-success {
  background: var(--hrm-gradient-green);
}
.toast-error {
  background: var(--hrm-gradient-danger);
}
.toast-info {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
}
.toast-warning {
  background: linear-gradient(135deg, #facc15, #eab308);
}

/* ------------------------------------------------------
   6.3) CHART.JS CONTAINERS
------------------------------------------------------ */

.chart-card {
  position: relative;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--hrm-shadow-card);
  border: 1px solid rgba(148, 163, 184, 0.2);
}
.chart-card .chart-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ------------------------------------------------------
   7) RESPONSIVE
------------------------------------------------------ */

@media (max-width: 1199.98px) {
  .hrm-card-body,
  .card-surface {
    padding: 12px;
  }
  .dataTables_wrapper .dataTables_filter {
    float: none;
    text-align: left;
    margin-top: 6px;
  }
  .kv-item {
    grid-column: span 6;
  }
}
@media (max-width: 991.98px) {
  .hrm-card-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dt-buttons {
    margin-bottom: 6px;
  }
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none;
  }
  .table-responsive-soft {
    margin-bottom: 10px;
  }
  .card-hrm .dataTables_wrapper .dataTables_filter {
    justify-content: stretch;
  }
  .card-hrm .dataTables_wrapper .dataTables_filter label {
    width: 100%;
  }
  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    max-width: 100%;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
@media (max-width: 767.98px) {
  .btn-mat {
    border-radius: 10px;
  }
  table.dataTable thead tr.filters th {
    padding: 2px 2px 4px;
  }
  td .btn-table {
    margin-bottom: 4px;
  }
  .dt-buttons .dt-button,
  button.dt-button {
    margin-bottom: 5px;
  }
  .kv-item {
    grid-column: span 12;
  }
  .page-head {
    padding: 14px 16px 10px;
  }
}
@media (max-width: 575.98px) {
  .hrm-card,
  .card-surface,
  .card-hrm {
    border-radius: 14px;
  }
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    float: none;
    text-align: left;
    margin-top: 6px;
  }
  .btn-mat {
    width: auto;
  }
  .loader-box {
    width: 86%;
  }
}
@media (max-width: 430px) {
  .dt-buttons .dt-button,
  button.dt-button {
    width: 100%;
  }
  table.dataTable thead tr.filters th input {
    font-size: 10px;
  }
}
