/* ============================================================
   RE CRM - Premium Dark Theme
   ============================================================ */

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

:root {
  --bg-primary:    #0d0f1a;
  --bg-secondary:  #141728;
  --bg-card:       #1a1e32;
  --bg-card-hover: #1f2440;
  --border:        rgba(255,255,255,0.07);
  --border-active: rgba(99,102,241,0.4);

  --accent:        #6366f1;
  --accent-light:  #818cf8;
  --accent-glow:   rgba(99,102,241,0.25);

  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #3b82f6;

  --text-primary:  #f1f5f9;
  --text-muted:    #94a3b8;
  --text-faint:    #475569;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 30px rgba(99,102,241,0.2);

  --sidebar-w: 250px;
  --topbar-h:  64px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: #2d3358; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
}

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

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.active { transform: translateX(0); }
}

.sidebar-logo {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo .logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.sidebar-logo .logo-text { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.3px; }
.sidebar-logo .logo-text span { color: var(--accent-light); }

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

.nav-section-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 24px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0;
  margin: 1px 0;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

.nav-item.active {
  color: var(--accent-light);
  background: rgba(99,102,241,0.12);
}

.nav-item.logout-nav:hover {
  background: rgba(239,68,68,0.1);
  color: #f87171 !important;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 100%;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item .nav-icon { width: 18px; height: 18px; opacity: 0.8; flex-shrink: 0; }
.nav-item.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}

.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.05); }

