/* ============================================================
   ESER SOFTWARE — YENİ PANEL TASARIM SİSTEMİ
   Dark Glassmorphism UI · v2.0
   ============================================================ */

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

/* ── TOKENS ────────────────────────────────────────────────── */
:root {
  /* Background */
  --bg-base:    #070710;
  --bg-surface: #0e0e1a;
  --bg-elevated:#13131f;
  --bg-card:    rgba(255,255,255,0.03);
  --bg-hover:   rgba(255,255,255,0.05);

  /* Glass */
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --glass-blur:   blur(20px);

  /* Text */
  --text-primary:  #f0f0f8;
  --text-secondary:#a8a8c0;
  --text-muted:    #52526a;
  --text-link:     #818cf8;

  /* Accent (program'a göre değişir) */
  --accent:        #6366f1;
  --accent-hover:  #4f52e0;
  --accent-muted:  rgba(99,102,241,0.12);
  --accent-border: rgba(99,102,241,0.25);

  /* Program renkleri */
  --satis-color:   #6366f1;
  --stok-color:    #f59e0b;
  --depo-color:    #10b981;

  /* Status */
  --green:   #22c55e;
  --red:     #ef4444;
  --yellow:  #f59e0b;
  --blue:    #3b82f6;
  --purple:  #a855f7;

  /* Borders */
  --border:         rgba(255,255,255,0.07);
  --border-strong:  rgba(255,255,255,0.12);

  /* Sidebar */
  --sidebar-w: 240px;
  --sidebar-bg: rgba(10,10,20,0.95);

  /* Spacing */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  /* Transitions */
  --trans: 0.2s ease;
  --trans-slow: 0.35s ease;
}

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

html { height: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
}

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* ── ANIMATED BACKGROUND ───────────────────────────────────── */
.bg-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(168,85,247,0.04) 0%, transparent 60%),
    var(--bg-base);
}

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

.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin-left var(--trans-slow);
}

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--trans-slow);
  overflow: hidden;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Logo */
.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

.sidebar-logo-text { flex: 1; min-width: 0; }
.sidebar-logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 14px; font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar-logo-role {
  font-size: 10px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px;
}

/* Program Switcher */
.prog-switcher {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.prog-switcher-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); margin-bottom: 8px;
}

.prog-tabs {
  display: flex; flex-direction: column; gap: 2px;
}

.prog-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px; font-weight: 500;
  text-decoration: none;
  transition: all var(--trans);
  white-space: nowrap;
}

.prog-tab:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.prog-tab.active {
  background: var(--accent-muted);
  border-color: var(--accent-border);
  color: var(--text-primary);
}

.prog-tab .prog-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.prog-tab .prog-icon { font-size: 13px; flex-shrink: 0; }

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

.nav-section { margin-bottom: 16px; }

.nav-section-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); padding: 0 10px;
  margin-bottom: 4px;
}

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px; font-weight: 400;
  transition: all var(--trans);
  position: relative;
}

.nav-link:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent-muted);
  color: var(--text-primary);
  font-weight: 500;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 2px;
  background: var(--accent);
  border-radius: 2px;
}

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

/* User */
.sidebar-user {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}

.user-card {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--trans);
  text-decoration: none;
}

.user-card:hover { background: var(--bg-hover); }

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

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 12px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 10px; color: var(--text-muted); }
.user-logout { color: var(--text-muted); font-size: 14px; }

/* ── TOPBAR ──────────────────────────────────────────────────── */
.topbar {
  height: 56px;
  padding: 0 24px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,20,0.8);
  backdrop-filter: var(--glass-blur);
  position: sticky; top: 0; z-index: 50;
}

.topbar-ham {
  display: none;
  width: 32px; height: 32px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-secondary);
  font-size: 18px;
  border: none; background: transparent;
}

.topbar-ham:hover { background: var(--bg-hover); color: var(--text-primary); }

.topbar-title {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.topbar-right {
  display: flex; align-items: center; gap: 8px;
}

/* ── CONTENT ─────────────────────────────────────────────────── */
.content {
  padding: 24px;
  flex: 1;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}

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

.card-title {
  font-size: 14px; font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}

.card-count {
  font-size: 11px; color: var(--text-muted); font-weight: 400;
}

.card-action {
  font-size: 12px; color: var(--text-link);
  text-decoration: none;
}

.card-action:hover { text-decoration: underline; }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--trans), transform var(--trans);
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}

.stat-card:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.stat-card:hover::before { opacity: 1; }

.stat-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.05;
  filter: blur(30px);
  background: var(--accent);
}

.stat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}

.stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.stat-icon {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  background: var(--accent-muted);
  color: var(--accent);
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px; font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-sub { font-size: 11px; color: var(--text-muted); }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--trans);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 16px rgba(99,102,241,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  border-color: rgba(239,68,68,0.2);
}

.btn-danger:hover {
  background: rgba(239,68,68,0.2);
}

