/*
Theme Name: Libongo Exam Manager
Theme URI: https://libongo.com
Author: Libongo
Author URI: https://libongo.com
Description: A professional exam management theme for schools and institutions. Inspired by modern e-learning platforms.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: libongo-exam-manager
Tags: education, exam, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */
:root {
  --lem-primary: #6d28d9;
  --lem-primary-dark: #5b21b6;
  --lem-primary-light: #ede9fe;
  --lem-accent: #f59e0b;
  --lem-accent-dark: #d97706;
  --lem-success: #10b981;
  --lem-danger: #ef4444;
  --lem-warning: #f59e0b;
  --lem-info: #3b82f6;

  --lem-bg: #ffffff;
  --lem-bg-secondary: #f8f7ff;
  --lem-bg-tertiary: #f1f0f9;
  --lem-surface: #ffffff;
  --lem-surface-raised: #ffffff;

  --lem-text-primary: #1a1523;
  --lem-text-secondary: #4b4569;
  --lem-text-muted: #8b85a1;
  --lem-text-inverse: #ffffff;

  --lem-border: #e5e2f0;
  --lem-border-strong: #c8c4dc;

  --lem-font-display: 'Sora', sans-serif;
  --lem-font-body: 'DM Sans', sans-serif;
  --lem-font-mono: 'JetBrains Mono', monospace;

  --lem-radius-sm: 6px;
  --lem-radius-md: 10px;
  --lem-radius-lg: 16px;
  --lem-radius-xl: 24px;
  --lem-radius-full: 9999px;

  --lem-shadow-sm: 0 1px 3px rgba(109,40,217,0.08);
  --lem-shadow-md: 0 4px 16px rgba(109,40,217,0.12);
  --lem-shadow-lg: 0 8px 32px rgba(109,40,217,0.16);

  --lem-sidebar-width: 260px;
  --lem-header-height: 68px;
  --lem-transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--lem-font-body);
  background: var(--lem-bg);
  color: var(--lem-text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--lem-primary);
  text-decoration: none;
  transition: color var(--lem-transition);
}

a:hover { color: var(--lem-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--lem-font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--lem-text-primary);
}

/* ===========================
   LAYOUT
   =========================== */
.lem-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.lem-container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.lem-grid {
  display: grid;
  gap: 24px;
}

.lem-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lem-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lem-grid--4 { grid-template-columns: repeat(4, 1fr); }

.lem-flex { display: flex; }
.lem-flex--center { align-items: center; justify-content: center; }
.lem-flex--between { align-items: center; justify-content: space-between; }
.lem-gap-sm { gap: 8px; }
.lem-gap-md { gap: 16px; }
.lem-gap-lg { gap: 24px; }

/* ===========================
   SITE HEADER
   =========================== */
.lem-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--lem-header-height);
  background: var(--lem-bg);
  border-bottom: 1px solid var(--lem-border);
  display: flex;
  align-items: center;
}

.lem-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.lem-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--lem-font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--lem-primary);
  text-decoration: none;
}

.lem-logo__icon {
  width: 36px;
  height: 36px;
  background: var(--lem-primary);
  border-radius: var(--lem-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.lem-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lem-nav a {
  padding: 8px 16px;
  border-radius: var(--lem-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--lem-text-secondary);
  transition: all var(--lem-transition);
}

.lem-nav a:hover,
.lem-nav a.active {
  background: var(--lem-primary-light);
  color: var(--lem-primary);
}

.lem-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===========================
   BUTTONS
   =========================== */
.lem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--lem-radius-md);
  font-family: var(--lem-font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--lem-transition);
  text-decoration: none;
  white-space: nowrap;
}

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

.lem-btn--primary:hover {
  background: var(--lem-primary-dark);
  border-color: var(--lem-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--lem-shadow-md);
}

.lem-btn--secondary {
  background: transparent;
  color: var(--lem-primary);
  border-color: var(--lem-primary);
}

.lem-btn--secondary:hover {
  background: var(--lem-primary-light);
  color: var(--lem-primary);
}

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

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

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

.lem-btn--accent:hover {
  background: var(--lem-accent-dark);
  border-color: var(--lem-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--lem-shadow-md);
}

