/* ============================================================
   BharatPay Gateway — Design System
   Razorpay-inspired · Dark/Light Mode · Glassmorphism
   ============================================================ */

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

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  --primary:       #1a73e8;
  --primary-dark:  #0d47a1;
  --primary-light: #e8f0fe;
  --secondary:     #6c757d;
  --success:       #0f9d58;
  --danger:        #ea4335;
  --warning:       #f9ab00;
  --info:          #4fc3f7;
  --purple:        #7c3aed;

  --bg:            #f0f4f8;
  --surface:       #ffffff;
  --surface-2:     #f8fafd;
  --border:        #e2e8f0;
  --text:          #1a202c;
  --text-muted:    #718096;
  --text-light:    #a0aec0;
  --sidebar-bg:    #0f172a;
  --sidebar-text:  #94a3b8;
  --sidebar-active:#1e293b;
  --sidebar-hover: #1e293b;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
  --shadow-xl:  0 32px 80px rgba(0,0,0,.20);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --transition: all 0.2s ease;
  --sidebar-w:  260px;
}

/* ── Dark Mode ───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:         #0d1117;
  --surface:    #161b22;
  --surface-2:  #1c2128;
  --border:     #30363d;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --text-light: #6e7681;
  --primary-light: #1c2a4a;
  --sidebar-bg:    #010409;
  --sidebar-active:#161b22;
  --sidebar-hover: #161b22;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; }

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

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-brand {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-brand .brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.sidebar-brand .brand-text { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.2; }
.sidebar-brand .brand-sub  { color: var(--sidebar-text); font-size: 11px; }

.sidebar-nav { padding: 16px 12px; flex: 1; }

.nav-section-title {
  color: var(--sidebar-text);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 12px 8px 6px;
}

.nav-item { list-style: none; margin-bottom: 2px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--sidebar-text) !important;
  font-size: 13.5px;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}
.nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff !important;
}
.nav-link.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(26,115,232,0.3);
}
.nav-link .nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-link .badge-pill {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}

.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: none;
}
.hamburger:hover { background: var(--bg); }

.page-title { font-size: 18px; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 13px; color: var(--text-muted); }

.topbar-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
  position: relative;
}
.topbar-btn:hover { background: var(--border); color: var(--text); }
.topbar-btn .badge-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--surface);
}

.avatar-btn {
  display: flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.avatar-btn:hover { background: var(--bg); }
.avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* Page Body */
.page-body { padding: 24px; flex: 1; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  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;
  font-weight: 600;
  font-size: 15px;
  background: var(--surface);
}
.card-body { padding: 20px; }
.card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* Stat Cards */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--stat-color, var(--primary)), transparent);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: var(--stat-bg, var(--primary-light));
}
.stat-card .stat-value { font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-card .stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }
.stat-card .stat-change { font-size: 11px; font-weight: 600; margin-top: 4px; }
.stat-card .stat-change.up   { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 15px rgba(26,115,232,0.3);
}
.btn-primary:hover { color: #fff; box-shadow: 0 6px 20px rgba(26,115,232,0.4); }

.btn-success { background: var(--success); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-warning { background: var(--warning); color: #1a202c; }
.btn-info    { background: var(--info);    color: #1a202c; }
.btn-purple  { background: var(--purple);  color: #fff; }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg); }

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; border-radius: var(--radius-sm); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-label .req { color: var(--danger); }

.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  transition: var(--transition);
  outline: none;
  height: 44px;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,0.12); }
.form-control::placeholder { color: var(--text-light); }

textarea.form-control { height: auto; resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group-append { display: flex; }
.input-group-append .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { width: 16px; height: 16px; cursor: pointer; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table th {
  background: var(--surface-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-2); }

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  gap: 4px;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info    { background: #e0f2fe; color: #0369a1; }
.badge-purple  { background: #ede9fe; color: #5b21b6; }
.badge-gray    { background: var(--border); color: var(--text-muted); }
.badge-primary { background: var(--primary-light); color: var(--primary-dark); }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.alert-success { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.alert-danger  { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.alert-warning { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.alert-info    { background: #e0f2fe; border-color: #7dd3fc; color: #0369a1; }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.2s;
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h5 { font-size: 16px; font-weight: 700; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-muted); padding: 4px; border-radius: 6px; }
.modal-close:hover { background: var(--bg); }
.modal-body   { padding: 20px 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Toasts ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; max-width: 360px;
  animation: toast-in 0.3s ease;
  font-size: 13.5px;
}
.toast.removing { animation: toast-out 0.3s ease forwards; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; font-size: 13px; }
.toast-msg   { color: var(--text-muted); font-size: 12px; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 16px; padding: 0; }
.toast.toast-success { border-left: 4px solid var(--success); }
.toast.toast-danger  { border-left: 4px solid var(--danger); }
.toast.toast-warning { border-left: 4px solid var(--warning); }
.toast.toast-info    { border-left: 4px solid var(--primary); }

@keyframes toast-in  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }
@keyframes toast-out { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(20px); } }

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 40%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.auth-wrapper::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 440px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.auth-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 32px 32px 28px;
  text-align: center;
  color: #fff;
}
.auth-header .logo { font-size: 48px; margin-bottom: 8px; }
.auth-header h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.auth-header p  { font-size: 13px; opacity: 0.85; }
.auth-body { padding: 32px; }
.auth-footer { padding: 16px 32px 28px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* ── Payment Page ────────────────────────────────────────── */
.pay-wrapper {
  min-height: 100vh;
  background: linear-gradient(135deg, #f0f4f8, #e8f0fe);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pay-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 420px; width: 100%;
  overflow: hidden;
}
.pay-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 28px 24px;
  color: #fff;
  text-align: center;
}
.pay-amount { font-size: 44px; font-weight: 900; letter-spacing: -2px; }
.pay-body   { padding: 20px; }

/* Status boxes */
.status-box { border-radius: var(--radius-md); padding: 14px; transition: all 0.4s ease; }
.status-box.waiting  { background: #e8f0fe; border: 2px solid var(--primary); }
.status-box.checking { background: #fff8e1; border: 2px solid var(--warning); }
.status-box.success  { background: #d1fae5; border: 2px solid var(--success); }
.status-box.error    { background: #fee2e2; border: 2px solid var(--danger); }

/* Timer bar */
.timer-bar-wrap { height: 4px; background: var(--border); border-radius: 10px; overflow: hidden; }
.timer-bar      { height: 100%; border-radius: 10px; transition: width 1s linear, background 0.5s; }

/* QR */
.qr-img {
  width: 200px;
  border: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 8px; background: #fff;
}

/* App buttons */
.app-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 600;
  border: 1.5px solid; text-decoration: none;
  transition: var(--transition);
}
.app-btn:hover { transform: translateY(-2px); }
.app-btn-main { background: var(--primary); color: #fff; border-color: var(--primary); }
.app-btn-pp   { color: #5f259f; border-color: #5f259f; background: #f9f0ff; }
.app-btn-gp   { color: #ea4335; border-color: #ea4335; background: #fff4f3; }
.app-btn-pt   { color: #00b9f1; border-color: #00b9f1; background: #f0fbff; }
.app-btn-bh   { color: #ff6f00; border-color: #ff6f00; background: #fff8f0; }

/* ── Landing Page ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #7c3aed 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
  height: 100%;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 16px;
}

/* ── API Docs ────────────────────────────────────────────── */
.api-key-box {
  background: var(--sidebar-bg);
  color: #a8ff78;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 14px;
  letter-spacing: 2px;
  word-break: break-all;
  position: relative;
}
.code-block {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: var(--radius-md);
  padding: 20px;
  overflow-x: auto;
}
.code-block pre {
  color: #e6edf3;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 13px;
  margin: 0;
  white-space: pre-wrap;
}

/* ── Pulse animation ─────────────────────────────────────── */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.2s infinite;
  margin-right: 4px;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(1.4); }
}

/* ── Utilities ───────────────────────────────────────────── */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger  { color: var(--danger)  !important; }
.text-warning { color: var(--warning) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-light   { color: var(--text-light) !important; }

.fw-400 { font-weight: 400; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-18 { font-size: 18px; }
.fs-24 { font-size: 24px; }
.fs-32 { font-size: 32px; }

.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center  { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }

.mt-auto { margin-top: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 24px; }

.p-0 { padding: 0; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--shadow-md); }
.shadow-sm { box-shadow: var(--shadow-sm); }

.divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.empty-state h5 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .hamburger { display: flex; }
  .sidebar-overlay { display: block !important; }
}

@media (max-width: 575px) {
  .page-body { padding: 16px; }
  .topbar { padding: 0 16px; }
  .stat-card .stat-value { font-size: 18px; }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
