/* ============================================================
   HMS — Hotel Management System  v2.0
   Smooth · Animated · Polished
   ============================================================ */

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

:root {
  /* ── Brand Palette ── */
  --navy:         #0f1c2e;    /* primary dark — sidebar, auth bg */
  --navy-mid:     #162336;    /* sidebar hover states */
  --navy-light:   #1e3045;    /* sidebar borders */
  --teal:         #2a9d8f;    /* primary accent — buttons, active, links */
  --teal-light:   #3dbdb0;    /* hover teal */
  --teal-dim:     #1f7a6d;    /* pressed/dark teal */
  --teal-glow:    rgba(42,157,143,.22);
  --gold:         #e9c46a;    /* highlight accent — warnings, VIP */
  --gold-dim:     #c4932c;    /* darker gold */
  --ivory:        #f8f7f4;    /* warm white surface */
  --white:        #ffffff;

  /* ── Semantic Surfaces ── */
  --bg-page:      #edebe6;    /* warm off-white page background */
  --bg-card:      #ffffff;    /* card / panel background */
  --bg-sidebar:   var(--navy);
  --bg-input:     #ffffff;

  /* ── Text ── */
  --text-primary: #1c1c2e;    /* main text — near black with blue tint */
  --text-muted:   #6b7280;    /* secondary text */
  --text-light:   #9ca3af;    /* placeholder, disabled */
  --text-on-dark: #e8e6e0;    /* text on dark (sidebar) */

  /* ── Borders ── */
  --border:       #dedad3;    /* default border */
  --border-focus: var(--teal);

  /* ── Status Colors ── */
  --success:      #10b981;  --success-bg: #d1fae5;  --success-border: #6ee7b7;
  --warning:      #f59e0b;  --warning-bg: #fef3c7;  --warning-border: #fcd34d;
  --danger:       #ef4444;  --danger-bg:  #fee2e2;  --danger-border:  #fca5a5;
  --info:         #3b82f6;  --info-bg:    #dbeafe;  --info-border:    #93c5fd;

  /* ── Layout ── */
  --sidebar-w:    240px;
  --topbar-h:     60px;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --radius-lg:    16px;

  /* ── Elevation ── */
  --shadow-xs:    0 1px 2px rgba(15,28,46,.07);
  --shadow:       0 2px 8px rgba(15,28,46,.09), 0 1px 2px rgba(15,28,46,.05);
  --shadow-md:    0 8px 24px rgba(15,28,46,.12);
  --shadow-lg:    0 20px 60px rgba(15,28,46,.20);
  --shadow-teal:  0 4px 14px rgba(42,157,143,.35);

  /* ── Motion ── */
  --t-fast:   .12s;
  --t-base:   .2s;
  --t-slow:   .35s;
  --ease:     cubic-bezier(.4,0,.2,1);
  --spring:   cubic-bezier(.34,1.56,.64,1);
}

[data-theme="dark"] {
  --bg-page:      #0c111b;
  --bg-card:      #141926;
  --bg-input:     #1a2133;
  --text-primary: #e8e6e0;
  --text-muted:   #8b9ab0;
  --text-light:   #5a6a80;
  --border:       #252f42;
  --ivory:        #0c111b;
  --shadow:       0 2px 8px rgba(0,0,0,.35);
  --shadow-md:    0 8px 24px rgba(0,0,0,.45);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.6);
}

/* ── Base ───────────────────────────────────────────────────── */
html { font-size: 15px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; transition: color var(--t-base) var(--ease); }
a:hover { color: var(--teal-light); }
::selection { background: var(--teal-glow); }

/* ── Page entry animation ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px) scaleY(.96); }
  to   { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes badgePop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.page-content { animation: fadeUp .3s var(--ease) both; }

/* ── App Shell ──────────────────────────────────────────────── */
.app-shell { display: flex; min-height: 100vh; }

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #ffffff;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transform: translateX(-100%);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sidebar.open {
  transform: translateX(0);
  box-shadow: 4px 0 20px rgba(0,0,0,.08);
}

