/* ═══════════════════════════════════════════════════════
   AllexxLMS v2.0.0 — Stylesheet
   100% classes, zero inline colors no PHP
   ═══════════════════════════════════════════════════════ */

:root {
  --allexx-bg:       #07090f;
  --allexx-surface:  #0f1117;
  --allexx-card:     rgba(255,255,255,.04);
  --allexx-border:   rgba(255,255,255,.08);
  --allexx-green:    #00ff88;
  --allexx-text:     #e2e8f0;
  --allexx-muted:    #94a3b8;
  --allexx-dim:      #64748b;
  --allexx-radius:   10px;
  --allexx-shadow:   0 4px 24px rgba(0,0,0,.4);
  --allexx-yellow:   #fbbf24;
  --allexx-red:      #fc8181;
  --allexx-blue:     #60a5fa;
  --container-pad:   24px;
}

/* ── Reset ──────────────────────────────────────────── */
.allexx-wrap *        { box-sizing: border-box; }
.allexx-wrap a        { color: var(--allexx-green); text-decoration: none; }
.allexx-wrap a:hover  { text-decoration: underline; }
.allexx-wrap          { color: var(--allexx-text); }

/* ── Buttons ─────────────────────────────────────────── */
.allexx-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 8px; font-weight: 700;
  font-size: 14px; cursor: pointer; border: none; transition: all .15s;
  text-decoration: none !important;
}
.allexx-btn-primary  { background: var(--allexx-green); color: #0d0d0d !important; }
.allexx-btn-primary:hover { background: #00e07a; }
.allexx-btn-outline  { background: transparent; color: var(--allexx-text); border: 1px solid var(--allexx-border); }
.allexx-btn-outline:hover { border-color: var(--allexx-green); color: var(--allexx-green); }
.allexx-btn-block    { width: 100%; }
.allexx-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Inputs ──────────────────────────────────────────── */
.allexx-input {
  width: 100%; padding: 10px 14px; background: #1e2333 !important;
  color: var(--allexx-text) !important; border: 1px solid #3a4560 !important;
  border-radius: 6px !important; font-size: 14px; outline: none;
  box-sizing: border-box; font-family: inherit; margin-bottom: 8px;
  transition: border-color .15s;
}
.allexx-input::placeholder { color: var(--allexx-dim) !important; }
.allexx-input:focus { border-color: var(--allexx-green) !important; box-shadow: 0 0 0 3px rgba(0,255,136,.12) !important; }

/* ── Chips / Badges ──────────────────────────────────── */
.allexx-chip         { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.allexx-chip--green  { background: rgba(0,255,136,.15); color: var(--allexx-green); }
.allexx-chip--yellow { background: rgba(251,191,36,.15); color: var(--allexx-yellow); }
.allexx-chip--gray   { background: rgba(148,163,184,.12); color: var(--allexx-muted); }
.allexx-chip--red    { background: rgba(252,129,129,.12); color: var(--allexx-red); }
.allexx-badge-preview{ background: var(--allexx-yellow); color: #000; padding: 1px 6px; border-radius: 10px; font-size: 11px; vertical-align: middle; }
.allexx-warn         { color: var(--allexx-yellow); }

/* ── Tabs ────────────────────────────────────────────── */
.allexx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--allexx-border); margin-bottom: 24px; }
.allexx-tab  { padding: 10px 18px; color: var(--allexx-dim) !important; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; transition: all .15s; }
.allexx-tab:hover { color: var(--allexx-text) !important; }
.allexx-tab.active { color: var(--allexx-green) !important; border-bottom-color: var(--allexx-green); }

/* ── Hero ────────────────────────────────────────────── */
.allexx-hero {
  background: linear-gradient(135deg,rgba(13,13,13,.98) 0%,rgba(5,8,5,.99) 100%);
  border-bottom: 1px solid rgba(0,255,136,.1);
  padding: 40px var(--container-pad);
}
.allexx-hero--pre { border-bottom-color: rgba(251,191,36,.2); }
.allexx-pre-banner {
  background: linear-gradient(90deg,rgba(0,255,136,.12),rgba(0,255,136,.04));
  border: 1px solid rgba(0,255,136,.25);
  border-radius: 8px; padding: 10px 16px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.allexx-pre-label { color: var(--allexx-green); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
.allexx-pre-date  { color: var(--allexx-muted); font-size: 14px; }
.allexx-pre-date strong { color: var(--allexx-text); }

.allexx-hero__inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
.allexx-hero__title { color: #f1f5f9 !important; font-size: 2rem; margin: 12px 0 8px; line-height: 1.2; }
.allexx-hero__teaser { color: var(--allexx-muted); font-size: 16px; margin-bottom: 16px; }
.allexx-hero__meta   { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--allexx-muted); }
.allexx-hero__meta strong { color: var(--allexx-text); }
.allexx-hero__thumb { max-width: 280px; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0; }
.allexx-hero__thumb img { width: 100%; display: block; }
.allexx-hero__lock { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.allexx-tags { margin-bottom: 10px; }
.allexx-tag  { background: rgba(0,255,136,.12); color: var(--allexx-green); padding: 3px 12px; border-radius: 20px; font-size: 12px; margin-right: 6px; }

/* ── Layout ──────────────────────────────────────────── */
.allexx-course-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 32px;
  padding: 32px var(--container-pad); max-width: 1200px; margin: 0 auto;
}
.allexx-content { line-height: 1.8; color: var(--allexx-text); }

/* ── Curriculum ──────────────────────────────────────── */
.allexx-curriculum-summary { font-size: 14px; color: var(--allexx-muted); margin-bottom: 16px; }
.allexx-section { border: 1px solid var(--allexx-border); border-radius: 8px; margin-bottom: 12px; overflow: hidden; }
.allexx-section-hd {
  background: rgba(255,255,255,.04); padding: 14px 18px;
  font-weight: 700; font-size: 15px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  color: #f1f5f9;
}
.allexx-section-status { display: flex; align-items: center; gap: 8px; }
.allexx-section-toggle { color: var(--allexx-muted); font-size: 12px; transition: transform .2s; }
.allexx-section.open .allexx-section-toggle { transform: rotate(180deg); }
.allexx-section-body { display: none; }
.allexx-section.open .allexx-section-body { display: block; }

.allexx-lesson {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px; color: var(--allexx-muted) !important;
  border-bottom: 1px solid var(--allexx-border); font-size: 14px;
  transition: background .12s;
}
.allexx-lesson:last-of-type { border-bottom: none; }
.allexx-lesson:hover         { background: rgba(0,255,136,.04); color: var(--allexx-text) !important; }
.allexx-lesson.done          { color: #86efac !important; }
.allexx-lesson.locked        { opacity: .5; cursor: not-allowed; }
.allexx-lesson-icon          { width: 20px; text-align: center; flex-shrink: 0; }
.allexx-lesson-title         { flex: 1; }
.allexx-lesson-dur           { font-size: 12px; color: var(--allexx-dim); }

/* ── Exam blocks (within curriculum) ─────────────────── */
.allexx-exam-block {
  border-top: 1px solid rgba(251,191,36,.2);
  background: rgba(251,191,36,.04);
  padding: 16px 18px;
}
.allexx-exam-info    { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.allexx-exam-meta    { font-size: 12px; color: var(--allexx-muted); margin-top: 4px; }
.allexx-exam-pending { padding: 12px 18px; font-size: 13px; color: var(--allexx-muted); border-top: 1px solid var(--allexx-border); }
.allexx-exam-result-badge { padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.allexx-exam-result-badge.--passed { background: rgba(0,255,136,.12); color: var(--allexx-green); }

/* ── Sidebar / Enroll card ───────────────────────────── */
.allexx-sidebar { position: sticky; top: 20px; }
.allexx-enroll-card {
  background: var(--allexx-card); border: 1px solid var(--allexx-border);
  border-radius: 14px; padding: 22px;
  box-shadow: var(--allexx-shadow);
}
.allexx-pre-card-badge { text-align: center; margin-bottom: 14px; }
.allexx-pre-card-badge { font-weight: 800; color: var(--allexx-green); font-size: 14px; background: rgba(0,255,136,.1); padding: 6px 16px; border-radius: 20px; display: inline-block; }

/* Launch date box */
.allexx-launch-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 14px; text-align: center; margin-bottom: 16px; }
.allexx-launch-box__label { font-size: 11px; color: var(--allexx-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.allexx-launch-box__date  { font-size: 17px; font-weight: 700; color: #f1f5f9; }

/* Countdown */
.allexx-countdown { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.allexx-cd-block  { text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 6px; padding: 8px 10px; min-width: 50px; }
.allexx-cd-n      { display: block; font-size: 22px; font-weight: 800; color: var(--allexx-green); line-height: 1; }
.allexx-cd-l      { display: block; font-size: 10px; color: var(--allexx-dim); text-transform: uppercase; letter-spacing: .05em; }

/* Interest form */
.allexx-interest-form { margin-top: 4px; }
.allexx-interest-success { background: rgba(0,255,136,.08); border: 1px solid rgba(0,255,136,.25); color: var(--allexx-green); border-radius: 6px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-top: 8px; }
.allexx-interest-error   { background: rgba(252,129,129,.08); border: 1px solid rgba(252,129,129,.25); color: var(--allexx-red); border-radius: 6px; padding: 10px 14px; font-size: 14px; margin-top: 8px; }
.allexx-interest-count   { text-align: center; font-size: 13px; color: var(--allexx-muted); margin-top: 12px; }

/* Price */
.allexx-price       { font-size: 32px; font-weight: 800; color: var(--allexx-green); text-align: center; margin-bottom: 14px; }
.allexx-price--free { color: var(--allexx-green); }
.allexx-price__old  { font-size: 16px; font-weight: 400; color: var(--allexx-muted); text-decoration: line-through; }

/* Course info list */
.allexx-info-list { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--allexx-border); padding-top: 12px; }
.allexx-info-list li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--allexx-muted); border-bottom: 1px solid rgba(255,255,255,.04); }
.allexx-info-list li:last-child { border: none; }
.allexx-info-list li strong { color: #f1f5f9; }

/* Progress */
.allexx-progress-wrap { margin: 12px 0; }

/* Cert banner */
.allexx-cert-banner { display: flex; gap: 14px; align-items: center; background: rgba(0,255,136,.06); border: 1px solid rgba(0,255,136,.18); border-radius: 8px; padding: 16px; margin-top: 20px; color: var(--allexx-text); }
.allexx-cert-banner span { font-size: 32px; flex-shrink: 0; }
.allexx-cert-banner strong { color: #f1f5f9; }
.allexx-cert-banner small  { color: var(--allexx-muted); }

/* ── Lesson view ─────────────────────────────────────── */
.allexx-lesson-wrap { padding: 0; }
.allexx-lesson-layout { display: grid; grid-template-columns: 1fr 300px; min-height: 100vh; }
.allexx-lesson-main { padding: 32px; }
.allexx-lesson-breadcrumb { margin-bottom: 16px; }
.allexx-lesson-breadcrumb a { font-size: 13px; color: var(--allexx-muted); }
.allexx-lesson-title { color: #f1f5f9; margin: 0 0 8px; font-size: 1.6rem; }
.allexx-lesson-dur   { color: var(--allexx-muted); font-size: 13px; margin-bottom: 16px; }
.allexx-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; background: #000; }
.allexx-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.allexx-lesson-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--allexx-border); flex-wrap: wrap; gap: 12px; }
.allexx-lesson-done-badge { color: var(--allexx-green); font-weight: 700; }
.allexx-complete-lesson { background: var(--allexx-green); color: #0d0d0d; }

/* Lesson sidebar */
.allexx-lesson-sidebar { background: rgba(255,255,255,.02); border-left: 1px solid var(--allexx-border); overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.allexx-sidebar-curriculum { padding: 16px; }
.allexx-sidebar-course-title { font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--allexx-border); }
.allexx-sidebar-course-title a { color: #f1f5f9; }
.allexx-sidebar-section { margin-bottom: 16px; }
.allexx-sidebar-section-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--allexx-dim); margin-bottom: 6px; }
.allexx-sidebar-item { display: flex; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; color: var(--allexx-muted) !important; transition: background .12s; }
.allexx-sidebar-item:hover  { background: rgba(255,255,255,.04); color: var(--allexx-text) !important; }
.allexx-sidebar-item.active { background: rgba(0,255,136,.1); color: var(--allexx-green) !important; font-weight: 700; }
.allexx-sidebar-item.done   { color: #86efac !important; }

/* ── Course catalog ──────────────────────────────────── */
.allexx-courses-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 24px; }
.allexx-course-card  { background: var(--allexx-surface); border: 1px solid var(--allexx-border); border-radius: 12px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.allexx-course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.allexx-card-thumb   { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; background: #1e2333; }
.allexx-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.allexx-card-no-thumb { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.allexx-card-badge-pre { position: absolute; top: 10px; left: 10px; background: var(--allexx-green); color: #000; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 20px; }
.allexx-card-body    { padding: 16px; }
.allexx-card-meta    { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.allexx-card-title   { margin: 0 0 8px; font-size: 16px; line-height: 1.3; }
.allexx-card-title a { color: #f1f5f9 !important; }
.allexx-card-excerpt { font-size: 13px; color: var(--allexx-muted); margin: 0 0 14px; }
.allexx-card-footer  { display: flex; justify-content: space-between; align-items: flex-end; }

/* ── Dashboard ───────────────────────────────────────── */
.allexx-dashboard { padding: 20px 0; }
.allexx-dashboard-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--allexx-border); }
.allexx-avatar { border-radius: 50%; border: 3px solid var(--allexx-green); }
.allexx-dashboard-courses { display: flex; flex-direction: column; gap: 16px; }
.allexx-dashboard-course { display: flex; gap: 16px; background: var(--allexx-card); border: 1px solid var(--allexx-border); border-radius: 10px; padding: 16px; }
.allexx-dashboard-thumb { width: 80px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.allexx-dashboard-thumb img { width: 100%; }
.allexx-no-thumb { font-size: 24px; text-align: center; padding: 8px; }
.allexx-dashboard-info h3 { margin: 0 0 6px; font-size: 15px; }
.allexx-dashboard-info h3 a { color: #f1f5f9 !important; }

/* ── Exam Modal ──────────────────────────────────────── */
.allexx-modal { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.allexx-modal-box { background: #0f1117; border: 1px solid rgba(0,255,136,.2); border-radius: 16px; width: 100%; max-width: 700px; max-height: 92vh; overflow-y: auto; box-shadow: 0 32px 80px rgba(0,0,0,.8); }
.allexx-modal-hd  { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px 14px; border-bottom: 1px solid var(--allexx-border); }
.allexx-modal-title    { font-size: 16px; font-weight: 700; color: #f1f5f9; }
.allexx-modal-progress { font-size: 13px; color: var(--allexx-muted); }

/* Timer */
.allexx-timer-bar   { height: 4px; background: var(--allexx-border); }
.allexx-timer-fill  { height: 100%; background: var(--allexx-green); width: 100%; transition: width .5s linear, background .5s; }
.allexx-timer-fill.--warn   { background: var(--allexx-yellow); }
.allexx-timer-fill.--danger { background: var(--allexx-red); }
.allexx-timer-label { text-align: right; padding: 4px 24px; font-size: 13px; font-weight: 700; color: var(--allexx-muted); font-variant-numeric: tabular-nums; }

/* Question */
.allexx-modal-body { padding: 24px; }
.allexx-q-text { font-size: 16px; font-weight: 600; color: #f1f5f9; margin-bottom: 20px; line-height: 1.6; }
.allexx-options { list-style: none; padding: 0; margin: 0; }
.allexx-option  { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--allexx-border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: border-color .12s, background .12s; color: var(--allexx-muted); font-size: 14px; }
.allexx-option:hover { border-color: rgba(0,255,136,.4); background: rgba(0,255,136,.04); color: var(--allexx-text); }
.allexx-option.selected { border-color: var(--allexx-green); background: rgba(0,255,136,.1); color: var(--allexx-text); }
.allexx-option-letter { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; color: var(--allexx-muted); }
.allexx-option.selected .allexx-option-letter { background: var(--allexx-green); color: #000; }
.allexx-modal-ft  { padding: 12px 24px 20px; display: flex; justify-content: flex-end; }

/* Results */
.allexx-exam-results { padding: 32px 24px; text-align: center; }
.allexx-score-circle { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 800; }
.allexx-score-circle.--passed { background: rgba(0,255,136,.12); border: 3px solid var(--allexx-green); color: var(--allexx-green); }
.allexx-score-circle.--failed { background: rgba(252,129,129,.1); border: 3px solid var(--allexx-red); color: var(--allexx-red); }
.allexx-score-num  { font-size: 34px; line-height: 1; }
.allexx-result-title { font-size: 22px; font-weight: 800; color: #f1f5f9; margin-bottom: 6px; }
.allexx-result-sub   { font-size: 14px; color: var(--allexx-muted); margin-bottom: 20px; }
.allexx-result-detail { text-align: left; max-height: 220px; overflow-y: auto; border: 1px solid var(--allexx-border); border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; }
.allexx-detail-item { padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.04); font-size: 13px; display: flex; gap: 8px; color: var(--allexx-muted); }
.allexx-detail-item:last-child { border: none; }
.allexx-detail-item.ok  { color: #86efac; }
.allexx-detail-item.bad { color: #fca5a5; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width:900px) {
  .allexx-hero__inner       { grid-template-columns: 1fr; }
  .allexx-hero__thumb       { max-width: 100%; }
  .allexx-course-layout     { grid-template-columns: 1fr; }
  .allexx-sidebar           { position: static; }
  .allexx-lesson-layout     { grid-template-columns: 1fr; }
  .allexx-lesson-sidebar    { max-height: none; }
  .allexx-courses-grid      { grid-template-columns: 1fr 1fr; }
}
@media (max-width:600px) {
  .allexx-courses-grid      { grid-template-columns: 1fr; }
  .allexx-hero__title       { font-size: 1.5rem; }
  .allexx-lesson-footer     { flex-direction: column; }
  .allexx-modal-box         { border-radius: 10px; }
}