.btn-success {
  background: rgba(34,197,94,0.1);
  color: #22c55e;
  border-color: rgba(34,197,94,0.2);
}

.btn-success:hover { background: rgba(34,197,94,0.2); }

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-xs { padding: 3px 8px; font-size: 11px; }
.btn-icon { padding: 6px; width: 32px; height: 32px; justify-content: center; }
.btn-icon.sm { width: 26px; height: 26px; padding: 4px; }

/* ── SEARCH ──────────────────────────────────────────────────── */
.search-wrap {
  position: relative;
  display: inline-flex; align-items: center;
}

.search-icon {
  position: absolute; left: 10px;
  color: var(--text-muted); font-size: 14px;
  pointer-events: none;
}

.search-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 12px 7px 32px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  width: 220px;
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  padding: 10px 16px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

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

tbody tr { transition: background var(--trans); }
tbody tr:hover { background: var(--bg-hover); }
tbody tr:last-child td { border-bottom: none; }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  white-space: nowrap;
}

.badge-green  { background: rgba(34,197,94,0.1);  color: #22c55e;  border: 1px solid rgba(34,197,94,0.2);  }
.badge-red    { background: rgba(239,68,68,0.1);  color: #ef4444;  border: 1px solid rgba(239,68,68,0.2);  }
.badge-yellow { background: rgba(245,158,11,0.1); color: #f59e0b;  border: 1px solid rgba(245,158,11,0.2); }
.badge-blue   { background: rgba(59,130,246,0.1); color: #60a5fa;  border: 1px solid rgba(59,130,246,0.2); }
.badge-purple { background: rgba(168,85,247,0.1); color: #c084fc;  border: 1px solid rgba(168,85,247,0.2); }
.badge-satis  { background: rgba(99,102,241,0.1); color: #818cf8;  border: 1px solid rgba(99,102,241,0.2); }
.badge-stok   { background: rgba(245,158,11,0.1); color: #fbbf24;  border: 1px solid rgba(245,158,11,0.2); }
.badge-depo   { background: rgba(16,185,129,0.1); color: #34d399;  border: 1px solid rgba(16,185,129,0.2); }

/* ── ALERT ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); color: #22c55e; }
.alert-danger  { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }
.alert-info    { background: var(--accent-muted);  border: 1px solid var(--accent-border); color: var(--text-link); }

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

.form-label {
  display: block;
  font-size: 12px; font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-control {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
}

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

.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: 0.5; cursor: not-allowed; }

select.form-control { cursor: pointer; }

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

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

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn 0.25s ease;
  position: relative;
}

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

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

.modal-title {
  font-size: 15px; font-weight: 600;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}

.modal-close {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  transition: all var(--trans);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.modal-body { padding: 20px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* ── PAGINATION ──────────────────────────────────────────────── */
.pagination {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

.page-btns { display: flex; gap: 4px; }

.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
  transition: all var(--trans);
}

.page-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 20px;
}

.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: 0.4; }
.empty-text { font-size: 14px; color: var(--text-muted); }

/* ── PROGRAM BANNER ──────────────────────────────────────────── */
.prog-banner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  margin-bottom: 20px;
  border: 1px solid;
}

/* ── LICENSE KEY ─────────────────────────────────────────────── */
.lic-key {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}

/* ── COMPANY AVATAR ──────────────────────────────────────────── */
.co-row { display: flex; align-items: center; gap: 10px; }

.co-avatar {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600;
  flex-shrink: 0;
  background: var(--accent-muted);
  color: var(--accent);
}

/* ── LOGIN PAGE ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  position: relative;
}

.login-glow {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.06;
  pointer-events: none;
  z-index: -1;
}

.login-glow-1 { top: -100px; left: -100px; background: var(--accent); }
.login-glow-2 { bottom: -100px; right: -100px; background: #8b5cf6; }

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8b5cf6, var(--accent));
}

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

.login-logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  border-radius: var(--radius-lg);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 12px;
  box-shadow: 0 0 32px rgba(99,102,241,0.25);
}

.login-logo-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

/* Role Tabs */
.role-tabs {
  display: flex; gap: 4px;
  background: var(--bg-base);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 20px;
}

.role-tab {
  flex: 1; text-align: center;
  padding: 7px 12px;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  transition: all var(--trans);
  border: none; background: transparent;
}

.role-tab.active {
  background: var(--accent);
  color: white;
}

/* ── SEPARATOR ───────────────────────────────────────────────── */
.separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

/* ── OVERLAY (mobile sidebar) ────────────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  backdrop-filter: blur(2px);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-overlay.open { display: block; }
  .main-content { margin-left: 0; }
  .topbar-ham { display: flex; }
  .content { padding: 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 20px; }
}

/* ── ANIMATIONS ──────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }

.stat-card { animation: fadeIn 0.4s ease both; }
.stat-card:nth-child(1) { animation-delay: 0s; }
.stat-card:nth-child(2) { animation-delay: 0.05s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.15s; }
