/* Edmora LMS Design System */
:root {
  --ed-primary: #6382ff;
  --ed-primary-dark: #4a6aff;
  --ed-primary-light: #eef1ff;
  --ed-sidebar-bg: #1a1f2e;
  --ed-sidebar-text: rgba(255, 255, 255, 0.6);
  --ed-sidebar-active: rgba(99, 130, 255, 0.15);
  --ed-sidebar-active-text: #6382ff;
  --ed-sidebar-border: rgba(255, 255, 255, 0.08);
  --ed-bg: #f4f5f7;
  --ed-card: #ffffff;
  --ed-border: #e8e8ee;
  --ed-text: #1a1f2e;
  --ed-text-muted: #6b7280;
  --ed-text-light: #9ca3af;
  --ed-success: #639922;
  --ed-success-bg: #eaf3de;
  --ed-warning: #ba7517;
  --ed-warning-bg: #faeeda;
  --ed-danger: #e24b4a;
  --ed-danger-bg: #fcebeb;
  --ed-info: #185fa5;
  --ed-info-bg: #e6f1fb;
  --ed-radius: 10px;
  --ed-radius-sm: 6px;
  --ed-sidebar-width: 220px;
  --ed-topbar-height: 56px;
  --bs-primary: #6382ff;
  --bs-primary-rgb: 99, 130, 255;
  --bs-link-color: #6382ff;
  --bs-link-hover-color: #4a6aff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--ed-text);
  background: var(--ed-bg);
  margin: 0;
  line-height: 1.5;
}

/* Bootstrap overrides */
.btn-primary {
  --bs-btn-bg: var(--ed-primary);
  --bs-btn-border-color: var(--ed-primary);
  --bs-btn-hover-bg: var(--ed-primary-dark);
  --bs-btn-hover-border-color: var(--ed-primary-dark);
  --bs-btn-active-bg: var(--ed-primary-dark);
  --bs-btn-active-border-color: var(--ed-primary-dark);
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-outline-primary {
  --bs-btn-color: var(--ed-primary);
  --bs-btn-border-color: var(--ed-border);
  --bs-btn-hover-bg: var(--ed-primary-light);
  --bs-btn-hover-border-color: var(--ed-primary);
  --bs-btn-hover-color: var(--ed-primary-dark);
  border-radius: 8px;
}

.btn-secondary,
.btn-outline-secondary {
  border-radius: 8px;
  --bs-btn-color: var(--ed-text);
  --bs-btn-border-color: var(--ed-border);
  --bs-btn-bg: #fff;
  --bs-btn-hover-bg: #f8f9fa;
}

.text-primary { color: var(--ed-primary) !important; }
.bg-primary { background-color: var(--ed-primary) !important; }
.border-primary { border-color: var(--ed-primary) !important; }
.nav-link.active { color: var(--ed-primary); }
.progress-bar { background-color: var(--ed-primary); }
.form-control:focus,
.form-select:focus {
  border-color: var(--ed-primary);
  box-shadow: 0 0 0 3px rgba(99, 130, 255, 0.12);
}

.form-control,
.form-select {
  min-height: 40px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  font-size: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ed-text);
}

/* Typography */
.ed-page-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  color: var(--ed-text);
}

.ed-section-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 12px;
  color: var(--ed-text);
}

.ed-text-muted {
  font-size: 13px;
  color: var(--ed-text-muted);
}

/* App shell */
.ed-app {
  min-height: 100vh;
}

.ed-shell {
  display: flex;
  min-height: 100vh;
}

.ed-sidebar {
  width: var(--ed-sidebar-width);
  flex-shrink: 0;
  background: var(--ed-sidebar-bg);
  color: var(--ed-sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1040;
  transition: transform 0.25s ease;
}

.ed-sidebar-brand {
  padding: 20px 16px;
  border-bottom: 1px solid var(--ed-sidebar-border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.ed-sidebar-brand:hover { color: #fff; }

.ed-sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ed-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.ed-sidebar-institute {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}

.ed-nav-group {
  margin-bottom: 8px;
}

.ed-nav-group-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 16px 4px;
}

.ed-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  margin: 2px 8px;
  border-radius: var(--ed-radius-sm);
  color: var(--ed-sidebar-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.ed-nav-link i,
.ed-nav-link .ti {
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.85;
}

.ed-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.9);
}

.ed-nav-link.active {
  background: var(--ed-sidebar-active);
  color: var(--ed-sidebar-active-text);
}

.ed-nav-link.active i,
.ed-nav-link.active .ti {
  opacity: 1;
  color: var(--ed-sidebar-active-text);
}

.ed-sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--ed-sidebar-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.ed-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.ed-sidebar-user-name {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ed-sidebar-user-role {
  font-size: 11px;
  color: var(--ed-sidebar-text);
  text-transform: capitalize;
}

.ed-main-wrap {
  flex: 1;
  margin-left: var(--ed-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.ed-topbar {
  height: var(--ed-topbar-height);
  background: var(--ed-card);
  border-bottom: 1px solid var(--ed-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 1030;
  flex-shrink: 0;
}

.ed-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ed-topbar-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-icon-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ed-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s, color 0.15s;
}

.ed-icon-btn:hover {
  border-color: var(--ed-primary);
  color: var(--ed-primary);
}

.ed-icon-btn .badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 10px;
  font-weight: 600;
  background: var(--ed-danger);
  color: #fff;
  border-radius: 8px;
  display: none;
  align-items: center;
  justify-content: center;
}

.ed-icon-btn .badge-dot.show { display: flex; }

.ed-content {
  flex: 1;
  padding: 24px;
}

.ed-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1035;
}

.ed-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ed-text);
}

/* Cards */
.ed-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px 20px;
}

