/* ============================================================
   CamRent Pro — Professional SaaS Design
   Palette: #FFFFFF · #00171F (Ink Black) · #003459 (Deep Space Blue)
            #007EA7 (Cerulean) · #00A8E8 (Fresh Sky)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ink:        #00171F;
  --deep:       #003459;
  --cerulean:   #007EA7;
  --sky:        #00A8E8;
  --white:      #FFFFFF;

  --bg:         #020D12;
  --surface:    #041A24;
  --surface-2:  #072230;
  --surface-3:  #0A2E40;
  --border:     #0D3D56;
  --border-2:   #155270;

  --text:       #E8F4F8;
  --text-2:     #8BB8C8;
  --text-3:     #4A7A8A;
  --muted:      #2A5F75;

  --accent:     #00A8E8;
  --accent-2:   #007EA7;
  --accent-glow: rgba(0,168,232,0.15);
  --accent-glow-strong: rgba(0,168,232,0.25);

  --red:        #EF4444;
  --orange:     #F59E0B;
  --green:      #10B981;
  --purple:     #8B5CF6;

  --sidebar-w:  240px;
  --topbar-h:   56px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-sm:  5px;
  --shadow:     0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6);
  --glow:       0 0 0 1px rgba(0,168,232,0.2), 0 4px 16px rgba(0,168,232,0.1);

  --font:       'Plus Jakarta Sans', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'Courier New', monospace;
}

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

html { font-size: 14px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cerulean); }

/* ── Layout ─────────────────────────────────────────────────── */
.app-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 100;
  transition: transform 0.25s cubic-bezier(.4,0,.2,1);
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(0,168,232,0.06) 0%, transparent 100%);
  pointer-events: none;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  height: var(--topbar-h);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, var(--sky), var(--cerulean));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0,168,232,0.3);
  flex-shrink: 0;
}

.logo-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.logo-sub {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.sidebar-section {
  padding: 16px 12px 8px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 4px;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--text-2);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
  margin-bottom: 1px;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-glow);
  color: var(--sky);
  border: 1px solid rgba(0,168,232,0.2);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: var(--sky);
  border-radius: 0 2px 2px 0;
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding: 12px;
  flex-shrink: 0;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 8px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--deep), var(--cerulean));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.user-info { min-width: 0; flex: 1; }

.user-email {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 10px;
  color: var(--sky);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  flex-shrink: 0;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.menu-btn:hover { background: var(--surface-2); color: var(--text); }

.topbar-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.2px;
}

.topbar-breadcrumb {
  font-size: 12px;
  color: var(--text-3);
  margin-left: auto;
}

/* ── Page ──────────────────────────────────────────────────── */
.page {
  padding: 24px 28px;
  flex: 1;
  overflow-y: auto;
}

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--text-3);
  font-size: 13px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.4px;
}

.page-subtitle {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
  font-weight: 400;
}

/* ── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 60px; height: 60px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.2s;
}

.stat-card:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.stat-card:hover::after { opacity: 1; }

.stat-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.stat-label {
  font-size: 11.5px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-trend {
  font-size: 11px;
  color: var(--green);
  margin-top: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.1px;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--sky);
  color: var(--ink);
  border-color: var(--sky);
}
.btn-primary:hover:not(:disabled) {
  background: #22B8F0;
  box-shadow: 0 4px 12px rgba(0,168,232,0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-2);
}
.btn-outline:hover:not(:disabled) {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--cerulean);
}

.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(239,68,68,0.3);
}
.btn-danger:hover:not(:disabled) {
  background: rgba(239,68,68,0.1);
  border-color: var(--red);
}

.btn-sm { padding: 5px 11px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

.btn-google {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-2);
  font-weight: 500;
}
.btn-google:hover:not(:disabled) {
  background: var(--surface-3);
  border-color: var(--cerulean);
}

/* ── Table ───────────────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr {
  transition: background 0.1s;
}

.data-table tbody tr:hover {
  background: var(--surface-2);
}

.table-loading, .table-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* ── Filters ─────────────────────────────────────────────────── */
.filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-select {
  min-width: 0;
  flex: 0 0 auto;
  max-width: 180px;
  padding: 7px 12px !important;
  font-size: 12.5px !important;
}

/* ── Form Inputs ─────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }

.form-group label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.12);
  background: var(--surface-3);
}

.form-input::placeholder { color: var(--muted); }

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A7A8A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

textarea.form-input { resize: vertical; min-height: 80px; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ── Search ──────────────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 7px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar:focus-within {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(0,168,232,0.1);
}

.search-icon { color: var(--text-3); font-size: 13px; flex-shrink: 0; }

.search-input {
  border: none;
  background: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  outline: none;
  width: 100%;
}

.search-input::placeholder { color: var(--muted); }

/* ── Modal ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s cubic-bezier(.4,0,.2,1);
}

@keyframes slideUp {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.2px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  line-height: 1;
}
.modal-close:hover { background: var(--surface-2); color: var(--text); }

.modal-body {
  padding: 22px;
  overflow-y: auto;
}

/* ── Status Badges ───────────────────────────────────────────── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: capitalize;
}

/* ── Action Buttons ──────────────────────────────────────────── */
.action-btns { display: flex; gap: 6px; align-items: center; }

/* ── Load More ───────────────────────────────────────────────── */
.load-more { text-align: center; margin-top: 16px; }

/* ── Mono ────────────────────────────────────────────────────── */
.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--sky);
  background: rgba(0,168,232,0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.muted { color: var(--text-3); font-size: 12px; }

/* ── Login Page ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0,52,89,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.login-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0,126,167,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--sky), var(--cerulean));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0,168,232,0.35);
}

.login-card h1 {
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-sub {
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 28px;
  letter-spacing: 0.2px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--text-3);
  font-size: 12px;
}
.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Toast ───────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 9999;
  max-width: 320px;
  box-shadow: var(--shadow-lg);
  border: 1px solid transparent;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #6EE7B7; }
.toast-error   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.3);  color: #FCA5A5; }

/* ── Item picker (rental form) ───────────────────────────────── */
.item-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  font-size: 13px;
  color: var(--text-2);
}
.item-row:last-child { border-bottom: none; }
.item-row:hover { background: var(--surface-3); }
.item-row.selected { background: var(--accent-glow); color: var(--sky); }
.item-price { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.check { color: var(--sky); font-size: 14px; flex-shrink: 0; }

/* ── Rental summary ──────────────────────────────────────────── */
.rental-summary {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-2);
}
.total-line {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ── Detail grid ─────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span { color: var(--text-3); flex-shrink: 0; }
.detail-row strong { color: var(--text); text-align: right; }

.detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-size: 13px;
  color: var(--text-2);
}

/* ── Reports ─────────────────────────────────────────────────── */
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 20px;
}

.report-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.report-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
}
.report-label { width: 100px; color: var(--text-3); text-transform: capitalize; flex-shrink: 0; }
.report-bar { flex: 1; height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.report-bar-fill { height: 100%; background: linear-gradient(90deg, var(--cerulean), var(--sky)); border-radius: 3px; transition: width 0.4s ease; }
.report-count { width: 24px; text-align: right; color: var(--text-2); font-weight: 600; font-family: var(--mono); font-size: 11px; }

/* ── Settings ────────────────────────────────────────────────── */
.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}

.settings-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    transform: translateX(-100%);
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.5); }
  .sidebar-overlay { display: block; }
  .menu-btn { display: flex; }
  .page { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .topbar { padding: 0 16px; }
  .login-card { padding: 28px 24px; }
  .filters-row { gap: 8px; }
  .filter-select { max-width: 100%; }
}
