/* =========================================
   LMS Admin Panel — style.css
   Brand: #071a3d (navy), #06bbcc (teal), #F0FBFC (light)
   Font: Nunito + Heebo
   ========================================= */

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

:root {
  --primary:      #071a3d;
  --primary-light:#0d2a5e;
  --accent:       #06bbcc;
  --accent-dark:  #059aaa;
  --light:        #F0FBFC;
  --surface:      #ffffff;
  --surface-alt:  #f8fafc;
  --border:       #e2e8f0;
  --text:         #071a3d;
  --text-muted:   #64748b;
  --success:      #10b981;
  --warning:      #f59e0b;
  --danger:       #ef4444;
  --info:         #3b82f6;
  --sidebar-w:    260px;
  --topbar-h:     64px;
  --radius:       12px;
  --shadow-sm:    0 1px 4px rgba(7,26,61,.08);
  --shadow:       0 4px 16px rgba(7,26,61,.12);
  --shadow-lg:    0 8px 32px rgba(7,26,61,.18);
  --transition:   .22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--surface-alt);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ─── Auth Pages (index.html) ─── */
.auth-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary) 0%, #0d2a5e 60%, #1e3a6e 100%);
  background-image: url('../../img/image-2.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.auth-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(6,187,204,.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(6,187,204,.12) 0%, transparent 50%);
  pointer-events: none;
}
.auth-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-logo .brand {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.auth-logo .brand span { color: var(--accent); }
.auth-logo .tagline { color: rgba(255,255,255,.6); font-size: .85rem; margin-top: .25rem; }
.auth-title {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: .25rem;
}
.auth-subtitle { color: rgba(255,255,255,.55); font-size: .875rem; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control::placeholder { color: rgba(255,255,255,.3); }
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,187,204,.2);
  background: rgba(255,255,255,.12);
}
.form-control.light {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.form-control.light::placeholder { color: var(--text-muted); }
.form-control.light:focus {
  border-color: var(--accent);
  background: var(--surface);
}
select.form-control option { background: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(6,187,204,.35);
}
.btn-secondary {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.btn-secondary:hover { background: rgba(255,255,255,.18); }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent); color: var(--primary); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; }
.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn-full { width: 100%; justify-content: center; }
.btn i { font-size: .9em; }

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

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--primary);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 1.5rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.sidebar-logo .brand {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}
.sidebar-logo .brand span { color: var(--accent); }
.sidebar-logo .tagline { color: rgba(255,255,255,.4); font-size: .72rem; margin-top: .15rem; }

.sidebar-nav {
  padding: 1rem 0;
  flex: 1;
}
.nav-section-label {
  padding: .5rem 1.25rem .25rem;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  font-weight: 700;
  margin-top: .5rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  position: relative;
}
.nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,.06);
  border-left-color: rgba(6,187,204,.5);
}
.nav-item.active {
  color: #fff;
  background: rgba(6,187,204,.12);
  border-left-color: var(--accent);
}
.nav-item .badge {
  margin-left: auto;
  background: var(--accent);
  color: var(--primary);
  font-size: .68rem;
  font-weight: 800;
  padding: .12rem .45rem;
  border-radius: 99px;
}

.sidebar-user {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.sidebar-user-info .name { color: #fff; font-size: .85rem; font-weight: 700; line-height: 1.2; }
.sidebar-user-info .role { color: rgba(255,255,255,.4); font-size: .72rem; }

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.topbar-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  flex: 1;
}
.topbar-title span { color: var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }
.topbar-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .95rem;
  transition: all var(--transition);
  position: relative;
}
.topbar-btn:hover { background: var(--light); color: var(--primary); border-color: var(--accent); }
.topbar-user {
  display: flex; align-items: center; gap: .6rem;
  cursor: pointer;
  padding: .35rem .75rem;
  border-radius: 99px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.topbar-user:hover { background: var(--light); }
.topbar-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .78rem;
}
.topbar-user-name { font-size: .85rem; font-weight: 700; color: var(--text); }

/* Main content area */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.page-content {
  padding: 1.75rem;
  flex: 1;
}
.page-header {
  margin-bottom: 1.75rem;
}
.page-header h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.5px;
}
.page-header p { color: var(--text-muted); font-size: .9rem; margin-top: .25rem; }
.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-header h3 { font-size: 1rem; font-weight: 800; color: var(--text); }
.card-body { padding: 1.5rem; }