.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  backdrop-filter: blur(2px);
  cursor: pointer;
  animation: fadeIn .2s ease;
}
.sidebar-backdrop.show { display: block; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  user-select: none;
  min-height: var(--topbar-h);
}
.sidebar-logo .logo-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
  font-weight: 700;
  transition: transform var(--t-base) var(--spring);
}
.sidebar-logo:hover .logo-icon { transform: scale(1.06); }
.sidebar-logo img {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.logo-text { font-size: .85rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.logo-sub  { font-size: .68rem; color: var(--text-muted); }

.nav-section { padding: 12px 0 2px; }
.nav-section-label {
  font-size: .6rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-light);
  padding: 0 16px; margin-bottom: 2px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  color: var(--text-muted);
  font-size: .84rem; font-weight: 450;
  border-left: 3px solid transparent;
  border-radius: 0;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer; white-space: nowrap; text-decoration: none;
  position: relative;
  margin: 1px 8px;
  border-radius: var(--radius-sm);
  border-left: none;
}
.nav-item i { font-size: 1rem; flex-shrink: 0; transition: transform var(--t-base) var(--spring); color: var(--text-light); }
.nav-item:hover {
  background: var(--bg-page);
  color: var(--text-primary);
  text-decoration: none;
}
.nav-item:hover i { transform: translateX(2px); color: var(--teal); }
.nav-item.active {
  background: rgba(42,157,143,.1);
  color: var(--teal-dim);
  font-weight: 600;
  border-left: none;
}
.nav-item.active i { color: var(--teal); }
.nav-item:active { transform: scale(.98); }

.sidebar-footer {
  margin-top: auto;
  padding: 10px 8px;
  border-top: 1px solid var(--border);
}

/* ── Main Area ──────────────────────────────────────────────── */
.main-area { margin-left: 0; flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 90;
  height: var(--topbar-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.topbar-title { font-size: 1rem; font-weight: 600; color: var(--text-primary); flex: 1; }
.topbar-right { display: flex; align-items: center; gap: 8px; }

.topbar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--t-fast) var(--ease);
  position: relative;
}
.topbar-btn:hover {
  background: var(--bg-page);
  color: var(--text-primary);
  transform: scale(1.08);
}
.topbar-btn:active { transform: scale(.95); }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  font-size: .82rem;
}
.user-chip:hover {
  background: var(--bg-page);
  border-color: rgba(42,157,143,.3);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: .74rem; font-weight: 700; flex-shrink: 0;
  letter-spacing: .02em;
}
.user-name { color: var(--text-primary); font-weight: 600; font-size: .83rem; }
.user-role { color: var(--text-muted); font-size: .7rem; }

