/* =====================================================
   Trips24x7 Unified Management System — Design System
   ===================================================== */

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

/* ---- CSS Custom Properties ---- */
:root {
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #f59e0b;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #fff;
  --sidebar-width: 260px;

  --accent: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fef3c7;

  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;

  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);

  --transition: all 0.25s ease;
  --font: 'Inter', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
ul { list-style: none; }

/* ---- Login Page ---- */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  top: -150px; right: -150px;
  border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,.12) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
}
.login-card {
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 48px 40px;
  width: 420px;
  max-width: calc(100vw - 32px);
  position: relative;
  z-index: 1;
  box-shadow: 0 25px 80px rgba(0,0,0,.4);
  animation: fadeInUp 0.6s ease;
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .brand-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 32px;
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
}
.login-logo h1 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.login-logo p { color: rgba(255,255,255,.5); font-size: 13px; margin-top: 4px; }
.login-form label { display: block; color: rgba(255,255,255,.7); font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.login-form input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
}
.login-form input::placeholder { color: rgba(255,255,255,.35); }
.login-remember {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.65); font-size: 13px; margin-bottom: 24px;
  cursor: pointer;
}
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(245,158,11,.5); }
.login-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.login-footer { text-align: center; margin-top: 24px; color: rgba(255,255,255,.35); font-size: 12px; }

/* ---- App Layout ---- */
.app-layout { display: flex; min-height: 100vh; }

/* ---- Sidebar ---- */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #2d3748 transparent;
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand-logo {
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sidebar-brand-text h2 { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.2; }
.sidebar-brand-text span { color: rgba(255,255,255,.4); font-size: 11px; }

.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-section-title {
  color: rgba(255,255,255,.25);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 20px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  color: var(--sidebar-text);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
  border-radius: 0;
}
.nav-item:hover { background: var(--sidebar-hover); color: #fff; }
.nav-item.active {
  background: rgba(245,158,11,.1);
  color: var(--accent);
  border-left-color: var(--accent);
}
.nav-item .nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  min-width: 18px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
}
.sidebar-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #f97316);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-info .name { color: #fff; font-size: 13px; font-weight: 600; truncate: ellipsis; white-space: nowrap; overflow: hidden; }
.sidebar-user-info .role { color: rgba(255,255,255,.4); font-size: 11px; }
.btn-logout {
  background: none; border: none;
  color: rgba(255,255,255,.4);
  font-size: 18px;
  padding: 4px;
  transition: var(--transition);
}
.btn-logout:hover { color: var(--danger); }

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-menu-btn {
  display: none;
  background: none; border: none;
  font-size: 22px; color: var(--text-muted);
  padding: 4px;
}
.topbar-title { font-size: 18px; font-weight: 700; color: var(--text); flex: 1; }
.topbar-search {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  gap: 8px;
  max-width: 280px;
  width: 100%;
}
.topbar-search input {
  border: none; background: none;
  outline: none; font-size: 13px; color: var(--text);
  width: 100%;
}
.topbar-search .search-icon { color: var(--text-muted); font-size: 15px; }
.page-content { flex: 1; padding: 24px; }

/* ---- Module Sections ---- */
.module-section { display: none; }
.module-section.active { display: block; }

/* ---- Section Header ---- */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.section-header h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.section-header p { color: var(--text-muted); font-size: 13px; margin-top: 2px; }
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(110%); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(110%); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 8px; }

/* ---- Stats Cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(59,130,246,.1); }
.stat-icon.green  { background: rgba(16,185,129,.1); }
.stat-icon.amber  { background: rgba(245,158,11,.1); }
.stat-icon.red    { background: rgba(239,68,68,.1); }
.stat-icon.purple { background: rgba(139,92,246,.1); }
.stat-icon.cyan   { background: rgba(6,182,212,.1); }
.stat-info {}
.stat-value { font-size: 28px; font-weight: 800; line-height: 1; color: var(--text); }
.stat-label { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ---- Cards ---- */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-header h3 { font-size: 15px; font-weight: 700; }
.card-body { padding: 20px; }

/* ---- Charts Grid ---- */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.chart-container { position: relative; height: 220px; }