/* ─── Stat Cards ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.stat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: rgba(59,130,246,.12); color: var(--info); }
.stat-icon.green  { background: rgba(16,185,129,.12); color: var(--success); }
.stat-icon.yellow { background: rgba(245,158,11,.12); color: var(--warning); }
.stat-icon.teal   { background: rgba(6,187,204,.12);  color: var(--accent); }
.stat-icon.red    { background: rgba(239,68,68,.12);  color: var(--danger); }
.stat-icon.navy   { background: rgba(7,26,61,.08);    color: var(--primary); }
.stat-info .value {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-info .label {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: .2rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.stat-info .change {
  font-size: .75rem;
  font-weight: 700;
  margin-top: .15rem;
}
.change.up { color: var(--success); }
.change.down { color: var(--danger); }

/* ─── Table ─── */
.table-wrapper {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
thead th {
  padding: .75rem 1rem;
  text-align: left;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--light); }
tbody td {
  padding: .85rem 1rem;
  color: var(--text);
  vertical-align: middle;
}

/* ─── Badge / Status ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-success { background: rgba(16,185,129,.12); color: #059669; }
.badge-warning { background: rgba(245,158,11,.12); color: #d97706; }
.badge-danger  { background: rgba(239,68,68,.12);  color: #dc2626; }
.badge-info    { background: rgba(59,130,246,.12);  color: #2563eb; }
.badge-teal    { background: rgba(6,187,204,.12);   color: var(--accent-dark); }
.badge-muted   { background: var(--border);         color: var(--text-muted); }

/* ─── Avatar ─── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .82rem;
  flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-wrap { display: flex; align-items: center; gap: .65rem; }
.avatar-wrap .info .name { font-weight: 700; font-size: .88rem; }
.avatar-wrap .info .sub { font-size: .75rem; color: var(--text-muted); }

/* ─── Progress ─── */
.progress-bar-wrap {
  background: var(--border);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
  border-radius: 99px;
  transition: width .8s ease;
}

/* ─── Search & Filter Bar ─── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-wrap i {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .85rem;
}
.search-input {
  width: 100%;
  padding: .6rem 1rem .6rem 2.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: .875rem;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6,187,204,.15);
}
.filter-select {
  padding: .6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Nunito', sans-serif;
  font-size: .875rem;
  color: var(--text);
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
}
.filter-select:focus { border-color: var(--accent); }

/* ─── Upload Zone ─── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface-alt);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(6,187,204,.04);
}
.upload-zone i { font-size: 2.5rem; color: var(--accent); margin-bottom: 1rem; }
.upload-zone h3 { font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.upload-zone p { color: var(--text-muted); font-size: .85rem; }
.upload-zone .browse-link { color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; }
#fileInput { display: none; }

.file-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .65rem; }
.file-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.file-icon { font-size: 1.4rem; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-info .file-name { font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-info .file-meta { font-size: .75rem; color: var(--text-muted); }
.file-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: .95rem;
  padding: .25rem;
  border-radius: 6px;
  transition: color var(--transition);
}
.file-remove:hover { color: var(--danger); }

/* ─── Certificate Card ─── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.cert-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.cert-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cert-card-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #0d2a5e 100%);
  position: relative;
  overflow: hidden;
}
.cert-card-header::after {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(6,187,204,.15);
}
.cert-card-header .cert-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: .75rem;
}
.cert-card-header h3 { color: #fff; font-size: .95rem; font-weight: 800; }
.cert-card-header p { color: rgba(255,255,255,.6); font-size: .78rem; margin-top: .2rem; }
.cert-card-body { padding: 1.1rem 1.5rem; }
.cert-meta { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.cert-meta-row { display: flex; justify-content: space-between; font-size: .8rem; }
.cert-meta-row .k { color: var(--text-muted); }
.cert-meta-row .v { font-weight: 700; color: var(--text); }
.cert-actions { display: flex; gap: .5rem; }

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 800; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: .25rem;
  border-radius: 6px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
}

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .85rem 1.25rem;
  min-width: 280px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: .75rem;
  animation: toastIn .3s ease;
  border-left: 4px solid var(--accent);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.toast i { font-size: 1.1rem; flex-shrink: 0; }
.toast .toast-msg { font-size: .875rem; font-weight: 600; flex: 1; }

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; opacity: .35; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.empty-state p { font-size: .875rem; }

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none;
  border: none;
  padding: .7rem 1.2rem;
  font-family: 'Nunito', sans-serif;
  font-size: .875rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Responsive ─── */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text);
  padding: .25rem;
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .hamburger {
    display: block;
  }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99;
  }
  .sidebar-overlay.show {
    display: block;
  }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 1rem; }
  .cert-grid { grid-template-columns: 1fr; }
}

/* ─── Utility ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.gap-1 { margin-bottom: 1rem; }
.gap-2 { margin-bottom: 1.5rem; }
.text-muted { color: var(--text-muted); }
.text-right { text-align: right; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; gap: .75rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.hidden { display: none !important; }
