/* ============================================================
   admin.css — HealthPliant Multi-Tenant Admin Styles
   ============================================================
   Add this alongside your existing styles.css.
   These styles cover: auth pages, app shell, sidebar, dashboard,
   employee management, compliance grid, forms.
   ============================================================ */

:root {
  --hp-bg:         #f8f9fb;
  --hp-surface:    #ffffff;
  --hp-border:     #e2e5ea;
  --hp-text:       #1a1d23;
  --hp-text-muted: #6b7280;
  --hp-primary:    #4f46e5;
  --hp-primary-hover: #4338ca;
  --hp-green:      #16a34a;
  --hp-yellow:     #ca8a04;
  --hp-red:        #dc2626;
  --hp-gray:       #9ca3af;
  --hp-sidebar-bg: #111318;
  --hp-sidebar-text: #b0b7c3;
  --hp-sidebar-active: #ffffff;
  --hp-radius:     8px;
  --hp-radius-sm:  5px;
  --hp-shadow:     0 1px 3px rgba(0,0,0,0.06);
  --hp-shadow-md:  0 4px 12px rgba(0,0,0,0.08);
  --hp-font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================
   Auth pages — login & signup
   ========================================================= */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hp-bg);
  padding: 24px;
}

.login-form, .signup-form {
  background: var(--hp-surface);
  border-radius: 12px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--hp-shadow-md);
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--hp-primary);
  margin: 0;
}
.login-logo p {
  color: var(--hp-text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.login-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}

.link-btn {
  background: none;
  border: none;
  color: var(--hp-primary);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

/* Signup progress bar */
.signup-progress {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
}
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hp-gray);
}
.progress-step.active { color: var(--hp-primary); }
.progress-step.done { color: var(--hp-green); }
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  border: 2px solid var(--hp-border);
  color: var(--hp-gray);
}
.progress-step.active .step-dot { border-color: var(--hp-primary); color: var(--hp-primary); background: #eef2ff; }
.progress-step.done .step-dot { border-color: var(--hp-green); color: #fff; background: var(--hp-green); }

.signup-error {
  background: #fef2f2;
  color: var(--hp-red);
  padding: 10px 14px;
  border-radius: var(--hp-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}

.signup-subtitle {
  color: var(--hp-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.signup-done { text-align: center; }
.done-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--hp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 16px;
}
.done-summary p { margin: 8px 0; color: var(--hp-text-muted); font-size: 14px; }
.done-summary strong { color: var(--hp-text); }

/* Org type grid */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.type-card {
  background: var(--hp-surface);
  border: 2px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s;
}
.type-card:hover { border-color: var(--hp-primary); }
.type-icon { font-size: 28px; margin-bottom: 8px; }
.type-label { font-weight: 600; font-size: 15px; color: var(--hp-text); margin-bottom: 6px; }
.type-desc { font-size: 13px; color: var(--hp-text-muted); line-height: 1.4; margin-bottom: 8px; }
.type-courses { font-size: 12px; color: var(--hp-primary); font-weight: 500; }
.type-states { font-size: 11px; color: var(--hp-gray); margin-top: 4px; }

/* =========================================================
   Forms
   ========================================================= */

.form-group {
  margin-bottom: 16px;
  flex: 1;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hp-text);
  margin-bottom: 5px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  font-size: 14px;
  font-family: var(--hp-font);
  color: var(--hp-text);
  background: var(--hp-surface);
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--hp-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}

.form-hint {
  font-size: 12px;
  color: var(--hp-text-muted);
  margin-top: 8px;
}

.btn-primary {
  background: var(--hp-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: var(--hp-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--hp-font);
}
.btn-primary:hover { background: var(--hp-primary-hover); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  background: var(--hp-surface);
  color: var(--hp-text);
  border: 1px solid var(--hp-border);
  padding: 10px 20px;
  border-radius: var(--hp-radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--hp-font);
}
.btn-secondary:hover { background: var(--hp-bg); }

.btn-danger {
  background: #fef2f2;
  color: var(--hp-red);
  border: 1px solid #fecaca;
  padding: 10px 20px;
  border-radius: var(--hp-radius-sm);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--hp-font);
}
.btn-danger:hover { background: #fee2e2; }

/* =========================================================
   App Layout — Sidebar + Main
   ========================================================= */

.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--hp-bg);
}

.sidebar {
  width: 240px;
  background: var(--hp-sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: width 0.2s;
}
.sidebar-collapsed .sidebar { width: 64px; }

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { font-size: 22px; }
.brand-name { font-size: 16px; font-weight: 700; color: #fff; }

.sidebar-toggle {
  background: none;
  border: none;
  color: var(--hp-sidebar-text);
  cursor: pointer;
  font-size: 12px;
  padding: 4px;
}
.sidebar-toggle:hover { color: #fff; }

.org-switcher {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.org-switcher select {
  width: 100%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--hp-radius-sm);
  padding: 8px;
  font-size: 13px;
}

.org-info {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.org-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.org-type-badge {
  display: inline-block;
  background: rgba(79,70,229,0.3);
  color: #a5b4fc;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
}
.trial-badge {
  display: inline-block;
  background: rgba(234,179,8,0.2);
  color: #fbbf24;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 6px;
}

.sidebar-nav {
  flex: 1;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: none;
  color: var(--hp-sidebar-text);
  font-size: 14px;
  cursor: pointer;
  border-radius: var(--hp-radius-sm);
  text-align: left;
  font-family: var(--hp-font);
  transition: background 0.1s;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-item.active { background: rgba(79,70,229,0.25); color: #fff; }

.nav-icon { font-size: 18px; flex-shrink: 0; }

.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.user-name { color: #fff; font-size: 13px; font-weight: 500; }
.user-role { color: var(--hp-sidebar-text); font-size: 11px; text-transform: capitalize; }

.logout-btn { margin-top: 4px; }

/* =========================================================
   Main Content Area
   ========================================================= */

.main-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  max-width: 1200px;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h2 { margin: 0; font-size: 22px; font-weight: 700; color: var(--hp-text); }

.header-actions {
  display: flex;
  gap: 8px;
}

.count-badge {
  background: var(--hp-bg);
  color: var(--hp-text-muted);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

/* =========================================================
   Filters & Tabs
   ========================================================= */

.filters-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.search-input {
  padding: 9px 14px;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius-sm);
  font-size: 14px;
  width: 280px;
  background: var(--hp-surface);
  color: var(--hp-text);
  font-family: var(--hp-font);
}
.search-input:focus {
  outline: none;
  border-color: var(--hp-primary);
}

.status-tabs {
  display: flex;
  gap: 4px;
  background: var(--hp-bg);
  padding: 3px;
  border-radius: var(--hp-radius-sm);
}
.tab-btn {
  padding: 6px 14px;
  border: none;
  background: none;
  font-size: 13px;
  color: var(--hp-text-muted);
  cursor: pointer;
  border-radius: 4px;
  font-family: var(--hp-font);
  white-space: nowrap;
}
.tab-btn.active { background: var(--hp-surface); color: var(--hp-text); font-weight: 500; box-shadow: var(--hp-shadow); }

/* =========================================================
   Data Table
   ========================================================= */

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  overflow: hidden;
  box-shadow: var(--hp-shadow);
}
.data-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hp-text-muted);
  background: #f9fafb;
  border-bottom: 1px solid var(--hp-border);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.data-table td {
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid #f3f4f6;
  color: var(--hp-text);
}
.data-table tbody tr:last-child td { border-bottom: none; }

.clickable-row { cursor: pointer; transition: background 0.1s; }
.clickable-row:hover { background: #f9fafb; }

.emp-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* =========================================================
   Avatars
   ========================================================= */

.avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--hp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--hp-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
  text-transform: uppercase;
}

/* =========================================================
   Status Pills & Dots
   ========================================================= */

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}
.status-pill.status-active    { background: #dcfce7; color: var(--hp-green); }
.status-pill.status-inactive  { background: #f3f4f6; color: var(--hp-gray); }
.status-pill.status-terminated { background: #fef2f2; color: var(--hp-red); }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}

.overdue-text { color: var(--hp-red); font-weight: 500; }
.error-text { color: var(--hp-red); }

/* =========================================================
   Dashboard — Stat Cards
   ========================================================= */

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dashboard-header h2 { margin: 0; font-size: 22px; font-weight: 700; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-stat {
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  padding: 20px;
  box-shadow: var(--hp-shadow);
}
.dashboard-stat .stat-value { font-size: 32px; font-weight: 700; line-height: 1; }
.dashboard-stat .stat-label { font-size: 13px; color: var(--hp-text-muted); margin-top: 6px; }
.dashboard-stat .stat-detail { font-size: 12px; color: var(--hp-gray); margin-top: 4px; }

/* Employee detail stat row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--hp-shadow);
}
.stat-card .stat-value { font-size: 24px; font-weight: 700; }
.stat-card .stat-label { font-size: 12px; color: var(--hp-text-muted); margin-top: 4px; }

/* =========================================================
   Compliance Grid
   ========================================================= */

.grid-section { margin-top: 8px; }

.grid-controls {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.grid-scroll {
  overflow-x: auto;
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
}

.compliance-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.compliance-grid th {
  padding: 10px 8px;
  font-weight: 600;
  font-size: 11px;
  color: var(--hp-text-muted);
  background: #f9fafb;
  border-bottom: 1px solid var(--hp-border);
  text-align: center;
  position: sticky;
  top: 0;
}
.compliance-grid td {
  padding: 8px;
  border-bottom: 1px solid #f3f4f6;
  text-align: center;
}

.grid-name-col {
  text-align: left !important;
  min-width: 160px;
  white-space: nowrap;
  font-weight: 500;
  position: sticky;
  left: 0;
  background: inherit;
  z-index: 1;
}
.compliance-grid thead .grid-name-col { background: #f9fafb; }
.compliance-grid tbody .grid-name-col { background: var(--hp-surface); }

.grid-course-col {
  min-width: 48px;
  max-width: 80px;
}
.course-header {
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  white-space: nowrap;
  font-size: 10px;
  max-height: 100px;
  overflow: hidden;
}

.grid-pct-col {
  min-width: 48px;
}

.grid-cell { cursor: default; }

.cell-dot {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-block;
}

/* Legend */
.grid-legend {
  display: flex;
  gap: 20px;
  padding: 12px 0;
  font-size: 12px;
  color: var(--hp-text-muted);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

/* =========================================================
   Panels & Detail pages
   ========================================================= */

.form-panel, .employee-detail {
  max-width: 640px;
}
.form-panel .signup-form { box-shadow: none; padding: 0; }

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

.back-btn {
  background: none;
  border: none;
  color: var(--hp-primary);
  cursor: pointer;
  font-size: 14px;
  font-family: var(--hp-font);
  padding: 0;
}
.back-btn:hover { text-decoration: underline; }

.info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  box-shadow: var(--hp-shadow);
  margin-bottom: 24px;
}
.info-content h2 { margin: 0 0 6px; font-size: 20px; }
.info-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--hp-text-muted);
  margin-top: 4px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 12px;
}

/* =========================================================
   CSV Import
   ========================================================= */

.upload-zone {
  border: 2px dashed var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 40px;
  text-align: center;
  position: relative;
  transition: border-color 0.15s;
}
.upload-zone:hover { border-color: var(--hp-primary); }
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.csv-template {
  margin-top: 16px;
  background: #f9fafb;
  padding: 12px;
  border-radius: var(--hp-radius-sm);
}
.csv-template code {
  display: block;
  white-space: pre;
  font-size: 12px;
  color: var(--hp-text);
  font-family: 'SF Mono', 'Consolas', monospace;
}

.preview-table { font-size: 13px; }

.import-result { text-align: center; padding: 32px 0; }

/* =========================================================
   Courses page
   ========================================================= */

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.course-card {
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  padding: 16px;
  box-shadow: var(--hp-shadow);
}
.course-category {
  font-size: 11px;
  font-weight: 500;
  color: var(--hp-primary);
  margin-bottom: 6px;
}
.course-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--hp-text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.course-meta {
  font-size: 12px;
  color: var(--hp-text-muted);
}

/* =========================================================
   Settings
   ========================================================= */

.settings-form {
  background: var(--hp-surface);
  border-radius: var(--hp-radius);
  padding: 24px;
  box-shadow: var(--hp-shadow);
  max-width: 600px;
}

/* =========================================================
   Loading & Empty states
   ========================================================= */

.app-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 12px;
  color: var(--hp-text-muted);
  font-size: 14px;
}

.loading-state {
  padding: 40px;
  text-align: center;
  color: var(--hp-text-muted);
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--hp-text-muted);
}
.empty-state p { margin: 8px 0; }
.empty-state .btn-primary { margin-top: 16px; }

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--hp-border);
  border-top-color: var(--hp-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 768px) {
  .type-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
  .sidebar { position: fixed; z-index: 100; height: 100vh; }
  .sidebar-collapsed .sidebar { width: 0; overflow: hidden; }
  .main-content { padding: 16px; }
  .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .filters-bar { flex-direction: column; }
  .search-input { width: 100%; }
  .login-form, .signup-form { padding: 24px; }
}

/* ============================================================
   Certificate Preview Modal (v2 additions)
   ============================================================ */
.cert-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cert-preview-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-preview-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}

.cert-preview-content {
  position: relative;
  width: 90vw;
  max-width: 900px;
  height: 70vh;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.cert-preview-close {
  position: absolute;
  top: 8px; right: 12px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
}

.cert-preview-close:hover {
  background: rgba(0,0,0,0.8);
}

/* Button variants for certificate column */
.btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  white-space: nowrap;
}
.btn-sm:hover { background: #f3f4f6; }
.btn-sm.btn-outline { border-color: #6366f1; color: #6366f1; }
.btn-sm.btn-outline:hover { background: #eef2ff; }
.btn-sm.btn-primary { background: #6366f1; color: #fff; border-color: #6366f1; }
.btn-sm.btn-primary:hover { background: #4f46e5; }

/* Email verification banner */
.verify-banner {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.verify-banner button {
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: 4px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

/* Due date badges on course cards */
.due-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.due-badge.overdue {
  background: #fee2e2;
  color: #991b1b;
}
.due-badge.soon {
  background: #fff7ed;
  color: #9a3412;
}

/* Progress bar on course cards */
.progress-bar-wrap {
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}