/* ── Page Content ────────────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.page-header h1 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); }
.breadcrumb { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.breadcrumb a { color: var(--text-muted); transition: color var(--t-base); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--text-primary); }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--t-base) var(--ease),
              transform var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.card-hover:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(42,157,143,.2);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: .95rem; font-weight: 600; color: var(--text-primary); }
.card-body  { padding: 20px; }
.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex; align-items: flex-start; gap: 14px;
  box-shadow: var(--shadow);
  transition: all var(--t-base) var(--ease);
  cursor: default;
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  border-radius: 50%;
  transform: translate(20px,-20px);
  opacity: .06;
  background: var(--teal);
  transition: transform var(--t-slow) var(--ease);
}
.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: rgba(42,157,143,.18);
}
.stat-card:hover::after { transform: translate(14px,-14px) scale(1.3); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  transition: transform var(--t-base) var(--spring);
}
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-4deg); }
.stat-icon.teal  { background: rgba(42,157,143,.12);  color: var(--teal); }
.stat-icon.gold  { background: rgba(233,196,106,.15); color: var(--gold-dim); }
.stat-icon.blue  { background: rgba(59,130,246,.12);  color: var(--info); }
.stat-icon.red   { background: rgba(239,68,68,.12);   color: var(--danger); }
.stat-icon.green { background: rgba(16,185,129,.12);  color: var(--success); }
.stat-icon.purple{ background: rgba(139,92,246,.12);  color: #7c3aed; }
.stat-icon.navy  { background: rgba(15,28,46,.1);     color: var(--navy); }
.stat-icon.orange{ background: rgba(245,158,11,.12);  color: var(--warning); }
.stat-label { font-size: .73rem; color: var(--text-muted); margin-bottom: 3px; font-weight: 500; }
.stat-value { font-size: 1.55rem; font-weight: 700; color: var(--text-primary); line-height: 1; }
.stat-sub   { font-size: .72rem; color: var(--text-muted); margin-top: 5px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: .84rem; font-weight: 500;
  cursor: pointer; border: 1px solid transparent;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap; text-decoration: none;
  position: relative; overflow: hidden;
  letter-spacing: .01em;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}
.btn:hover::after { background: rgba(255,255,255,.1); }
.btn:active { transform: scale(.97); }
.btn i { font-size: .95rem; }

.btn-sm  { padding: 5px 12px; font-size: .78rem; }
.btn-lg  { padding: 11px 24px; font-size: .95rem; }
.btn-icon { padding: 7px; border-radius: var(--radius-sm); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: white; border-color: var(--teal);
  box-shadow: 0 2px 6px rgba(42,157,143,.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  box-shadow: 0 4px 14px rgba(42,157,143,.45);
  transform: translateY(-1px);
  color: white;
}
.btn-primary:active { transform: translateY(0); box-shadow: 0 1px 4px rgba(42,157,143,.3); }

.btn-secondary {
  background: var(--bg-card); color: var(--text-primary); border-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  background: var(--bg-page);
  border-color: rgba(42,157,143,.35);
  color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #dc2626);
  color: white; border-color: var(--danger);
  box-shadow: 0 2px 6px rgba(239,68,68,.3);
}
.btn-danger:hover {
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
  transform: translateY(-1px); color: white;
}

.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-page); color: var(--teal);
  border-color: rgba(42,157,143,.2);
}

.btn-outline {
  background: transparent; color: var(--teal); border-color: var(--teal);
}
.btn-outline:hover {
  background: var(--teal); color: white;
  box-shadow: 0 3px 10px rgba(42,157,143,.3);
  transform: translateY(-1px);
}

/* Loading spinner on button */
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::before {
  content: '';
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  margin-right: 4px;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .82rem; font-weight: 500;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-label .required { color: var(--danger); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-primary);
  background: var(--bg-input);
  transition: border-color var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background var(--t-base);
  outline: none;
  font-family: inherit;
}
.form-control:hover:not(:focus) { border-color: rgba(42,157,143,.4); }
.form-control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,.18);
  background: var(--bg-card);
}
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.15); }
.form-text { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.invalid-feedback { font-size: .75rem; color: var(--danger); margin-top: 4px; animation: fadeIn .2s; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 18px; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead th {
  background: var(--bg-page);
  color: var(--text-muted);
  font-size: .71rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
  text-align: left;
  transition: color var(--t-base);
  position: relative;
}
thead th:hover { color: var(--text-primary); }
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-primary);
  vertical-align: middle;
  transition: background var(--t-fast) var(--ease);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background var(--t-fast) var(--ease),
              transform var(--t-fast) var(--ease);
}
tbody tr:hover td { background: rgba(42,157,143,.05); }
tbody tr.clickable-row { cursor: pointer; }
tbody tr.clickable-row:hover td {
  background: rgba(42,157,143,.07);
}
tbody tr.clickable-row:hover td:first-child {
  border-left: 3px solid var(--teal);
}
tbody tr.clickable-row:active td { background: rgba(42,157,143,.12); }
.td-actions { display: flex; gap: 6px; align-items: center; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: .7rem; font-weight: 600; letter-spacing: .03em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--spring),
              box-shadow var(--t-fast);
}
.badge:hover { transform: scale(1.05); }
.badge-success { background: var(--success-bg);  color: #065f46;  border: 1px solid var(--success-border); }
.badge-warning { background: var(--warning-bg);  color: #92400e;  border: 1px solid var(--warning-border); }
.badge-danger  { background: var(--danger-bg);   color: #991b1b;  border: 1px solid var(--danger-border); }
.badge-info    { background: var(--info-bg);      color: #1e40af;  border: 1px solid var(--info-border); }
.badge-muted   { background: var(--bg-page);      color: var(--text-muted); border: 1px solid var(--border); }
.badge-teal    { background: var(--teal-glow);    color: var(--teal-dim);   border: 1px solid rgba(42,157,143,.2); }
.badge-gold    { background: rgba(233,196,106,.18); color: var(--gold-dim); border: 1px solid rgba(233,196,106,.3); }
.badge-navy    { background: rgba(15,28,46,.08);  color: var(--navy);       border: 1px solid rgba(15,28,46,.15); }
.badge-dot::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: currentColor; display: inline-block;
}

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem; margin-bottom: 18px;
  border: 1px solid transparent;
  animation: slideDown .25s var(--ease);
}
.alert-success { background: var(--success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-error   { background: var(--danger-bg);  color: #991b1b; border-color: #fca5a5; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fcd34d; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border-color: #93c5fd; }

/* ── Pagination ──────────────────────────────────────────────── */
.pagination { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .8rem; color: var(--text-muted);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  text-decoration: none;
}
.page-link:hover {
  border-color: var(--teal); color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(42,157,143,.2);
}
.page-link.active {
  background: var(--teal); color: white;
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(42,157,143,.35);
}
.page-link.disabled { opacity: .4; pointer-events: none; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: 52px 24px;
  color: var(--text-muted);
  animation: fadeUp .4s var(--ease);
}
.empty-state i { font-size: 2.8rem; margin-bottom: 16px; opacity: .3; display: block; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.empty-state p  { font-size: .85rem; max-width: 300px; margin: 0 auto; }

/* ── Dropdowns ───────────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 190px; z-index: 200;
  display: none; overflow: hidden;
  transform-origin: top right;
}
.dropdown-menu.show {
  display: block;
  animation: slideDown .2s var(--ease);
}
.dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: .84rem; color: var(--text-primary);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-decoration: none;
  border: none; background: none; width: 100%;
}
.dropdown-item i { font-size: .95rem; color: var(--text-muted); transition: color var(--t-fast), transform var(--t-fast); }
.dropdown-item:hover {
  background: var(--bg-page);
  color: var(--teal);
  padding-left: 18px;
}
.dropdown-item:hover i { color: var(--teal); transform: scale(1.15); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger i { color: var(--danger); }
.dropdown-item.danger:hover { background: var(--danger-bg); padding-left: 18px; }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 300;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.show {
  display: flex;
  animation: fadeIn .2s var(--ease);
}
.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: scaleIn .22s var(--spring);
  border: 1px solid var(--border);
}
.modal-header {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: 1rem; font-weight: 600; }
.modal-body  { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end;
}
.modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: 6px;
  transition: all var(--t-fast);
  display: flex; align-items: center;
}
.modal-close:hover { background: var(--bg-page); color: var(--danger); transform: rotate(90deg); }

/* ── Skeleton loaders ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--bg-page) 25%, var(--border) 50%, var(--bg-page) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: var(--radius-xs);
}
.skeleton-text  { height: 14px; margin-bottom: 8px; }
.skeleton-title { height: 22px; width: 60%; margin-bottom: 12px; }
.skeleton-card  { height: 80px; border-radius: var(--radius); margin-bottom: 12px; }

/* ── Progress / Bars ─────────────────────────────────────────── */
.progress-bar {
  height: 6px; background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transition: width .6s var(--ease);
  position: relative;
  overflow: hidden;
}
.progress-fill::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  animation: shimmer 2s ease infinite;
}

/* ── Tab system ──────────────────────────────────────────────── */
.bp-tabs {
  display: flex; gap: 2px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px; flex-wrap: wrap;
}
.bp-tab {
  padding: 10px 18px;
  font-size: .84rem; font-weight: 500;
  color: var(--text-muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--t-base) var(--ease);
  border-radius: var(--radius-xs) var(--radius-xs) 0 0;
  display: flex; align-items: center; gap: 6px;
}
.bp-tab i { font-size: .9rem; }
.bp-tab:hover { color: var(--text-primary); background: var(--bg-page); }
.bp-tab.active { color: var(--teal); border-bottom-color: var(--teal); font-weight: 600; }
.tab-pane { display: none; animation: fadeUp .25s var(--ease); }
.tab-pane.active { display: block; }

/* ── Tooltips ────────────────────────────────────────────────── */
[data-tooltip] { position: relative; }
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: #e8e6e1;
  font-size: .72rem;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--t-fast) var(--ease);
  z-index: 999;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Input password toggle ───────────────────────────────────── */
.input-icon-group { position: relative; }
.input-icon-group .form-control { padding-right: 42px; }
.input-icon-btn {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.3); padding: 4px;
  display: flex; align-items: center;
  transition: color var(--t-base);
}
.input-icon-btn:hover { color: rgba(255,255,255,.7); }
.main-area .input-icon-btn { color: var(--text-light); }
.main-area .input-icon-btn:hover { color: var(--text-muted); }

/* ── Notification bell ───────────────────────────────────────── */
#notif-badge {
  animation: badgePop .3s var(--spring);
}
#notif-dropdown .dropdown-menu {
  min-width: 320px;
  transform-origin: top right;
}
#notif-list > div { transition: background var(--t-fast); }
#notif-list > div:hover { background: var(--bg-page); }

/* ── Floating action hint ────────────────────────────────────── */
.fab {
  position: fixed; bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  color: white; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(42,157,143,.45);
  transition: all var(--t-base) var(--spring);
  z-index: 80;
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 10px 28px rgba(42,157,143,.55); }
.fab:active { transform: scale(.95); }

/* ── Search highlight ────────────────────────────────────────── */
.search-hit { background: rgba(233,196,106,.35); border-radius: 3px; padding: 0 2px; }

/* ── Ripple effect on click ──────────────────────────────────── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  transform: scale(0);
  animation: ripple-anim .5s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ── Auth page ───────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 20% 50%, rgba(42,157,143,.18) 0%, transparent 70%),
    radial-gradient(ellipse 500px 700px at 80% 30%, rgba(233,196,106,.1) 0%, transparent 70%);
  animation: fadeIn 1s ease;
}
/* Floating orbs */
.auth-page::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42,157,143,.08), transparent);
  bottom: -100px; right: -100px;
  animation: pulse 6s ease-in-out infinite;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(16px);
  animation: slideUp .4s var(--spring);
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dim));
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(42,157,143,.45);
  animation: pulse 3s ease-in-out infinite;
}
.auth-hotel-name { font-size: 1.15rem; font-weight: 700; color: #e8e6e1; letter-spacing: .03em; }
.auth-tagline { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 4px; }
.auth-title { font-size: 1.25rem; font-weight: 600; color: #e8e6e1; margin-bottom: 6px; }
.auth-subtitle { font-size: .83rem; color: rgba(255,255,255,.45); margin-bottom: 26px; }
.auth-card .form-label { color: rgba(255,255,255,.7); }
.auth-card .form-control {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.12);
  color: #e8e6e1;
  transition: all var(--t-base);
}
.auth-card .form-control::placeholder { color: rgba(255,255,255,.22); }
.auth-card .form-control:hover:not(:focus) { border-color: rgba(255,255,255,.22); }
.auth-card .form-control:focus {
  background: rgba(255,255,255,.1);
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,157,143,.2);
}
.auth-card .btn-primary { width: 100%; justify-content: center; padding: 12px; font-size: .92rem; }
.auth-card .alert {
  background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.3);
  color: #fca5a5; font-size: .82rem;
}
.auth-footer {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  font-size: .7rem; color: rgba(255,255,255,.18); white-space: nowrap;
}