/* ---- Table ---- */
.table-wrapper { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
thead th {
  background: var(--bg);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tbody tr:hover { background: var(--bg); }
tbody tr:last-child td { border-bottom: none; }

/* ---- Filters Bar ---- */
.filters-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filter-input {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  background: #fff;
  transition: var(--transition);
  color: var(--text);
}
.filter-input:focus { border-color: var(--primary); }

/* ---- Badges / Status ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.badge-success  { background: rgba(16,185,129,.12);  color: #059669; }
.badge-danger   { background: rgba(239,68,68,.12);   color: #dc2626; }
.badge-warning  { background: rgba(245,158,11,.12);  color: #d97706; }
.badge-info     { background: rgba(6,182,212,.12);   color: #0891b2; }
.badge-default  { background: var(--bg);             color: var(--text-muted); }
.badge-purple   { background: rgba(139,92,246,.12);  color: #7c3aed; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header h3 { font-size: 18px; font-weight: 800; }
.modal-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 22px;
  padding: 0; line-height: 1;
  transition: var(--transition);
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ---- Forms ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  background: #fff;
  color: var(--text);
  transition: var(--transition);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-muted); }
.form-divider { grid-column: 1/-1; border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.form-section-title { grid-column: 1/-1; font-size: 13px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ---- Checklist ---- */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.checklist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}
.checklist-item:hover { border-color: var(--success); background: rgba(16,185,129,.04); }
.checklist-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--success); }
.checklist-item.checked { border-color: var(--success); background: rgba(16,185,129,.06); }
.checklist-item span { font-size: 13px; }

/* ---- Room Grid ---- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.room-card {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}
.room-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.room-card.available { border-color: var(--success); }
.room-card.occupied   { border-color: var(--danger); }
.room-card.maintenance { border-color: var(--warning); }
.room-number { font-size: 24px; font-weight: 800; }
.room-type { color: var(--text-muted); font-size: 12px; }
.room-status-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-available  { background: var(--success); }
.dot-occupied   { background: var(--danger); }
.dot-maintenance { background: var(--warning); }

/* ---- Housekeeping Cards ---- */
.hk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hk-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}
.hk-card:hover { box-shadow: var(--shadow-md); }
.hk-card-header { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.hk-card-header.pending     { background: rgba(245,158,11,.08); }
.hk-card-header.in-progress { background: rgba(59,130,246,.08); }
.hk-card-header.completed   { background: rgba(16,185,129,.08); }
.hk-card-body { padding: 14px 16px; }
.hk-progress { height: 4px; background: var(--border); border-radius: 2px; margin: 8px 0; }
.hk-progress-bar { height: 100%; border-radius: 2px; background: var(--success); transition: width 0.4s ease; }

/* ---- Toast Notifications ---- */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.35s ease;
  display: flex; align-items: center; gap: 10px;
  max-width: 320px;
  border-left: 4px solid var(--success);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast.toast-error   { border-left-color: var(--danger); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info    { border-left-color: var(--info); }

/* ---- Loading Overlay ---- */
#loading-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.7);
  display: none; align-items: center; justify-content: center;
  z-index: 9998;
  flex-direction: column; gap: 16px;
}
.spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
#loading-overlay p { color: rgba(255,255,255,.7); font-size: 14px; }

/* ---- Connection Banner ---- */
.connection-banner {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: #dc2626;
  margin-bottom: 16px;
}
.connection-banner.success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.2); color: #059669; }

/* ---- Payroll ---- */
.payroll-summary {
  background: linear-gradient(135deg, var(--sidebar-bg), #1e293b);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: #fff;
  margin-bottom: 16px;
  display: flex; gap: 32px; flex-wrap: wrap;
}
.payroll-summary .ps-item .label { font-size: 12px; color: rgba(255,255,255,.5); }
.payroll-summary .ps-item .value { font-size: 22px; font-weight: 800; }

/* ---- Calendar ---- */
.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; text-align: center;
}
.cal-header { font-size: 11px; font-weight: 700; color: var(--text-muted); padding: 6px 0; text-transform: uppercase; }
.cal-day {
  padding: 8px 4px; border-radius: 8px;
  font-size: 13px; cursor: default; transition: var(--transition);
}
.cal-day.other-month { color: var(--text-light); }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.occupied { background: rgba(239,68,68,.12); color: var(--danger); }
.cal-day.available { background: rgba(16,185,129,.1); }

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 60px 24px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; }

/* ---- Animations ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-in { animation: fadeInUp 0.4s ease; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar-menu-btn { display: flex; }
  .sidebar-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 99; display: none;
  }
  .sidebar-overlay.open { display: block; }
}
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header { flex-direction: column; align-items: flex-start; }
  .topbar-search { display: none; }
  .page-content { padding: 16px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .login-card { padding: 32px 24px; }
}
