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

/* ============================================================
   Vehicle Verify — main.css  (Responsive v2)
   Breakpoints: mobile < 576 | sm 576 | md 768 | lg 992 | xl 1200
   ============================================================ */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
  --bg-primary:    #f0f4f8;
  --bg-secondary:  #fff;
  --bg-card:       #fff;
  --bg-sidebar:    #0f2140;
  --bg-header:     #fff;
  --text-primary:  #0f2140;
  --text-secondary:#4a5568;
  --text-muted:    #718096;
  --text-sidebar:  #e2e8f0;
  --accent:        #1a56db;
  --accent-hover:  #1545b8;
  --accent-light:  #ebf0ff;
  --success:       #10b981;
  --success-bg:    #d1fae5;
  --danger:        #ef4444;
  --danger-bg:     #fee2e2;
  --warning:       #f59e0b;
  --warning-bg:    #fef3c7;
  --border:        #e2e8f0;
  --border-focus:  #1a56db;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);
  --radius-sm:     6px;
  --radius-md:     12px;
  --radius-lg:     20px;
  --sidebar-width: 260px;
  --header-height: 60px;
  --transition:    all .22s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg-primary:    #0d1b2a;
  --bg-secondary:  #162032;
  --bg-card:       #1e2d42;
  --bg-sidebar:    #08111d;
  --bg-header:     #162032;
  --text-primary:  #e2e8f0;
  --text-secondary:#a0aec0;
  --text-muted:    #718096;
  --accent:        #3b82f6;
  --accent-hover:  #2563eb;
  --accent-light:  #1e3a5f;
  --success:       #34d399;
  --success-bg:    #064e3b;
  --danger:        #f87171;
  --danger-bg:     #7f1d1d;
  --warning:       #fbbf24;
  --warning-bg:    #78350f;
  --border:        #2d3f55;
  --border-focus:  #3b82f6;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.3);
  --shadow-md:     0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.5);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Sora', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: background .3s, color .3s;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[lang="ar"] body, [dir="rtl"] body { font-family: 'Cairo', sans-serif; }
a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }
img, svg { max-width: 100%; display: block; }

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

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  position: fixed; top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s;
  box-shadow: 2px 0 16px rgba(0,0,0,.18);
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
[dir="rtl"] .sidebar { left: auto; right: 0; box-shadow: -2px 0 16px rgba(0,0,0,.18); }

.sidebar-logo {
  padding: 20px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px;
  background: var(--accent); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.logo-text { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.3; }
.logo-sub  { color: rgba(255,255,255,.45); font-size: 11px; }

.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px;
  color: var(--text-sidebar);
  font-size: 13.5px;
  transition: var(--transition);
  border-radius: 0;
  white-space: nowrap;
}
.sidebar-nav a .nav-icon { font-size: 17px; opacity: .75; flex-shrink: 0; }
.sidebar-nav a:hover  { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-nav a.active { background: var(--accent); color: #fff; font-weight: 600; }
.sidebar-nav a.active .nav-icon { opacity: 1; }

.sidebar-footer {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.sidebar-user:hover { background: rgba(255,255,255,.06); }
.sidebar-avatar {
  width: 36px; height: 36px;
  background: var(--accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { color: rgba(255,255,255,.4); font-size: 11px; }

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
  opacity: 0;
  transition: opacity .28s;
}
.sidebar-overlay.visible { opacity: 1; }

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1; min-height: 100vh;
  display: flex; flex-direction: column;
  min-width: 0;
}
[dir="rtl"] .main-content { margin-left: 0; margin-right: var(--sidebar-width); }

/* ── Top Header ──────────────────────────────────────────────── */
.top-header {
  height: var(--header-height);
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--shadow-sm);
  gap: 12px;
}
.header-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 38px; height: 38px;
  background: var(--bg-primary); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-secondary);
  font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.mobile-menu-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Page Content ────────────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }
.page-header { margin-bottom: 22px; }
.page-header h2 { font-size: 20px; font-weight: 800; }
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.section-title { font-size: 15px; font-weight: 700; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 600;
  border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap; font-family: inherit; text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(26,86,219,.35); color: #fff; }
.btn-secondary { background: var(--bg-primary); color: var(--text-primary); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover { opacity: .9; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: .9; }
.btn-sm  { padding: 6px 13px; font-size: 12.5px; }
.btn-lg  { padding: 12px 26px; font-size: 15px; }
.btn-icon {
  width: 36px; height: 36px; padding: 0;
  border-radius: var(--radius-sm);
  background: var(--bg-primary); border: 1.5px solid var(--border);
  color: var(--text-secondary);
}
.btn-icon:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-block { width: 100%; }

/* ── Toggle ──────────────────────────────────────────────────── */
.toggle-group { display: flex; gap: 4px; flex-wrap: wrap; }
.toggle-btn {
  padding: 6px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: transparent;
  color: var(--text-secondary); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: var(--transition); font-family: inherit;
  text-decoration: none; display: inline-flex; align-items: center;
}
.toggle-btn.active, .toggle-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Stats Grid ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-card); border-radius: var(--radius-md);
  padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-icon.blue   { background: var(--accent-light); }
.stat-icon.green  { background: var(--success-bg); }
.stat-icon.yellow { background: var(--warning-bg); }
.stat-icon.red    { background: var(--danger-bg); }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

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

/* ── Table ───────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
thead th {
  background: var(--bg-primary); padding: 10px 14px;
  text-align: start; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 12px 14px; border-bottom: 1px solid var(--border);
  color: var(--text-secondary); vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg-primary); }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger);  }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--accent-light); color: var(--accent); }

/* ── Form ────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 6px;
}
.form-control {
  width: 100%; padding: 10px 13px;
  background: var(--bg-primary); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 14px; font-family: inherit;
  transition: var(--transition); outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled     { opacity: .6; cursor: not-allowed; }
select.form-control        { cursor: pointer; }
textarea.form-control      { resize: vertical; min-height: 90px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ── Alert ───────────────────────────────────────────────────── */
.alert {
  padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 500;
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 14px;
}
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success); }
.alert-danger  { background: var(--danger-bg);  color: var(--danger);  border: 1px solid var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border: 1px solid var(--warning); }
.alert-info    { background: var(--accent-light); color: var(--accent); border: 1px solid var(--accent); }

/* ── Auth ────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: var(--bg-primary); padding: 20px;
}
.auth-card {
  background: var(--bg-card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 40px 36px;
  width: 100%; max-width: 440px;
  border: 1px solid var(--border); animation: fadeSlideUp .5s ease;
}
.auth-logo { text-align: center; margin-bottom: 26px; }
.logo-circle {
  width: 60px; height: 60px; background: var(--accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 12px;
}
.auth-logo h1 { font-size: 21px; font-weight: 800; }
.auth-tabs {
  display: flex; background: var(--bg-primary);
  border-radius: var(--radius-sm); padding: 4px; margin-bottom: 22px;
}
.auth-tab {
  flex: 1; padding: 8px; text-align: center;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  color: var(--text-secondary); border: none;
  background: transparent; font-family: inherit;
}
.auth-tab.active { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.auth-actions-top { position: fixed; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 200; }
[dir="rtl"] .auth-actions-top { right: auto; left: 14px; }

/* ── QR ──────────────────────────────────────────────────────── */
.qr-plate {
  font-size: 20px; font-weight: 800; letter-spacing: .08em;
  background: var(--bg-primary); border: 2px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 20px;
  display: inline-block; margin-top: 8px;
}

/* ── Verify / Vehicle ────────────────────────────────────────── */
.verify-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 8px;
}
.verify-row:last-child { border-bottom: none; }
.verify-key { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.verify-val { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.verify-plate-display {
  font-size: 26px; font-weight: 900; letter-spacing: .12em;
  background: rgba(255,255,255,.2); padding: 8px 22px;
  border-radius: var(--radius-sm); display: inline-block; margin-top: 10px;
}
.vehicle-plate-badge {
  font-family: 'Courier New', monospace; font-size: 13px; font-weight: 800;
  letter-spacing: .1em; background: var(--bg-primary);
  border: 2px solid var(--border); border-radius: 4px;
  padding: 3px 9px; display: inline-block;
}

/* ── Drivers ─────────────────────────────────────────────────── */
.drivers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.driver-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--radius-md); padding: 14px;
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition);
}
.driver-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.driver-avatar {
  width: 42px; height: 42px; background: var(--accent-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: var(--accent); flex-shrink: 0;
}
.driver-name { font-size: 14px; font-weight: 700; }
.driver-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Documents ───────────────────────────────────────────────── */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.doc-card {
  background: var(--bg-primary); border-radius: var(--radius-md);
  padding: 14px; border: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 12px; transition: var(--transition);
}
.doc-card:hover { border-color: var(--accent); }
.doc-icon { font-size: 24px; }
.doc-name { font-size: 13px; font-weight: 600; }
.doc-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ── Search Hero ─────────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, var(--accent), #0f4c9e);
  border-radius: var(--radius-lg); padding: 32px 24px;
  text-align: center; color: #fff; margin-bottom: 24px;
}
.search-hero h2 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.search-hero p  { opacity: .8; font-size: 14px; margin-bottom: 18px; }
.search-input-group { display: flex; gap: 8px; max-width: 500px; margin: 0 auto; }
.search-input-group .form-control {
  background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff;
}
.search-input-group .form-control::placeholder { color: rgba(255,255,255,.6); }
.search-input-group .form-control:focus {
  background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.7); box-shadow: none;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; opacity: .4; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }

/* ── Helpers ─────────────────────────────────────────────────── */
.font-bold    { font-weight: 700; }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeSlideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── XL (≥ 1200px) ─────────────────── full sidebar, spacious */
@media (min-width: 1200px) {
  .page-content { padding: 28px 32px; }
  .stats-grid   { grid-template-columns: repeat(4, 1fr); }
}

/* ── LG (992–1199px) ──────────────── standard desktop */
@media (min-width: 992px) and (max-width: 1199px) {
  :root { --sidebar-width: 240px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── MD (768–991px) ───────────────── tablet landscape / small laptop */
@media (min-width: 768px) and (max-width: 991px) {
  :root { --sidebar-width: 220px; }
  .page-content { padding: 20px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
  .drivers-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid     { grid-template-columns: repeat(2, 1fr); }
  .form-row     { grid-template-columns: 1fr 1fr; }
  .verify-plate-display { font-size: 22px; }
}

/* ── SM (576–767px) ───────────────── tablet portrait */
@media (min-width: 576px) and (max-width: 767px) {
  /* Sidebar: hidden by default, slide in on open */
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-width);
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }

  .main-content { margin-left: 0 !important; margin-right: 0 !important; }
  .mobile-menu-btn { display: flex !important; }
  .top-header { padding: 0 16px; }
  .page-content { padding: 16px; }

  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .form-row     { grid-template-columns: 1fr 1fr; gap: 12px; }
  .drivers-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid     { grid-template-columns: repeat(2, 1fr); }

  .search-hero { padding: 24px 18px; }
  .search-input-group { flex-direction: row; }
  .verify-plate-display { font-size: 20px; padding: 8px 16px; }
}

/* ── XS (< 576px) ─────────────────── mobile */
@media (max-width: 575px) {
  /* Sidebar: full overlay slide */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    box-shadow: 4px 0 24px rgba(0,0,0,.4);
  }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay { display: block; }

  .main-content { margin-left: 0 !important; margin-right: 0 !important; }
  .mobile-menu-btn { display: flex !important; }
  .top-header { padding: 0 12px; height: 56px; }
  .header-title { font-size: 14px; }
  .page-content { padding: 12px; }
  .page-header h2 { font-size: 17px; }

  /* Stacked grids */
  .stats-grid    { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-row      { grid-template-columns: 1fr; gap: 0; }
  .drivers-grid  { grid-template-columns: 1fr; }
  .doc-grid      { grid-template-columns: 1fr 1fr; }

  /* Auth */
  .auth-card { padding: 24px 16px; border-radius: var(--radius-md); }

  /* Search hero */
  .search-hero { padding: 20px 14px; border-radius: var(--radius-md); }
  .search-hero h2 { font-size: 16px; }
  .search-hero p  { font-size: 13px; margin-bottom: 14px; }
  .search-input-group { flex-direction: column; gap: 8px; }
  .search-input-group .btn { width: 100%; }

  /* Verify page */
  .verify-plate-display { font-size: 18px; padding: 7px 14px; letter-spacing: .08em; }

  /* Buttons */
  .btn-lg { padding: 11px 20px; font-size: 14px; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .section-header .btn { align-self: flex-start; }

  /* Card body */
  .card-body { padding: 14px; }
  .card-header { padding: 12px 14px; }

  /* Tables: horizontal scroll indicator */
  .table-wrapper::after {
    content: '← scroll →';
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 6px 0 4px;
  }
  table { min-width: 420px; }

  /* Stat cards compact */
  .stat-card { padding: 14px 12px; gap: 10px; }
  .stat-icon { width: 38px; height: 38px; font-size: 18px; }
  .stat-value { font-size: 20px; }
  .stat-label { font-size: 11px; }

  /* Action buttons stacked */
  .btn-group-mobile { display: flex; flex-direction: column; gap: 8px; }
  .btn-group-mobile .btn { width: 100%; justify-content: center; }

  /* Officer verify 2-col grid becomes 1-col */
  .verify-page [style*="grid-template-columns:1fr 1fr"],
  .verify-page [style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important; flex-direction: column !important;
  }
  /* Documents 3-col becomes 1-col */
  .verify-page [style*="grid-template-columns:repeat(3,1fr)"],
  .verify-page [style*="grid-template-columns: repeat(3,1fr)"] {
    display: flex !important; flex-direction: column !important;
  }
  .verify-page [style*="border-inline-end"] {
    border-inline-end: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
}

/* ── Print ───────────────────────────────────────────────────── */
@media print {
  .sidebar, .sidebar-overlay, .top-header,
  .mobile-menu-btn, .btn, form, .header-actions { display: none !important; }
  .main-content { margin: 0 !important; }
  .page-content { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
  body { background: #fff !important; color: #000 !important; }
}

/* ── Sidebar JS hook ─────────────────────────────────────────── */
/* Applied by main.js on scroll / resize */
.sidebar-collapsed .sidebar-nav a span:not(.nav-icon) { display: none; }