/* ── Utilities ───────────────────────────────────────────────── */
.d-flex { display: flex; }
.d-grid { display: grid; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; }
.gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.text-muted   { color: var(--text-muted) !important; }
.text-danger  { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.text-teal    { color: var(--teal) !important; }
.text-sm      { font-size: .8rem; }
.text-right   { text-align: right; }
.fw-600 { font-weight: 600; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:14px}.mt-4{margin-top:20px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:14px}.mb-4{margin-bottom:20px}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .sidebar,.topbar,.no-print { display: none !important; }
  .page-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}

/* ── Skeleton / loading states ───────────────────────────────── */
.page-loading {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: var(--text-muted); gap: 10px;
}
.page-loading::before {
  content: '';
  width: 20px; height: 20px;
  border: 2.5px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .table-wrap table { min-width: 520px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .page-content { padding: 14px; }
  .page-header { flex-wrap: wrap; gap: 10px; }
  .page-header h1 { font-size: 1.15rem; }
  .card-cols-2 { grid-template-columns: 1fr !important; }
  .col-hide-tablet { display: none !important; }
}

@media (max-width: 480px) {
  :root { --topbar-h: 54px; }
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar-title { font-size: .9rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { padding: 12px 10px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: .95rem; }
  .stat-value { font-size: 1.2rem; }
  .page-content { padding: 10px 10px 72px; }
  .auth-card { padding: 28px 20px; border-radius: 16px; max-width: calc(100vw - 28px); }
  .page-header { flex-direction: column; align-items: flex-start; }
  .page-header > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
  .page-header > div:last-child .btn { flex: 1; justify-content: center; }
  .user-name { display: none; }
  .table-wrap table { font-size: .78rem; min-width: 420px; }
  thead th, tbody td { padding: 8px 10px; }
  .bp-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .bp-tabs::-webkit-scrollbar { display: none; }
  .bp-tab { white-space: nowrap; font-size: .78rem; padding: 8px 14px; }
  .form-control { min-height: 42px; font-size: 16px; }
  select.form-control { font-size: 16px; }
  .btn { min-height: 38px; }
  .col-hide-phone { display: none !important; }
  #notif-menu {
    position: fixed !important; top: var(--topbar-h) !important;
    left: 0 !important; right: 0 !important;
    width: 100% !important; max-width: 100% !important;
    border-radius: 0 !important;
    max-height: calc(100vh - var(--topbar-h)) !important;
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 42px; }
  .nav-item { min-height: 46px; padding: 0 16px; }
  .dropdown-item { padding: 13px 16px; }
  input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; }
  /* Disable hover transforms on touch — use :active instead */
  .stat-card:hover { transform: none; }
  .stat-card:active { transform: scale(.98); }
  .btn:hover { transform: none; box-shadow: var(--shadow-xs); }
  .btn:active { transform: scale(.96); }
}

