/* ============================================================
   FRAGOTE EXTRANET — styles.css
   Tema claro · Navy + Teal · Plus Jakarta Sans + Sora
   Compatible 100% con: index, dashboard, projects, support, billing
   ============================================================ */

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

/* ── TOKENS ──────────────────────────────────────────────────── */
:root {
  /* Brand */
  --navy:            #003F7C;
  --navy-dark:       #002850;
  --navy-light:      #1a5fa8;
  --teal:            #00C0C0;
  --teal-dark:       #009999;
  --teal-light:      #33d0d0;
  --brown:           #6C2D00;

  /* Semantic */
  --success:         #10B981;
  --success-bg:      #D1FAE5;
  --success-border:  #6EE7B7;
  --warning:         #F59E0B;
  --warning-bg:      #FEF3C7;
  --warning-border:  #FDE68A;
  --danger:          #EF4444;
  --danger-bg:       #FEE2E2;
  --danger-border:   #FECACA;
  --info:            #3B82F6;
  --info-bg:         #DBEAFE;
  --info-border:     #BFDBFE;

  /* Neutrals */
  --bg:              #F4F6FB;
  --surface:         #FFFFFF;
  --border:          #E2E8F0;
  --border-light:    #F0F4F8;
  --text-primary:    #1A202C;
  --text-secondary:  #64748B;
  --text-muted:      #94A3B8;

  /* Compat aliases used in inline HTML styles */
  --bg-hover:        #EDF2F7;
  --bg-deep:         #F4F6FB;
  --bg-card:         #FFFFFF;
  --bg-card-2:       #F8FAFD;
  --border-active:   rgba(0,192,192,0.4);
  --accent:          #00C0C0;
  --accent-end:      #009999;
  --accent-light:    rgba(0,192,192,0.10);
  --accent-glow:     rgba(0,192,192,0.15);

  /* Layout */
  --sidebar-w:       232px;
  --radius:          12px;
  --radius-sm:       8px;
  --shadow-sm:       0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow:          0 4px 16px rgba(0,63,124,0.10);
  --shadow-md:       0 8px 32px rgba(0,63,124,0.13);
  --transition:      0.18s ease;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--border-light); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

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

/* ── SIDEBAR ─────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}
.logo-mark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 13px; color: #fff;
  flex-shrink: 0; letter-spacing: -0.5px;
}
.logo-text {
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--navy); line-height: 1.2;
}
.logo-sub {
  font-size: 10px; font-weight: 400;
  color: var(--text-muted); letter-spacing: 0.3px;
}

.sidebar-client {
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12px; color: var(--text-secondary);
  flex-shrink: 0;
}
.client-name {
  font-family: 'Sora', sans-serif;
  font-size: 13px; font-weight: 700;
  color: var(--navy); margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sidebar-nav { flex: 1; padding: 8px 0; }
.nav-section-label {
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 20px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  transition: all var(--transition);
  position: relative; cursor: pointer;
}
.nav-item:hover { color: var(--navy); background: var(--border-light); }
.nav-item.active {
  color: var(--navy);
  background: rgba(0, 63, 124, 0.07);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--navy), var(--teal));
  border-radius: 0 2px 2px 0;
}
.nav-icon { width: 17px; height: 17px; flex-shrink: 0; opacity: 0.6; }
.nav-item.active .nav-icon,
.nav-item:hover .nav-icon { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 20px; line-height: 16px;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
  flex-shrink: 0;
}
.btn-logout {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px; cursor: pointer;
  transition: all var(--transition); font-family: inherit;
}
.btn-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

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

/* ── TOPBAR ──────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 28px; height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  gap: 16px;
}
.topbar-left h1 {
  font-family: 'Sora', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--text-primary); line-height: 1.2;
}
.topbar-left p { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.topbar-right {
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}

.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 700;
  font-size: 12px; color: #fff;
  cursor: pointer; flex-shrink: 0; overflow: hidden;
  border: 2px solid var(--border);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer; font-size: 17px;
  transition: all var(--transition);
}
.hamburger:hover { border-color: var(--navy); color: var(--navy); }

/* ── PAGE BODY ───────────────────────────────────────────────── */
.page-body { padding: 24px 28px; flex: 1; }

/* ── STAT CARDS ──────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-card.danger  { border-top: 3px solid var(--danger); }
.stat-card.success { border-top: 3px solid var(--success); }
.stat-card.warning { border-top: 3px solid var(--warning); }

/* Old dark-theme pseudo glows — neutralize */
.stat-card::before { display: none; }

.stat-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: var(--text-muted); margin-bottom: 10px;
}
.stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 30px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.stat-value.danger  { color: var(--danger); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.accent  { color: var(--teal-dark); }
.stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── CARDS ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}
.card-title {
  font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 700; color: var(--text-primary);
}
.card-body { padding: 20px; }

.two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.three-col { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }

/* ── TABLE ───────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--text-muted);
  padding: 10px 16px; text-align: left;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border-light); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
tbody td { padding: 13px 16px; color: var(--text-secondary); vertical-align: middle; }
tbody td:first-child { color: var(--text-primary); font-weight: 500; }

/* ── PROGRESS BARS ───────────────────────────────────────────── */
.progress-bar {
  height: 6px; background: var(--border-light);
  border-radius: 3px; overflow: hidden; min-width: 80px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--teal));
  border-radius: 3px; transition: width 0.7s ease;
}
.progress-fill.danger  { background: linear-gradient(90deg, var(--danger), #f87171); }
.progress-fill.warning { background: linear-gradient(90deg, var(--warning), #fcd34d); }
.progress-fill.success { background: linear-gradient(90deg, var(--success), #34d399); }

/* ── BADGES ──────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: #065F46; }
.badge-warning { background: var(--warning-bg); color: #92400E; }
.badge-danger  { background: var(--danger-bg);  color: #991B1B; }
.badge-info    { background: var(--info-bg);     color: #1E40AF; }
.badge-muted   { background: var(--border-light); color: var(--text-muted); border: 1px solid var(--border); }
.badge-teal    { background: rgba(0,192,192,0.12); color: var(--teal-dark); }
.badge-navy    { background: rgba(0,63,124,0.10); color: var(--navy); }
.badge-accent  { background: rgba(0,192,192,0.12); color: var(--teal-dark); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
  font-family: inherit; line-height: 1;
}
.btn-primary {
  background: var(--navy); color: #fff;
  box-shadow: 0 2px 8px rgba(0,63,124,0.22);
}
.btn-primary:hover {
  background: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(0,63,124,0.32);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--navy);
  border-color: rgba(0,63,124,0.3);
  background: rgba(0,63,124,0.04);
}
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-login {
  width: 100%; padding: 13px;
  font-size: 15px; font-family: 'Sora', sans-serif;
  font-weight: 700; justify-content: center;
}

/* ── FORMS ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; text-align: left; }
.mb-0 { margin-bottom: 0 !important; }

.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-primary); margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,192,192,0.13);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }
.form-select { cursor: pointer; }
.form-textarea { min-height: 110px; resize: vertical; }

.filters-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.search-input-wrap { position: relative; flex: 1; min-width: 200px; }
.search-input-wrap input { padding-left: 36px; }
.search-icon {
  position: absolute; left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted); font-size: 14px; pointer-events: none; line-height: 1;
}

/* ── ACTIVITY LIST ───────────────────────────────────────────── */
.activity-list { display: flex; flex-direction: column; }
.activity-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); margin-top: 5px; flex-shrink: 0;
}
.activity-dot.danger  { background: var(--danger); }
.activity-dot.success { background: var(--success); }
.activity-dot.warning { background: var(--warning); }
.activity-info { flex: 1; min-width: 0; }
.activity-title {
  font-size: 13px; font-weight: 600; color: var(--text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.activity-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── MODAL ───────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26, 32, 44, 0.5);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); width: 100%; max-width: 520px;
  box-shadow: var(--shadow-md);
  transform: translateY(20px); transition: transform var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  color: var(--text-muted); cursor: pointer;
  border-radius: 6px; font-size: 17px;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg); color: var(--danger); }
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* ── SPINNER ─────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── EMPTY STATE ─────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-icon  { font-size: 42px; margin-bottom: 12px; opacity: 0.35; }

/* ── TOASTS ──────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--text-primary);
  box-shadow: var(--shadow-md); animation: slideIn 0.3s ease; max-width: 340px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--teal); }
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── LOGIN PAGE ──────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #EAF0FA 0%, #F4F6FB 55%, #E5F4F4 100%);
  position: relative; overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 560px at 10% 40%, rgba(0,63,124,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 500px 420px at 90% 15%, rgba(0,192,192,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 400px 400px at 80% 90%, rgba(0,63,124,0.05) 0%, transparent 60%);
}
.login-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,63,124,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,63,124,0.022) 1px, transparent 1px);
  background-size: 40px 40px;
}

.login-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border: 1px solid rgba(226,232,240,0.9);
  border-radius: 20px; padding: 44px 42px;
  width: 100%; max-width: 452px;
  box-shadow: 0 8px 48px rgba(0,63,124,0.11), 0 2px 8px rgba(0,0,0,0.04);
  text-align: center;
}

.login-logo { display: flex; justify-content: center; align-items: center; margin-bottom: 28px; }
.login-logo .logo-icon { width: 46px; height: 46px; font-size: 14px; border-radius: 13px; }
.login-logo .logo-text { font-size: 20px; }

.login-headline {
  font-family: 'Sora', sans-serif;
  font-size: 24px; font-weight: 800;
  color: var(--navy); margin-bottom: 6px;
}
.login-sub { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 28px; }

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

.sso-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-sso {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.btn-sso:hover { border-color: var(--navy); color: var(--navy); background: rgba(0,63,124,0.03); }

.remember-row {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 20px;
}
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-secondary); cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 15px; height: 15px; accent-color: var(--navy); cursor: pointer;
}

.login-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger);
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 16px; display: none;
}
.login-error.visible { display: block; }

/* ── UTILITIES ───────────────────────────────────────────────── */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.mb-24  { margin-bottom: 24px; }
.mb-16  { margin-bottom: 16px; }
.mb-8   { margin-bottom: 8px; }
.mt-16  { margin-top: 16px; }
.currency { font-family: 'Sora', sans-serif; font-variant-numeric: tabular-nums; }

/* Fix inline font references in billing.html that still say Space Grotesk */
[style*="Space Grotesk"] { font-family: 'Sora', sans-serif !important; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .three-col { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar { transform: translateX(-240px); width: 240px; }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,0.18);
  }

  .main-content { margin-left: 0; }
  .page-body    { padding: 16px; }
  .topbar       { padding: 0 16px; }
  .topbar-left p { display: none; }

  .hamburger { display: flex !important; }

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

  .login-card  { padding: 32px 24px; margin: 16px; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-value  { font-size: 24px; }
  .sso-buttons { grid-template-columns: 1fr; }
  .page-body   { padding: 12px; }
}

/* ── MOBILE SIDEBAR OVERLAY ──────────────────────────────────── */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,32,44,0.35); z-index: 99; cursor: pointer;
}
@media (max-width: 768px) {
  .sidebar.open ~ .sidebar-overlay { display: block; }
}