.lem-btn--sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.lem-btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.lem-btn--icon {
  padding: 10px;
  width: 40px;
  height: 40px;
}

.lem-btn--danger {
  background: #fef2f2;
  color: var(--lem-danger);
  border-color: #fecaca;
}

.lem-btn--danger:hover {
  background: var(--lem-danger);
  color: white;
}

/* ===========================
   HERO SECTION
   =========================== */
.lem-hero {
  background: linear-gradient(135deg, #1a1523 0%, #2d1b69 50%, #1a1523 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.lem-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(109,40,217,0.4) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(245,158,11,0.2) 0%, transparent 40%);
}

.lem-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.lem-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245,158,11,0.2);
  border: 1px solid rgba(245,158,11,0.4);
  border-radius: var(--lem-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 20px;
}

.lem-hero__title {
  font-family: var(--lem-font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 20px;
}

.lem-hero__title span {
  color: #fbbf24;
}

.lem-hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
}

.lem-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lem-hero__stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.lem-hero__stat-value {
  font-family: var(--lem-font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.lem-hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.lem-hero__visual {
  position: relative;
}

.lem-hero__card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--lem-radius-xl);
  padding: 28px;
  backdrop-filter: blur(20px);
}

.lem-hero__card-title {
  font-family: var(--lem-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lem-hero__question-preview {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--lem-radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.lem-hero__question-preview p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.lem-hero__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lem-hero__choice {
  padding: 8px 12px;
  border-radius: var(--lem-radius-sm);
  font-size: 0.78rem;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}

.lem-hero__choice.correct {
  background: rgba(16,185,129,0.2);
  border-color: rgba(16,185,129,0.4);
  color: #6ee7b7;
  font-weight: 600;
}

/* ===========================
   FEATURES SECTION
   =========================== */
.lem-section {
  padding: 80px 0;
}

.lem-section--alt {
  background: var(--lem-bg-secondary);
}

.lem-section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.lem-section__tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--lem-primary-light);
  color: var(--lem-primary);
  border-radius: var(--lem-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lem-section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.lem-section__subtitle {
  font-size: 1rem;
  color: var(--lem-text-secondary);
  line-height: 1.7;
}

/* ===========================
   FEATURE CARDS
   =========================== */
.lem-feature-card {
  background: var(--lem-surface);
  border: 1px solid var(--lem-border);
  border-radius: var(--lem-radius-lg);
  padding: 28px;
  transition: all var(--lem-transition);
  position: relative;
  overflow: hidden;
}

.lem-feature-card:hover {
  border-color: var(--lem-primary);
  box-shadow: var(--lem-shadow-lg);
  transform: translateY(-3px);
}

.lem-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lem-primary), var(--lem-accent));
  opacity: 0;
  transition: opacity var(--lem-transition);
}

.lem-feature-card:hover::before { opacity: 1; }

.lem-feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--lem-radius-md);
  background: var(--lem-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.lem-feature-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.lem-feature-card__desc {
  font-size: 0.88rem;
  color: var(--lem-text-secondary);
  line-height: 1.6;
}

/* ===========================
   CARDS / EXAM CARDS
   =========================== */
.lem-card {
  background: var(--lem-surface);
  border: 1px solid var(--lem-border);
  border-radius: var(--lem-radius-lg);
  overflow: hidden;
  transition: all var(--lem-transition);
}

.lem-card:hover {
  box-shadow: var(--lem-shadow-md);
  transform: translateY(-2px);
}

.lem-card__body {
  padding: 20px;
}

.lem-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--lem-text-primary);
}

.lem-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--lem-text-muted);
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lem-card__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--lem-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===========================
   BADGES
   =========================== */
.lem-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--lem-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.lem-badge--primary {
  background: var(--lem-primary-light);
  color: var(--lem-primary);
}

.lem-badge--success {
  background: #d1fae5;
  color: #065f46;
}

.lem-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.lem-badge--danger {
  background: #fee2e2;
  color: #991b1b;
}

.lem-badge--info {
  background: #dbeafe;
  color: #1e40af;
}

.lem-badge--gray {
  background: #f1f0f9;
  color: var(--lem-text-secondary);
}