.sidebar-user .avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user .user-info { flex: 1; min-width: 0; }
.sidebar-user .user-name { font-size: 0.83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .user-role { font-size: 0.7rem; color: var(--text-muted); text-transform: capitalize; }

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

/* ── Topbar ────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.topbar-title { font-size: 1.05rem; font-weight: 700; flex: 1; }
.topbar-title small { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 400; margin-top: -2px; }

/* ── Page Content ──────────────────────────────────────────── */
.page-content { padding: 24px; flex: 1; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: var(--transition);
}

.card:hover { border-color: var(--border-active); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-title { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.card-subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ── Stat Cards ────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.stat-card.accent::before  { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-card.success::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card.warning::before { background: linear-gradient(90deg, var(--warning), #fcd34d); }
.stat-card.danger::before  { background: linear-gradient(90deg, var(--danger),  #f87171); }
.stat-card.info::before    { background: linear-gradient(90deg, var(--info),    #60a5fa); }

.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-active); }

.stat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.stat-icon.accent  { background: rgba(99,102,241,0.15); }
.stat-icon.success { background: rgba(16,185,129,0.15); }
.stat-icon.warning { background: rgba(245,158,11,0.15); }
.stat-icon.danger  { background: rgba(239,68,68,0.15); }
.stat-icon.info    { background: rgba(59,130,246,0.15); }

.stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.stat-change { font-size: 0.72rem; margin-top: 4px; color: var(--success); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.83rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); filter: brightness(1.1); }

.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { filter: brightness(1.1); }

.btn-danger { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-sm { padding: 6px 12px; font-size: 0.78rem; }
.btn-xs { padding: 4px 9px; font-size: 0.72rem; border-radius: var(--radius-sm); }
.btn-icon { padding: 8px; border-radius: var(--radius-md); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 10px 14px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-faint); }

select.form-control { cursor: pointer; }
select.form-control option { background: var(--bg-card); }

textarea.form-control { resize: vertical; min-height: 90px; }

.form-row { display: grid; gap: 16px; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Table ──────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

thead tr { border-bottom: 1px solid var(--border); }

th {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-faint);
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  color: var(--text-primary);
  vertical-align: middle;
}

/* ── Table Responsive (Card-like on mobile) ───────────────── */
@media (max-width: 768px) {
  .table-wrapper { overflow-x: visible; }
  table { border: none; }
  thead { display: none; }
  tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    padding: 10px 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: right;
  }
  tbody td::before {
    content: attr(data-label);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    text-align: left;
    margin-top: 2px;
  }
  tbody td:last-child { border-bottom: none; }
  
  .d-flex.gap-2 { justify-content: flex-end; width: 100%; gap: 6px !important; }
  .btn-xs { padding: 6px 10px; font-size: 0.75rem; }
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-new          { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-contacted    { background: rgba(245,158,11,0.15);  color: #fcd34d; }
.badge-interested   { background: rgba(16,185,129,0.15);  color: #34d399; }
.badge-not-interested { background: rgba(148,163,184,0.15); color: #94a3b8; }
.badge-converted    { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.badge-lost         { background: rgba(239,68,68,0.15);   color: #f87171; }

.badge-pending      { background: rgba(245,158,11,0.15);  color: #fcd34d; }
.badge-done         { background: rgba(16,185,129,0.15);  color: #34d399; }
.badge-no-answer    { background: rgba(148,163,184,0.15); color: #94a3b8; }
.badge-callback     { background: rgba(59,130,246,0.15);  color: #60a5fa; }
.badge-rescheduled  { background: rgba(139,92,246,0.15);  color: #a78bfa; }

.badge-admin        { background: rgba(139,92,246,0.15);  color: #a78bfa; }
.badge-staff        { background: rgba(99,102,241,0.15);  color: #818cf8; }
.badge-active       { background: rgba(16,185,129,0.15);  color: #34d399; }
.badge-inactive     { background: rgba(239,68,68,0.15);   color: #f87171; }

/* ── Tags ───────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.66rem;
  font-weight: 600;
  margin-right: 4px;
}

/* ── Filter Bar ────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.filter-bar .form-control { max-width: 180px; padding: 7px 12px; font-size: 0.8rem; }
.filter-bar .search-input { max-width: 240px; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-overlay.active { display: grid; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  width: 100%;
  max-width: 560px;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease;
  position: relative;
}

.modal.modal-lg { max-width: 800px; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

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

.modal-title { font-size: 1.05rem; font-weight: 700; }

.modal-close {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.07);
  border: none; border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: #fff; }

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

/* ── Toast ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 20px; right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  min-width: 280px;
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  font-size: 0.84rem;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--info); }

@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideOut { to { opacity: 0; transform: translateX(30px); } }

/* ── Timeline ───────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--border); }

.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-dot {
  position: absolute;
  left: -24px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px var(--accent-glow);
}
.timeline-dot.success { background: var(--success); box-shadow: 0 0 8px rgba(16,185,129,0.3); }
.timeline-dot.warning { background: var(--warning); box-shadow: 0 0 8px rgba(245,158,11,0.3); }

.timeline-date { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 5px; }
.timeline-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.timeline-card .tl-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.timeline-card .tl-who { font-size: 0.75rem; font-weight: 600; color: var(--accent-light); }
.timeline-card .tl-notes { font-size: 0.83rem; color: var(--text-primary); }
.timeline-card .tl-next { font-size: 0.72rem; color: var(--warning); margin-top: 6px; }

/* ── Login Page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  top: -200px; left: -200px;
  border-radius: 50%;
}

.login-page::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(139,92,246,0.1) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  border-radius: 50%;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo .logo-circle {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-lg);
  display: inline-grid; place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
}

.login-logo h1 { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.5px; }
.login-logo h1 span { color: var(--accent-light); }
.login-logo p { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }

.login-card .form-control {
  background: var(--bg-secondary);
  padding: 12px 14px;
}

.login-btn {
  width: 100%;
  padding: 13px;
  font-size: 0.9rem;
  margin-top: 8px;
  border-radius: var(--radius-md);
  justify-content: center;
}

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text-primary); }
.empty-state p { font-size: 0.83rem; }

/* ── Checkbox ───────────────────────────────────────────────── */
.checkbox-group { display: flex; flex-wrap: wrap; gap: 8px; }
.checkbox-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.77rem;
  transition: var(--transition);
  user-select: none;
}
.checkbox-chip input { display: none; }
.checkbox-chip:has(input:checked) {
  background: rgba(99,102,241,0.15);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* ── Charts wrapper ─────────────────────────────────────────── */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } }

/* ── Utility ────────────────────────────────────────────────── */
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }
.fw-600 { font-weight: 600; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }

.loading {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile UI Elements ─────────────────────────────────────── */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  place-items: center;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .menu-toggle { display: grid; }
  .main-content { margin-left: 0; width: 100%; }
  .topbar { padding: 0 16px; justify-content: space-between; gap: 8px; }
  .topbar-title { font-size: 0.95rem; }
  .page-content { padding: 16px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-value { font-size: 1.5rem; }
  .charts-grid { grid-template-columns: 1fr; }
  .modal { padding: 20px; border-radius: var(--radius-lg); }
  .modal-overlay { padding: 0; }
  .modal { min-height: 100vh; border-radius: 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .btn { padding: 8px 14px; font-size: 0.8rem; }
}