/* ── Mobile bottom nav ───────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--bg-sidebar);
  border-top: 1px solid rgba(255,255,255,.07);
  z-index: 80;
  padding: 4px 0 env(safe-area-inset-bottom, 4px);
}
.mobile-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  padding: 6px 2px; font-size: .6rem; font-weight: 500;
  transition: color .15s; min-height: 46px; justify-content: center;
}
.mobile-nav a i { font-size: 1.25rem; line-height: 1; }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--teal); }
@media (max-width: 480px) { .mobile-nav { display: flex; } }

/* ══════════════════════════════════════════════════════════════
   SIDEBAR v2 — Polished nav
   ══════════════════════════════════════════════════════════════ */

/* Logo icon fallback */
.sidebar-logo .logo-img {
  width: 34px; height: 34px;
  border-radius: 8px;
  object-fit: cover; flex-shrink: 0;
  transition: transform var(--t-base) var(--spring);
}
.sidebar-logo:hover .logo-img { transform: scale(1.06); }

/* Scrollable nav area */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Nav item span label */
.nav-item span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sidebar user info */
.sidebar-user { gap: 10px; padding: 10px 14px; }
.sidebar-user-info { min-width: 0; flex: 1; }
.sidebar-user-name {
  font-size: .79rem; font-weight: 600;
  color: var(--text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-user-role {
  font-size: .66rem;
  color: var(--text-muted);
}

/* Active nav indicator — teal dot on right */
.nav-item.active::after {
  content: '';
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  opacity: .8;
}

/* ══════════════════════════════════════════════════════════════
   TOPBAR v2
   ══════════════════════════════════════════════════════════════ */

/* Hamburger */
.hamburger-btn { flex-shrink: 0; }
.hamburger-btn:hover { border-color: var(--teal); }
.hamburger-btn i {
  transition: transform .25s var(--spring);
}
.sidebar.open ~ .main-area .hamburger-btn i { transform: rotate(90deg); }

/* User chip improvements */
.user-chip {
  gap: 8px; padding: 5px 8px 5px 5px;
  transition: all var(--t-base) var(--ease);
}
.user-chip .ti-chevron-down {
  transition: transform .2s var(--ease) !important;
}
#user-menu.show ~ * .ti-chevron-down,
.dropdown:has(#user-menu.show) .ti-chevron-down { transform: rotate(180deg); }

/* Notification bell */
.notif-btn { position: relative; }
.notif-badge {
  position: absolute;
  top: 3px; right: 3px;
  min-width: 17px; height: 17px;
  background: var(--danger);
  color: white;
  border-radius: 99px;
  font-size: .62rem; font-weight: 700;
  line-height: 17px; text-align: center;
  padding: 0 4px;
  border: 2px solid var(--bg-card);
  animation: badgePop .3s var(--spring);
}

/* Notification panel */
.notif-panel {
  width: 340px; right: 0; left: auto;
  max-height: 480px;
  display: none;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.notif-panel.show { display: flex; animation: slideDown .2s var(--ease); }
.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: .88rem;
  flex-shrink: 0;
}
.notif-mark-read {
  background: none; border: none; cursor: pointer;
  color: var(--teal); font-size: .75rem;
  padding: 2px 6px; border-radius: 5px;
  transition: background var(--t-fast);
}
.notif-mark-read:hover { background: rgba(42,157,143,.1); }
#notif-list {
  overflow-y: auto; flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--t-fast);
  animation: fadeIn .2s ease;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-page); }