/* ===========================
   DASHBOARD LAYOUT
   =========================== */
.lem-dashboard {
  display: flex;
  min-height: calc(100vh - var(--lem-header-height));
}

.lem-sidebar {
  width: var(--lem-sidebar-width);
  background: #1a1523;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--lem-header-height);
  height: calc(100vh - var(--lem-header-height));
  overflow-y: auto;
}

.lem-sidebar__section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lem-sidebar__label {
  padding: 0 20px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.lem-sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: all var(--lem-transition);
  border-radius: 0;
  position: relative;
}

.lem-sidebar__link:hover {
  background: rgba(255,255,255,0.07);
  color: white;
}

.lem-sidebar__link.active {
  background: rgba(109,40,217,0.3);
  color: white;
}

.lem-sidebar__link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--lem-primary);
  border-radius: 0 2px 2px 0;
}

.lem-sidebar__link .icon {
  font-size: 1rem;
  opacity: 0.8;
  width: 18px;
  text-align: center;
}

.lem-sidebar__badge {
  margin-left: auto;
  background: var(--lem-primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--lem-radius-full);
}

.lem-main {
  flex: 1;
  background: var(--lem-bg-secondary);
  overflow-x: hidden;
}

.lem-page-header {
  background: var(--lem-bg);
  border-bottom: 1px solid var(--lem-border);
  padding: 24px 32px;
}

.lem-page-header__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.lem-page-header__subtitle {
  font-size: 0.88rem;
  color: var(--lem-text-secondary);
}

.lem-page-content {
  padding: 32px;
}

/* ===========================
   STAT CARDS
   =========================== */
.lem-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.lem-stat-card {
  background: var(--lem-surface);
  border: 1px solid var(--lem-border);
  border-radius: var(--lem-radius-lg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.lem-stat-card::after {
  content: '';
  position: absolute;
  right: -10px;
  top: -10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--lem-primary-light);
  opacity: 0.5;
}

.lem-stat-card__label {
  font-size: 0.78rem;
  color: var(--lem-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.lem-stat-card__value {
  font-family: var(--lem-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--lem-text-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.lem-stat-card__trend {
  font-size: 0.78rem;
  font-weight: 600;
}

.lem-stat-card__trend.up { color: var(--lem-success); }
.lem-stat-card__trend.down { color: var(--lem-danger); }

/* ===========================
   FORMS
   =========================== */
.lem-form-group {
  margin-bottom: 20px;
}

.lem-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lem-text-primary);
  margin-bottom: 6px;
}

.lem-label .required {
  color: var(--lem-danger);
  margin-left: 3px;
}

.lem-input,
.lem-select,
.lem-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--lem-bg);
  border: 1.5px solid var(--lem-border);
  border-radius: var(--lem-radius-md);
  font-family: var(--lem-font-body);
  font-size: 0.9rem;
  color: var(--lem-text-primary);
  transition: all var(--lem-transition);
  outline: none;
}

.lem-input:focus,
.lem-select:focus,
.lem-textarea:focus {
  border-color: var(--lem-primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,0.12);
}

.lem-textarea { resize: vertical; min-height: 100px; }

.lem-input-hint {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--lem-text-muted);
}

.lem-input-error {
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--lem-danger);
}

.lem-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.lem-form-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}

/* ===========================
   TABLES
   =========================== */
.lem-table-wrapper {
  background: var(--lem-surface);
  border: 1px solid var(--lem-border);
  border-radius: var(--lem-radius-lg);
  overflow: hidden;
}

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

.lem-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lem-text-muted);
  background: var(--lem-bg-secondary);
  border-bottom: 1px solid var(--lem-border);
}

.lem-table td {
  padding: 14px 16px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--lem-border);
  vertical-align: middle;
}

.lem-table tr:last-child td { border-bottom: none; }

.lem-table tr:hover td {
  background: var(--lem-bg-secondary);
}

/* ===========================
   MODALS
   =========================== */
.lem-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,21,35,0.6);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--lem-transition);
}

.lem-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.lem-modal {
  background: var(--lem-surface);
  border-radius: var(--lem-radius-xl);
  padding: 32px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform var(--lem-transition);
  box-shadow: var(--lem-shadow-lg);
}

