/* Style cho Hệ thống Học trực tuyến AutoCAD 2D LMS (Dark Theme chuẩn theo Mockup) */
:root {
  --lms-bg: #030712;
  --lms-card: #0f172a;
  --lms-card-border: #1e293b;
  --lms-text: #f8fafc;
  --lms-text-muted: #94a3b8;
  --lms-blue: #3b82f6;
  --lms-blue-hover: #2563eb;
  --lms-emerald: #10b981;
  --lms-amber: #f59e0b;
}

body.lms-body {
  background-color: var(--lms-bg);
  color: var(--lms-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Header phòng học */
.lms-navbar {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lms-card-border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.lms-nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-back-circle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.btn-back-circle:hover {
  background: #334155;
  color: #ffffff;
  transform: translateX(-2px);
}

.lms-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 120px 16px;
}

/* Thẻ Hero Khóa Học */
.course-hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  border: 1px solid #312e81;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.course-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.course-hero-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.course-hero-desc {
  color: #94a3b8;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 750px;
  margin-bottom: 20px;
}

.course-features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.course-pill {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.course-cta-box {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid #1e293b;
  padding-top: 20px;
}

.course-price-now {
  font-size: 1.8rem;
  font-weight: 900;
  color: #38bdf8;
}

.course-price-old {
  font-size: 1.1rem;
  color: #64748b;
  text-decoration: line-through;
  margin-left: 8px;
}

.btn-enroll-now {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 12px 28px;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-enroll-now:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

/* Danh sách Bài học (List Lessons - như trong Ảnh 1) */
.lessons-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 0 4px;
}

.lessons-header-row h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.lessons-count-badge {
  font-size: 0.85rem;
  color: #94a3b8;
  font-weight: 600;
}

.lesson-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-row-card {
  background: var(--lms-card);
  border: 1px solid var(--lms-card-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s;
}

.lesson-row-card:hover {
  border-color: #334155;
  background: #131d33;
}

.lesson-left-content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.lesson-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lesson-icon-box.open {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}

.lesson-icon-box.locked {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.lesson-meta-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.lesson-cat-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-status-pill {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
}

.badge-status-pill.open {
  background: #022c22;
  color: #34d399;
  border: 1px solid #065f46;
}

.badge-status-pill.locked {
  background: #451a03;
  color: #fbbf24;
  border: 1px solid #78350f;
}

.lesson-title-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-duration-text {
  font-size: 0.8rem;
  color: #64748b;
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lesson-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-view-lesson {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-view-lesson:hover {
  background: #334155;
  color: #ffffff;
}

.btn-toggle-lock {
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-toggle-lock.locked {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.btn-toggle-lock.open {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}

/* ========================================================
   GIAO DIỆN PHÒNG HỌC VIDEO (Player Room - như trong Ảnh 2)
   ======================================================== */
.player-page-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px;
}

.player-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.player-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-video-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: 18px;
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
}

.player-video-viewport iframe,
.player-video-viewport video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Màn hình Khóa Học VIP */
.locked-paywall-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 20;
}

.locked-icon-bubble {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.locked-paywall-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.locked-paywall-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 460px;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* 2 Tabs Bên Dưới Video: Nội dung bài học / Tài liệu & Bài tập */
.lms-tabs-nav {
  display: flex;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}

.lms-tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 20px;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.lms-tab-btn.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}

.lms-tab-panel {
  display: none;
}

.lms-tab-panel.active {
  display: block;
}

/* Các hộp thông tin bài học */
.lms-info-card {
  background: var(--lms-card);
  border: 1px solid var(--lms-card-border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.lms-card-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #38bdf8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.lms-card-text {
  color: #cbd5e1;
  font-size: 0.92rem;
  line-height: 1.65;
}

.lms-bullets-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lms-bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.lms-bullet-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1e3a8a;
  border: 1px solid #3b82f6;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Thanh điều hướng cố định phía dưới màn hình */
.lms-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(3, 7, 18, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid #1e293b;
  padding: 14px 20px;
  z-index: 100;
}

.lms-bottom-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-bottom-quiz {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  color: #f1f5f9;
  padding: 13px 18px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-bottom-quiz:hover {
  background: #334155;
  color: #ffffff;
}

.btn-bottom-next {
  flex: 2;
  background: #2563eb;
  border: 1px solid #3b82f6;
  color: #ffffff;
  padding: 13px 22px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  transition: all 0.2s;
  text-decoration: none;
}

.btn-bottom-next:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Modal Trắc nghiệm */
.quiz-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.quiz-modal-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  width: 100%;
  max-width: 580px;
  padding: 26px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

.quiz-option-btn {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 12px 16px;
  color: #f1f5f9;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: left;
  transition: all 0.2s;
}

.quiz-option-btn:hover {
  background: #334155;
  border-color: #60a5fa;
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

.quiz-key-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #334155;
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