.notif-item.unread { background: rgba(42,157,143,.05); }
.notif-item.unread:hover { background: rgba(42,157,143,.1); }
.notif-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem; flex-shrink: 0;
  margin-top: 2px;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title {
  font-size: .82rem; font-weight: 600;
  color: var(--text-primary); line-height: 1.3;
}
.notif-item:not(.unread) .notif-title { font-weight: 400; color: var(--text-muted); }
.notif-msg  { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: .7rem; color: var(--text-light); margin-top: 3px; }
.notif-dot  {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0; margin-top: 6px;
}

/* ══════════════════════════════════════════════════════════════
   GLOBAL COLOR MATCHING — every element uses brand palette
   Navy #0f1c2e · Teal #2a9d8f · Gold #e9c46a · Ivory #f8f7f4
   ══════════════════════════════════════════════════════════════ */

/* ── Selection & focus ring ─────────────────────────────────── */
::selection { background: var(--teal-glow); color: var(--teal-dim); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* ── Scrollbars (webkit) ─────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-light); }

/* ── Links ────────────────────────────────────────────────────── */
a { color: var(--teal); }
a:hover { color: var(--teal-light); }

/* ── Table head ─────────────────────────────────────────────── */
thead th {
  background: linear-gradient(to bottom, var(--bg-page), var(--bg-page));
  letter-spacing: .08em;
}