.ed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 0;
}

.ed-card-flush {
  padding: 0;
  overflow: hidden;
}

.ed-card-flush .ed-card-body {
  padding: 16px 20px;
}

/* Stat cards */
.ed-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ed-stat-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ed-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ed-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ed-stat-icon.blue { background: var(--ed-primary-light); color: var(--ed-primary); }
.ed-stat-icon.green { background: var(--ed-success-bg); color: var(--ed-success); }
.ed-stat-icon.amber { background: var(--ed-warning-bg); color: var(--ed-warning); }
.ed-stat-icon.purple { background: #f0ebff; color: #7c5cdb; }

.ed-stat-value {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ed-text);
}

.ed-stat-label {
  font-size: 13px;
  color: var(--ed-text-muted);
  margin-top: 2px;
}

.ed-stat-trend {
  font-size: 12px;
  color: var(--ed-text-light);
  margin-top: 6px;
}

/* Badges */
.ed-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.ed-badge-success { background: var(--ed-success-bg); color: var(--ed-success); }
.ed-badge-warning { background: var(--ed-warning-bg); color: var(--ed-warning); }
.ed-badge-danger { background: var(--ed-danger-bg); color: var(--ed-danger); }
.ed-badge-info { background: var(--ed-info-bg); color: var(--ed-info); }
.ed-badge-neutral { background: #f1f1f4; color: var(--ed-text-muted); }
.ed-badge-primary { background: var(--ed-primary-light); color: var(--ed-primary); }

/* Tables */
.ed-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ed-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.ed-table thead th {
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ed-text-muted);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ed-border);
}

.ed-table tbody td {
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--ed-border);
  vertical-align: middle;
}

.ed-table tbody tr:hover td {
  background: #f8f9fa;
}

.ed-table tbody tr.ed-row-highlight td {
  background: var(--ed-primary-light);
}

/* Avatar */
.ed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ed-primary-light);
  color: var(--ed-primary);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ed-avatar-lg {
  width: 80px;
  height: 80px;
  font-size: 28px;
}

/* Icon action buttons */
.ed-btn-icon {
  width: 32px;
  height: 32px;
  border: 1px solid var(--ed-border);
  border-radius: 8px;
  background: #fff;
  color: var(--ed-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.15s;
}

.ed-btn-icon:hover {
  border-color: var(--ed-primary);
  color: var(--ed-primary);
}

/* Page header */
.ed-page-header {
  margin-bottom: 24px;
}

.ed-page-header h1 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 4px;
}

/* Grid layouts */
.ed-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ed-grid-2-1 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

.ed-grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

/* Quick actions */
.ed-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.ed-quick-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  color: var(--ed-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ed-quick-action:hover {
  border-color: var(--ed-primary);
  color: var(--ed-primary);
  box-shadow: 0 2px 8px rgba(99, 130, 255, 0.1);
}

/* Tabs */
.ed-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--ed-border);
  margin-bottom: 20px;
}

.ed-tab {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ed-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.ed-tab:hover { color: var(--ed-text); }
.ed-tab.active {
  color: var(--ed-primary);
  border-bottom-color: var(--ed-primary);
}

/* Pill toggles */
.ed-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ed-pill {
  padding: 8px 16px;
  border: 1px solid var(--ed-border);
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ed-text-muted);
  transition: all 0.15s;
}

.ed-pill:hover,
.ed-pill.active {
  background: var(--ed-primary-light);
  border-color: var(--ed-primary);
  color: var(--ed-primary);
}

/* Live class cards */
.ed-class-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.ed-class-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px 20px;
}

.ed-class-card-title {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
}

