/* getclassroom — Generated by App Forge */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { padding: 12px 24px; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 600; }
.btn-primary { background: #0f3460; color: white; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary { background: white; color: #0f3460; border: 2px solid #0f3460; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.view { display: none; }
.view.active { display: block; }

/* Landing */
.landing-header { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(135deg, #0f346020, #0f346005); }
.landing-header h1 { font-size: 3rem; margin-bottom: 16px; color: #0f3460; }
.landing-header p { font-size: 1.2rem; color: #666; margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.price { font-size: 0.9rem; color: #999; }

/* Landing Nav */
.landing-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.95); border-bottom: 1px solid #e0e0e0; backdrop-filter: blur(8px); }
.landing-nav-inner { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.landing-logo { font-size: 1.2rem; font-weight: 700; color: #0f3460; }
.landing-nav-links { display: flex; gap: 20px; }
.landing-nav-links a { color: #0f3460; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.landing-nav-links a:hover { text-decoration: underline; }

/* Auth */
.auth-card { max-width: 400px; margin: 80px auto; padding: 40px; background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.auth-card h2 { margin-bottom: 24px; color: #0f3460; }
.auth-card input { width: 100%; padding: 12px; margin-bottom: 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; }
.auth-card .btn { width: 100%; }
.auth-card p { text-align: center; margin-top: 16px; color: #666; }
.auth-card a { color: #0f3460; }

/* Auth Phases */
.auth-hint { color: #666; font-size: 0.9rem; margin-bottom: 20px; line-height: 1.5; }
.auth-secured { font-size: 0.75rem; color: #bbb; margin-top: 20px; }
.auth-card code { background: #f0f0f0; padding: 4px 8px; border-radius: 4px; font-size: 0.85rem; word-break: break-all; }
.qr-container { display: flex; justify-content: center; margin: 20px 0; }
.qr-container svg { width: 200px; height: 200px; }

/* Dashboard */
#dashboard.active { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: white; border-right: 1px solid #e0e0e0; padding: 20px 0; display: flex; flex-direction: column; }
.sidebar-header { padding: 0 20px 20px; border-bottom: 1px solid #e0e0e0; }
.sidebar-header h2 { font-size: 1.2rem; color: #0f3460; }
.nav-items { flex: 1; padding: 10px 0; }
.nav-item { display: block; padding: 12px 20px; color: #333; text-decoration: none; border-left: 3px solid transparent; }
.nav-item:hover, .nav-item.active { background: #0f346008; border-left-color: #0f3460; color: #0f3460; }
.sidebar-footer { padding: 20px; border-top: 1px solid #e0e0e0; }
.sidebar-footer a { color: #999; text-decoration: none; }
.main-content { flex: 1; padding: 30px; overflow-y: auto; }

/* Cards & Tables */
.card { background: white; border-radius: 12px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.card h3 { margin-bottom: 16px; color: #0f3460; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
th { font-weight: 600; color: #666; }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: white; border-radius: 12px; padding: 30px; width: 90%; max-width: 500px; }
.modal h3 { margin-bottom: 20px; color: #0f3460; }
.modal input, .modal select, .modal textarea { width: 100%; padding: 10px; margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; }
.modal label { display: block; margin-bottom: 4px; font-size: 0.85rem; color: #666; font-weight: 600; }
.modal .btn { margin-top: 10px; }

/* ── Courses Page ────────────────────────────────────────────────── */

.courses-page { min-height: 100vh; background: #f5f5f5; }
.courses-loading { text-align: center; padding: 120px 20px; color: #999; font-size: 1.1rem; }
.empty-state { text-align: center; padding: 40px 20px; color: #999; }

/* Courses Top Bar */
.courses-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid #e0e0e0; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 56px; backdrop-filter: blur(8px); }
.courses-topbar-logo { font-size: 1.15rem; font-weight: 700; color: #0f3460; cursor: pointer; }
.courses-topbar-links { display: flex; gap: 20px; }
.courses-topbar-links a { color: #0f3460; text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.courses-topbar-links a:hover { text-decoration: underline; }

/* Courses Hero */
.courses-hero { background: #1a1a2e; color: white; padding: 100px 20px 60px; text-align: center; }
.courses-hero h1 { font-size: 2.4rem; margin-bottom: 12px; font-weight: 700; }
.courses-hero p { font-size: 1.15rem; color: rgba(255,255,255,0.7); }

/* Course Grid */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 0 60px; }

/* Course Card */
.course-card { background: white; border-radius: 12px; padding: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.course-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.12); transform: translateY(-2px); }
.course-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.course-card h4 { font-size: 1.2rem; color: #1a1a2e; margin-bottom: 10px; line-height: 1.4; }
.course-card-desc { font-size: 0.9rem; color: #666; line-height: 1.5; margin-bottom: 16px; flex: 1; }
.course-card-meta { display: flex; gap: 16px; font-size: 0.85rem; color: #999; margin-bottom: 20px; }
.course-card-btn { width: 100%; text-align: center; }

/* Category Badge */
.course-category-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; background: linear-gradient(135deg, #d4a843, #c4922f); color: white; }

/* Price Tag */
.course-price-tag { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; }
.course-price-tag.free { color: #28a745; font-size: 0.85rem; }

/* ── Course Detail ────────────────────────────────────────────────── */

.course-detail-hero { background: #1a1a2e; color: white; padding: 100px 20px 50px; }
.course-detail-hero h1 { font-size: 2.2rem; margin: 12px 0; font-weight: 700; }
.course-detail-hero .course-category-badge { margin-bottom: 8px; }
.course-detail-desc { font-size: 1.05rem; color: rgba(255,255,255,0.75); margin-bottom: 20px; line-height: 1.6; }
.course-detail-stats { display: flex; gap: 24px; font-size: 0.95rem; color: rgba(255,255,255,0.6); margin-bottom: 24px; }
.course-detail-actions { display: flex; gap: 12px; margin-top: 16px; }
.course-progress-wrap { max-width: 400px; margin-top: 16px; }

/* Progress Bar */
.progress-bar { height: 8px; background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: #28a745; border-radius: 4px; transition: width 0.4s ease; }
.progress-bar-fill.complete { background: #28a745; }
.progress-label { font-size: 0.85rem; color: #999; margin-top: 6px; display: inline-block; }
.course-progress-wrap .progress-bar { background: rgba(255,255,255,0.2); }
.course-progress-wrap .progress-label { color: rgba(255,255,255,0.6); }

/* ── Module List ──────────────────────────────────────────────────── */

.module-list { padding: 40px 0 60px; }
.module-list h2 { font-size: 1.4rem; color: #1a1a2e; margin-bottom: 20px; }
.module-list-item { display: flex; align-items: center; gap: 16px; padding: 20px; background: white; border-radius: 10px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); transition: box-shadow 0.2s; }
.module-list-item:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.module-list-item.locked { opacity: 0.55; }
.module-list-num { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.module-list-item.completed .module-list-num { background: #28a745; color: white; }
.module-list-item.available .module-list-num { background: #0f3460; color: white; }
.module-list-item.locked .module-list-num { background: #e0e0e0; color: #999; }
.module-list-info { flex: 1; }
.module-list-info h3 { font-size: 1.05rem; color: #333; margin-bottom: 4px; }
.module-list-hours { font-size: 0.85rem; color: #999; }
.module-list-status { flex-shrink: 0; }
.module-list-action { flex-shrink: 0; }

/* Status Badges */
.status-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.status-badge.completed { background: #e8f5e9; color: #28a745; }
.status-badge.available { background: #e3f2fd; color: #0f3460; }
.status-badge.locked { background: #f5f5f5; color: #999; }
.status-badge.failed { background: #fce4ec; color: #dc3545; }
.status-badge.pending { background: #f5f5f5; color: #999; }

/* ── Module Detail ────────────────────────────────────────────────── */

.breadcrumb { font-size: 0.85rem; color: #999; margin-bottom: 24px; }
.breadcrumb a { color: #0f3460; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.module-detail-card { background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.module-detail-card h1 { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 12px; }
.module-detail-desc { font-size: 1rem; color: #666; line-height: 1.6; margin-bottom: 28px; }

/* Lesson List */
.lesson-list { margin-bottom: 28px; }
.lesson-list h3 { font-size: 1.1rem; color: #1a1a2e; margin-bottom: 16px; }
.lesson-list-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 8px; cursor: pointer; transition: background 0.15s; border: 1px solid #eee; margin-bottom: 8px; }
.lesson-list-item:hover { background: #f0f4ff; }
.lesson-list-item.completed { border-color: #c8e6c9; }
.lesson-list-check { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; }
.lesson-list-info { flex: 1; display: flex; justify-content: space-between; align-items: center; }
.lesson-list-title { font-size: 0.95rem; color: #333; font-weight: 500; }
.lesson-list-time { font-size: 0.8rem; color: #999; }

/* Module Quiz Section */
.module-quiz-section { padding-top: 20px; border-top: 1px solid #eee; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiz-hint { font-size: 0.85rem; color: #999; }

/* ── Lesson Viewer ────────────────────────────────────────────────── */

.lesson-progress-bar { margin-bottom: 24px; }

.lesson-viewer-card { background: white; border-radius: 12px; padding: 40px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px; }
.lesson-viewer-card h1 { font-size: 1.8rem; color: #1a1a2e; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid #eee; }

/* Lesson Content (Markdown) */
.lesson-content { font-size: 1rem; line-height: 1.8; color: #333; }
.lesson-content .md-heading { margin: 28px 0 12px; color: #1a1a2e; }
.lesson-content h2.md-heading { font-size: 1.5rem; }
.lesson-content h3.md-heading { font-size: 1.25rem; }
.lesson-content h4.md-heading { font-size: 1.1rem; }
.lesson-content .md-paragraph { margin-bottom: 16px; }
.lesson-content .md-list { margin: 12px 0 16px 24px; }
.lesson-content .md-list li { margin-bottom: 6px; }
.lesson-content .md-code-block { background: #1a1a2e; color: #e0e0e0; padding: 20px; border-radius: 8px; overflow-x: auto; font-size: 0.9rem; line-height: 1.6; margin: 16px 0; }
.lesson-content .md-code-block code { color: #e0e0e0; background: none; padding: 0; }
.lesson-content .md-inline-code { background: #f0f0f0; padding: 2px 6px; border-radius: 4px; font-size: 0.9rem; color: #c7254e; }
.lesson-content .md-blockquote { border-left: 4px solid #d4a843; padding: 12px 20px; background: #fdf8ec; margin: 16px 0; border-radius: 0 8px 8px 0; color: #555; }
.lesson-content .md-divider { border: none; border-top: 1px solid #eee; margin: 24px 0; }
.lesson-content .md-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.lesson-content .md-table th, .lesson-content .md-table td { padding: 10px 14px; border: 1px solid #e0e0e0; text-align: left; }
.lesson-content .md-table th { background: #f5f5f5; font-weight: 600; color: #333; }

/* Lesson Navigation */
.lesson-nav { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 60px; }

/* ── Quiz ─────────────────────────────────────────────────────────── */

.quiz-card { background: white; border-radius: 12px; padding: 36px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.quiz-card h1 { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 8px; }
.quiz-instructions { font-size: 0.95rem; color: #666; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid #eee; }

.quiz-question { margin-bottom: 32px; }
.quiz-question h3 { font-size: 0.85rem; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.quiz-question-text { font-size: 1.05rem; color: #333; margin-bottom: 16px; line-height: 1.5; }

.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 2px solid #e0e0e0; border-radius: 8px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.quiz-option:hover { border-color: #0f3460; background: #f0f4ff; }
.quiz-option input[type="radio"] { margin-top: 3px; accent-color: #0f3460; }
.quiz-option-label { font-weight: 600; color: #0f3460; min-width: 20px; }
.quiz-option-text { color: #333; line-height: 1.4; }

.quiz-submit-btn { margin-top: 20px; width: 100%; max-width: 300px; }

/* Quiz Results */
.quiz-result-header { text-align: center; padding: 40px 20px 32px; border-bottom: 1px solid #eee; margin-bottom: 28px; }
.quiz-result-header h2 { font-size: 1.8rem; margin: 16px 0 8px; }
.quiz-result-header.passed h2 { color: #28a745; }
.quiz-result-header.failed h2 { color: #dc3545; }
.quiz-result-score { font-size: 1.2rem; color: #666; margin-bottom: 12px; }

.quiz-result-details { margin-bottom: 28px; }
.quiz-result-question { padding: 16px; border-radius: 8px; margin-bottom: 12px; border: 1px solid #eee; }
.quiz-result-question.correct { border-left: 4px solid #28a745; }
.quiz-result-question.incorrect { border-left: 4px solid #dc3545; background: #fef8f8; }
.quiz-result-question h4 { font-size: 0.9rem; color: #333; margin-bottom: 6px; }
.correct-mark { color: #28a745; font-weight: 600; }
.incorrect-mark { color: #dc3545; font-weight: 600; }
.correct-answer { font-size: 0.9rem; color: #28a745; font-weight: 500; margin-top: 8px; }

.quiz-result-actions { display: flex; gap: 12px; padding-top: 20px; border-top: 1px solid #eee; }

/* ── Progress Dashboard ───────────────────────────────────────────── */

.progress-dashboard { padding-bottom: 60px; }

.progress-overview-card { background: white; border-radius: 12px; padding: 36px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px; text-align: center; }
.progress-overview-card h1 { font-size: 1.6rem; color: #1a1a2e; margin-bottom: 24px; }
.progress-big-ring { margin: 0 auto 24px; }
.progress-stats-row { display: flex; justify-content: center; gap: 48px; }
.progress-stat { display: flex; flex-direction: column; align-items: center; }
.progress-stat-val { font-size: 1.4rem; font-weight: 700; color: #1a1a2e; }
.progress-stat-label { font-size: 0.8rem; color: #999; margin-top: 4px; }

.progress-modules-card { background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 24px; }
.progress-modules-card h2 { font-size: 1.3rem; color: #1a1a2e; margin-bottom: 24px; }
.progress-module-row { margin-bottom: 24px; }
.progress-module-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.progress-module-name { font-size: 0.95rem; font-weight: 500; color: #333; }
.progress-module-pct { font-size: 0.85rem; font-weight: 600; color: #0f3460; }
.progress-module-meta { margin-top: 8px; }

.quiz-score-badge { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.quiz-score-badge.passed { background: #e8f5e9; color: #28a745; }
.quiz-score-badge.failed { background: #fce4ec; color: #dc3545; }
.quiz-score-badge.pending { background: #f5f5f5; color: #999; }

.progress-cert-card { background: white; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-align: center; }
.progress-cert-card h2 { font-size: 1.3rem; color: #1a1a2e; margin-bottom: 16px; }
.cert-hint { font-size: 0.9rem; color: #999; margin: 12px 0; }

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  #dashboard.active { flex-direction: column; }
  .sidebar { width: 100%; flex-direction: row; overflow-x: auto; }
  .nav-items { display: flex; }
  .nav-item { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .sidebar-header, .sidebar-footer { display: none; }

  .course-grid { grid-template-columns: 1fr; gap: 16px; padding: 24px 0 40px; }
  .courses-hero h1 { font-size: 1.8rem; }
  .courses-hero { padding: 80px 20px 40px; }
  .course-detail-hero { padding: 80px 20px 36px; }
  .course-detail-hero h1 { font-size: 1.6rem; }
  .course-detail-stats { flex-wrap: wrap; gap: 12px; }

  .module-list-item { flex-wrap: wrap; gap: 10px; }
  .module-list-action { width: 100%; }
  .module-list-action .btn { width: 100%; text-align: center; }

  .lesson-viewer-card { padding: 20px; }
  .lesson-viewer-card h1 { font-size: 1.4rem; }
  .lesson-nav { flex-direction: column; gap: 12px; }
  .lesson-nav .btn { width: 100%; text-align: center; }

  .quiz-card { padding: 20px; }
  .quiz-result-actions { flex-direction: column; }
  .quiz-result-actions .btn { width: 100%; text-align: center; }

  .progress-stats-row { gap: 24px; }
  .progress-overview-card { padding: 24px; }

  .landing-nav-inner { padding: 10px 16px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .course-card { padding: 20px; }
  .courses-hero h1 { font-size: 1.5rem; }
  .module-detail-card { padding: 20px; }
}