/* ── Active nav indicator matches teal perfectly ────────────── */
/* active nav defined in nav-item.active above */

/* topbar defined above */

/* ── Card border on hover — teal tint ───────────────────────── */
.card:hover { border-color: rgba(42,157,143,.15); }

/* sidebar is white — defined above */

/* ── Auth page matches navy exactly ─────────────────────────── */
.auth-page { background: var(--navy); }

/* ── POS buttons color match ─────────────────────────────────── */
.pos-btn { transition: all var(--t-base) var(--ease); }
.pos-btn:hover { transform: scale(1.03); box-shadow: var(--shadow-teal); }

/* ── Status badge dots ───────────────────────────────────────── */
.status-available { color: var(--success); }
.status-occupied  { color: var(--danger); }
.status-reserved  { color: var(--warning); }
.status-maintenance { color: var(--info); }

/* ── Progress bars — teal gradient ──────────────────────────── */
.progress-fill {
  background: linear-gradient(90deg, var(--teal-dim), var(--teal), var(--teal-light));
}
.progress-fill.warning { background: linear-gradient(90deg, #d97706, var(--warning), #fbbf24); }
.progress-fill.danger  { background: linear-gradient(90deg, #dc2626, var(--danger), #f87171); }

/* ── Highlighted / selected rows ─────────────────────────────── */
tbody tr.selected td { background: rgba(42,157,143,.08); }
tbody tr.selected td:first-child { border-left: 3px solid var(--teal); }

/* ── Form focus — consistent teal glow ──────────────────────── */
.form-control:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

/* ── Checkbox & radio — teal accent ─────────────────────────── */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  accent-color: var(--teal);
}

/* ── Chart / report colors — brand aligned ───────────────────── */
.chart-teal   { color: var(--teal); }
.chart-navy   { color: var(--navy); }
.chart-gold   { color: var(--gold); }
.chart-light  { color: var(--teal-light); }

/* ── Print — remove colors, keep readable ───────────────────── */
@media print {
  :root {
    --teal: #2a9d8f;
    --bg-page: #fff;
    --bg-card: #fff;
    --border: #ddd;
    --text-primary: #000;
    --text-muted: #555;
  }
}

/* ── Dark mode refinements ───────────────────────────────────── */
[data-theme="dark"] .topbar {
  background: var(--bg-card);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 var(--border);
}
[data-theme="dark"] thead th { background: rgba(255,255,255,.03); }
[data-theme="dark"] .stat-card:hover { border-color: rgba(42,157,143,.25); }
[data-theme="dark"] .form-control {
  background: var(--bg-input);
  border-color: var(--border);
  color: var(--text-primary);
}
[data-theme="dark"] .btn-secondary {
  background: var(--bg-input);
  border-color: var(--border);
}
[data-theme="dark"] .card { border-color: var(--border); }
[data-theme="dark"] .sidebar {
  background: var(--bg-card);
  border-right-color: var(--border);
}
[data-theme="dark"] .sidebar-logo { border-bottom-color: var(--border); }
[data-theme="dark"] .nav-item:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] .nav-item.active { background: rgba(42,157,143,.15); }
[data-theme="dark"] .sidebar-footer { border-top-color: var(--border); }
[data-theme="dark"] .badge-muted {
  background: rgba(255,255,255,.06);
  border-color: var(--border);
}
[data-theme="dark"] .badge-teal {
  background: rgba(42,157,143,.18);
  border-color: rgba(42,157,143,.3);
}
[data-theme="dark"] .topbar-btn:hover {
  background: rgba(255,255,255,.08);
  color: var(--text-primary);
}
[data-theme="dark"] .user-chip:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] tbody tr:hover td { background: rgba(42,157,143,.06); }
[data-theme="dark"] .page-link { background: var(--bg-card); }
[data-theme="dark"] .dropdown-menu {
  background: var(--bg-card);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
[data-theme="dark"] .modal { background: var(--bg-card); border-color: var(--border); }
[data-theme="dark"] .notif-panel { background: var(--bg-card); }
[data-theme="dark"] .notif-item.unread { background: rgba(42,157,143,.08); }
[data-theme="dark"] .notif-item:hover  { background: rgba(255,255,255,.04); }