/* Storage widget */
.ed-storage-widget .ed-storage-bar {
  height: 8px;
  background: #e8e8ee;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.ed-storage-widget .ed-storage-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.ed-storage-fill.ok { background: var(--ed-success); }
.ed-storage-fill.warn { background: var(--ed-warning); }
.ed-storage-fill.danger { background: var(--ed-danger); }

/* Flash toasts */
.ed-toast-stack {
  position: fixed;
  top: 72px;
  right: 24px;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.ed-toast {
  padding: 12px 16px;
  border-radius: var(--ed-radius);
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  animation: ed-toast-in 0.3s ease;
}

.ed-toast-success {
  background: var(--ed-success-bg);
  color: var(--ed-success);
  border: 1px solid rgba(99, 153, 34, 0.25);
}

.ed-toast-error {
  background: var(--ed-danger-bg);
  color: var(--ed-danger);
  border: 1px solid rgba(226, 75, 74, 0.25);
}

.ed-toast-info {
  background: var(--ed-info-bg);
  color: var(--ed-info);
  border: 1px solid rgba(24, 95, 165, 0.25);
}

@keyframes ed-toast-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Empty state */
.ed-empty {
  text-align: center;
  padding: 48px 24px;
}

.ed-empty-icon {
  font-size: 48px;
  color: var(--ed-text-light);
  margin-bottom: 16px;
  display: block;
}

.ed-empty h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 8px;
}

/* Student dashboard */
.ed-welcome-banner {
  background: linear-gradient(135deg, var(--ed-primary) 0%, var(--ed-primary-dark) 100%);
  border-radius: var(--ed-radius);
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 24px;
}

.ed-welcome-banner h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}

.ed-scroll-cards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.ed-scroll-card {
  flex: 0 0 260px;
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px;
}

.ed-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ed-course-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s;
}

.ed-course-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  color: inherit;
}

/* Exam attempt layout */
.ed-exam-layout {
  min-height: 100vh;
  background: var(--ed-bg);
  display: flex;
  flex-direction: column;
}

.ed-exam-topbar {
  background: #fff;
  border-bottom: 1px solid var(--ed-border);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ed-exam-timer {
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ed-primary);
}

.ed-exam-timer.danger { color: var(--ed-danger); }

.ed-exam-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  flex: 1;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 24px;
}

.ed-exam-palette {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 16px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.ed-exam-q-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.ed-exam-q-btn {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--ed-border);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ed-text-muted);
}

.ed-exam-q-btn.answered {
  background: var(--ed-success-bg);
  border-color: var(--ed-success);
  color: var(--ed-success);
}

.ed-exam-q-btn.current {
  border-color: var(--ed-primary);
  color: var(--ed-primary);
  box-shadow: 0 0 0 2px rgba(99, 130, 255, 0.2);
}

.ed-exam-question-panel {
  background: #fff;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 24px;
}

.ed-exam-progress {
  height: 4px;
  background: #e8e8ee;
  border-radius: 2px;
  margin-bottom: 16px;
  overflow: hidden;
}

.ed-exam-progress-fill {
  height: 100%;
  background: var(--ed-primary);
  transition: width 0.3s;
}

.ed-exam-footer {
  background: #fff;
  border-top: 1px solid var(--ed-border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  bottom: 0;
}

.ed-save-status {
  font-size: 12px;
  color: var(--ed-success);
}

/* List toolbar */
.ed-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ed-border);
}

.ed-toolbar .ed-search {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

/* Danger button */
.btn-ed-danger {
  background: var(--ed-danger-bg);
  color: var(--ed-danger);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 500;
}

.btn-ed-danger:hover {
  background: #f9d4d4;
  color: var(--ed-danger);
}

/* Pagination */
.pagination .page-link {
  border-color: var(--ed-border);
  color: var(--ed-text);
  border-radius: 6px !important;
  margin: 0 2px;
}

.pagination .page-item.active .page-link {
  background: var(--ed-primary);
  border-color: var(--ed-primary);
}

/* Preview panel */
.ed-preview-panel {
  background: #f8f9fa;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 20px;
}

/* Chapter builder */
.ed-chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ed-chapter-item {
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  margin-bottom: 8px;
  background: #fff;
}

.ed-chapter-item.active {
  border-color: var(--ed-primary);
  background: var(--ed-primary-light);
}

.ed-lesson-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  margin-bottom: 8px;
  background: #fff;
}

.ed-lesson-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ed-primary-light);
  color: var(--ed-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Auth / landing use edmora vars */
.ed-auth-card {
  background: var(--ed-card);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 32px;
  max-width: 420px;
  margin: 0 auto;
}

/* Mobile */
@media (max-width: 768px) {
  .ed-sidebar {
    transform: translateX(-100%);
  }

  .ed-sidebar.open {
    transform: translateX(0);
  }

  .ed-overlay.show {
    display: block;
  }

  .ed-main-wrap {
    margin-left: 0;
  }

  .ed-menu-toggle {
    display: inline-flex;
  }

  .ed-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .ed-grid-2,
  .ed-grid-2-1,
  .ed-grid-1-2 {
    grid-template-columns: 1fr;
  }

  .ed-content {
    padding: 16px;
  }

  .ed-topbar {
    padding: 0 16px;
  }

  .ed-exam-body {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .ed-exam-palette {
    position: static;
  }

  .ed-toast-stack {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width: 375px) {
  .ed-stats-row {
    gap: 10px;
  }

  .ed-stat-card {
    padding: 12px 14px;
  }

  .ed-stat-value {
    font-size: 20px;
  }
}