.lem-modal-overlay.active .lem-modal {
  transform: scale(1) translateY(0);
}

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

.lem-modal__title {
  font-size: 1.2rem;
  font-weight: 800;
}

/* ===========================
   TABS
   =========================== */
.lem-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--lem-border);
  margin-bottom: 28px;
}

.lem-tab {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lem-text-secondary);
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--lem-transition);
  font-family: var(--lem-font-body);
}

.lem-tab:hover { color: var(--lem-primary); }

.lem-tab.active {
  color: var(--lem-primary);
  border-bottom-color: var(--lem-primary);
}

.lem-tab-content { display: none; }
.lem-tab-content.active { display: block; }

/* ===========================
   ALERTS / NOTICES
   =========================== */
.lem-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--lem-radius-md);
  font-size: 0.88rem;
  margin-bottom: 16px;
  border: 1px solid;
}

.lem-alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.lem-alert--danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.lem-alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.lem-alert--info    { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }

/* ===========================
   PAGINATION
   =========================== */
.lem-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 32px;
}

.lem-page-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--lem-radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lem-text-secondary);
  border: 1px solid var(--lem-border);
  text-decoration: none;
  transition: all var(--lem-transition);
}

.lem-page-link:hover,
.lem-page-link.active {
  background: var(--lem-primary);
  border-color: var(--lem-primary);
  color: white;
}

/* ===========================
   QUESTION BUILDER
   =========================== */
.lem-question-builder {
  background: var(--lem-surface);
  border: 1px solid var(--lem-border);
  border-radius: var(--lem-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.lem-question-builder__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--lem-bg-secondary);
  border-bottom: 1px solid var(--lem-border);
  cursor: pointer;
}

.lem-question-builder__num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
}

.lem-question-builder__num-badge {
  width: 28px;
  height: 28px;
  background: var(--lem-primary);
  color: white;
  border-radius: var(--lem-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.lem-question-builder__body {
  padding: 20px;
}

.lem-choice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lem-choice-label {
  width: 28px;
  height: 28px;
  border: 2px solid var(--lem-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--lem-text-muted);
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--lem-transition);
}

.lem-choice-label.correct {
  border-color: var(--lem-success);
  background: var(--lem-success);
  color: white;
}

/* ===========================
   FOOTER
   =========================== */
.lem-footer {
  background: #1a1523;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.lem-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.lem-footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.lem-footer__col-title {
  font-family: var(--lem-font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lem-footer__links { list-style: none; }

.lem-footer__links li {
  margin-bottom: 8px;
}

.lem-footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--lem-transition);
}

.lem-footer__links a:hover {
  color: white;
}

.lem-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.lem-text-center { text-align: center; }
.lem-text-right  { text-align: right; }
.lem-text-muted  { color: var(--lem-text-muted); }
.lem-text-primary-color { color: var(--lem-primary); }
.lem-mt-4  { margin-top: 4px; }
.lem-mt-8  { margin-top: 8px; }
.lem-mt-16 { margin-top: 16px; }
.lem-mt-24 { margin-top: 24px; }
.lem-mt-32 { margin-top: 32px; }
.lem-mb-4  { margin-bottom: 4px; }
.lem-mb-8  { margin-bottom: 8px; }
.lem-mb-16 { margin-bottom: 16px; }
.lem-mb-24 { margin-bottom: 24px; }
.lem-mb-32 { margin-bottom: 32px; }
.lem-hidden { display: none !important; }
.lem-w-full { width: 100%; }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .lem-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lem-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .lem-hero__inner { grid-template-columns: 1fr; }
  .lem-hero__visual { display: none; }
  .lem-sidebar { display: none; }
  .lem-grid--3 { grid-template-columns: 1fr; }
  .lem-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .lem-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .lem-footer__grid { grid-template-columns: 1fr; }
  .lem-form-row { grid-template-columns: 1fr; }
  .lem-page-content { padding: 20px; }
}

@media (max-width: 480px) {
  .lem-grid--4 { grid-template-columns: 1fr; }
  .lem-stats-grid { grid-template-columns: 1fr; }
}
