/* =================================================================
   STYLESHEET: Mengungkapkan Kritik Lewat Humor
   Media Pembelajaran Interaktif Murid Kelas X TJKT SMK Negeri 1 Mundu
   ================================================================= */

:root {
  /* Color Palette - Light Mode */
  --bg-main: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-nav: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Brand Accents */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #dbeafe;
  --primary-text: #1e40af;

  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-light: #ffedd5;

  --secondary: #6366f1;
  --secondary-light: #e0e7ff;

  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;

  --tjkt-cyan: #06b6d4;
  --tjkt-cyan-light: #cffafe;
  --tjkt-dark: #0e7490;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Fonts */
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme Overrides */
body.theme-dark {
  --bg-main: #0b0f19;
  --bg-card: #131c2e;
  --bg-card-subtle: #19243b;
  --bg-nav: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: #27354f;
  --border-focus: #60a5fa;

  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-light: #1e293b;
  --primary-text: #93c5fd;

  --accent-light: #3d2314;
  --secondary-light: #232247;
  --success-light: #132e22;
  --warning-light: #332612;
  --danger-light: #3b181a;
  --tjkt-cyan-light: #13333e;

  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* Base Resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

/* Layout */
.app-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Floating Audio Control */
.sound-control-floating {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.sound-control-floating .btn-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition);
}

.sound-control-floating .btn-icon:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-xl);
}

/* Header & Nav */
.app-header {
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(8px);
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--tjkt-cyan));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.brand-text .brand-school {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.brand-text .brand-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

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

.student-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}

.student-pill:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
}

.student-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), #e11d48);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.9rem;
}

.student-info-mini {
  display: flex;
  flex-direction: column;
}

.student-name-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.student-class-text {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-icon.theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-icon.theme-btn:hover {
  border-color: var(--primary);
  transform: rotate(15deg);
}

/* Nav Bar */
.nav-bar {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.nav-item:hover {
  color: var(--primary);
  background-color: var(--bg-card-subtle);
}

.nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: var(--primary-light);
}

.badge-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--accent-light);
  color: var(--accent-hover);
}

/* App Main Body */
.app-main {
  flex: 1;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

/* Page Section visibility */
.page-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Common UI Elements */
.page-header-box {
  margin-bottom: 24px;
}

.page-header-box h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.section-title-wrap {
  margin: 36px 0 18px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--text-muted);
}

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

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

.btn-accent {
  background-color: var(--accent);
  color: white;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Hero Card (Beranda) */
.hero-card {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 28px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-card-subtle));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.tech-tag.highlight {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.2);
}

.tech-tag.tjkt-tag {
  background-color: var(--tjkt-cyan-light);
  color: var(--tjkt-dark);
  border-color: rgba(6, 182, 212, 0.3);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subline {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.hero-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Comic Stand Graphic (Hero visual) */
.comic-stand-graphic {
  position: relative;
  background: var(--bg-card);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.mic-glow {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.speech-bubble-sample {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 16px;
  border-radius: var(--radius-md);
  position: relative;
}

.speech-bubble-sample::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 24px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--primary-light);
}

.bubble-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

.speech-bubble-sample p {
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.45;
}

.bubble-meta {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.floating-badge {
  position: absolute;
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.floating-badge.badge-1 {
  top: -12px;
  right: -10px;
  color: var(--accent);
}

.floating-badge.badge-2 {
  bottom: -12px;
  left: -10px;
  color: var(--tjkt-dark);
}

/* Student Profile Banner */
.student-profile-banner {
  background: linear-gradient(135deg, var(--primary-light), var(--bg-card));
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.student-profile-banner .banner-icon {
  font-size: 2rem;
}

.student-profile-banner .banner-body {
  flex: 1;
}

.student-profile-banner h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.student-profile-banner p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.feature-icon.bg-blue { background: var(--primary-light); color: var(--primary); }
.feature-icon.bg-purple { background: var(--secondary-light); color: var(--secondary); }
.feature-icon.bg-amber { background: var(--warning-light); color: var(--warning); }
.feature-icon.bg-green { background: var(--success-light); color: var(--success); }
.feature-icon.bg-teal { background: var(--tjkt-cyan-light); color: var(--tjkt-dark); }
.feature-icon.bg-rose { background: var(--danger-light); color: var(--danger); }

.feature-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* Quote Card */
.quote-card {
  margin-top: 36px;
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--accent);
}

.quote-symbol {
  font-size: 3rem;
  line-height: 1;
  font-family: serif;
  color: var(--accent);
}

.quote-text {
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 8px;
}

.quote-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* =================================================================
   TUJUAN PEMBELAJARAN STYLES
   ================================================================= */
.callout-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.callout-card.primary-border {
  border-left: 6px solid var(--primary);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.callout-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.callout-body .large-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.obj-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.obj-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.obj-number {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.7;
  margin-bottom: 8px;
}

.obj-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.obj-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.obj-list {
  padding-left: 18px;
  font-size: 0.82rem;
  color: var(--text-main);
}

.obj-list li {
  margin-bottom: 4px;
}

/* Concept Map Card */
.concept-map-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.concept-header h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.concept-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.map-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.map-node.root {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.node-badge {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.map-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
}

.branch-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.branch-box:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.branch-box .icon {
  font-size: 1.4rem;
}

.pancasila-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.pancasila-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.pancasila-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-tag {
  font-size: 0.88rem;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

/* =================================================================
   MATERI TABS & CONTENT STYLES
   ================================================================= */
.materi-tabs-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.materi-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.materi-tab-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.materi-tab-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.materi-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.materi-tab-content.active {
  display: block;
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.content-block h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-main);
}

.content-block p {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--text-main);
}

.info-card {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 18px 0;
}

.info-card h4 {
  font-size: 1rem;
  color: var(--primary-text);
  margin-bottom: 6px;
}

.info-card p {
  color: var(--primary-text);
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Stage Simulator Card */
.interactive-stage-card {
  margin-top: 24px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.stage-header {
  background: var(--bg-card);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.live-indicator {
  font-size: 0.7rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 2px;
}

.stage-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
}

.audio-controls {
  display: flex;
  gap: 8px;
}

.stage-body {
  padding: 24px;
}

.monolog-text-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  max-height: 380px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.7;
}

.monolog-line {
  margin-bottom: 12px;
}

.monolog-line .speaker {
  font-weight: 700;
  color: var(--primary);
}

.crowd-fx {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-left: 6px;
}

.interactive-exercise-box {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
}

.interactive-exercise-box h5 {
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.eval-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.eval-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.eval-item strong {
  font-size: 0.82rem;
  color: var(--primary);
  display: block;
  margin-bottom: 4px;
}

/* Structure Cards */
.structure-cards-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.struct-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.struct-card.highlight {
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
}

.struct-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.badge-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.struct-card h4 {
  font-size: 1rem;
  font-weight: 700;
}

.struct-example {
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
}

/* Standup Equivalence */
.standup-structure-box {
  margin: 28px 0;
  padding: 20px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.standup-structure-box h4 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.standup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.s-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--radius-sm);
}

.s-box strong {
  color: var(--secondary);
  font-size: 0.88rem;
  display: block;
  margin-bottom: 4px;
}

.s-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Mini Game */
.mini-game-card {
  margin-top: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.snippet-box {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--primary);
  padding: 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 14px 0;
}

.snippet-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.snippet-quote {
  font-size: 0.95rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 0 !important;
}

.options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.btn-outline-opt {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
}

.btn-outline-opt:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

.feedback-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
}

.feedback-box.correct {
  background: var(--success-light);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.feedback-box.wrong {
  background: var(--danger-light);
  color: #991b1b;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Comparison Cards */
.card-columns-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.comparison-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.comp-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 12px;
}

.comp-badge.bg-amber { background: var(--warning-light); color: #92400e; }
.comp-badge.bg-blue { background: var(--primary-light); color: var(--primary-text); }

.styled-list {
  padding-left: 20px;
  font-size: 0.88rem;
}

.styled-list li {
  margin-bottom: 8px;
}

/* Custom Table */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.88rem;
}

.custom-table th, .custom-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  text-align: left;
}

.custom-table th {
  background: var(--bg-card-subtle);
  font-weight: 700;
}

.badge-tag {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.badge-tag.info { background: #e0f2fe; color: #0369a1; }
.badge-tag.primary { background: #dbeafe; color: #1d4ed8; }
.badge-tag.success { background: #dcfce7; color: #15803d; }
.badge-tag.warning { background: #fef3c7; color: #b45309; }
.badge-tag.danger { background: #fee2e2; color: #b91c1c; }

/* Grammar Cards Grid */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.grammar-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.grammar-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.grammar-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.grammar-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.example-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  font-size: 0.82rem;
}

/* Majas Steps */
.majas-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0;
}

.majas-step {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-color);
}

.step-ironi {
  background: var(--success-light);
  border-color: rgba(16, 185, 129, 0.4);
}

.step-sinisme {
  background: var(--warning-light);
  border-color: rgba(245, 158, 11, 0.4);
}

.step-sarkasme {
  background: var(--danger-light);
  border-color: rgba(239, 68, 68, 0.4);
}

.step-badge {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.step-ironi .step-badge { color: #047857; }
.step-sinisme .step-badge { color: #b45309; }
.step-sarkasme .step-badge { color: #b91c1c; }

.step-definition {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.step-example {
  background: var(--bg-card);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.step-warning {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #991b1b;
}

/* Dialog Study Card */
.dialog-study-card {
  margin-top: 24px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.dialog-study-card h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.dialog-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.6;
}

.dialog-notes {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Exposition Flow */
.structure-flow-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.s-flow-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}

.flow-step {
  width: 28px;
  height: 28px;
  background: var(--tjkt-cyan);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  margin-bottom: 10px;
}

.s-flow-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.s-flow-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Research Designer Widget */
.research-widget-card {
  margin-top: 24px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.widget-header h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.widget-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.widget-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-main);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.research-live-preview {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.preview-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

.preview-body {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Comic Panels Grid */
.comic-strip-card {
  margin: 20px 0;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.panel-box {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: var(--transition);
}

.panel-box.punch-box {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.panel-num {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.panel-box.punch-box .panel-num {
  color: var(--accent);
}

.panel-art {
  font-size: 2.8rem;
  margin: 8px 0;
}

.panel-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.panel-dialog {
  background: var(--bg-card-subtle);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-style: italic;
  border: 1px solid var(--border-color);
}

/* Etika Grid */
.etika-box {
  margin-top: 24px;
}

.etika-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 12px;
}

.etika-card {
  border-radius: var(--radius-md);
  padding: 20px;
}

.etika-card.good {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.etika-card.bad {
  background: var(--danger-light);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.e-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.etika-card ul {
  padding-left: 20px;
  font-size: 0.82rem;
  margin-top: 8px;
}

.etika-card li {
  margin-bottom: 4px;
}

/* =================================================================
   KUIS INTERAKTIF STYLES
   ================================================================= */
.quiz-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.quiz-info-left h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.quiz-info-left p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.timer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: var(--radius-md);
}

.timer-icon {
  font-size: 1.2rem;
}

.timer-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.timer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Progress */
.quiz-progress-wrap {
  margin-bottom: 20px;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--tjkt-cyan));
  transition: width 0.3s ease;
}

.progress-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Question Nav Grid */
.question-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.q-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.q-nav-btn:hover {
  border-color: var(--primary);
}

.q-nav-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.q-nav-btn.answered {
  background: var(--success-light);
  border-color: var(--success);
  color: #065f46;
}

.q-nav-btn.flagged {
  border-color: var(--warning);
  background: var(--warning-light);
  color: #92400e;
}

/* Question Card */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.q-badge {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.q-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-card-subtle);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.q-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 16px;
}

.q-context {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--tjkt-cyan);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  margin-bottom: 20px;
  font-style: italic;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.q-opt-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.92rem;
  user-select: none;
}

.q-opt-label:hover {
  background: var(--bg-card-subtle);
  border-color: var(--primary);
}

.q-opt-label.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
}

.q-opt-label input {
  margin-top: 4px;
}

.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 12px;
}

.flag-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

/* =================================================================
   HASIL KUIS & RAPORT DIGITAL STYLES
   ================================================================= */
.result-summary-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  margin-bottom: 28px;
}

.score-card-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle-outer {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--tjkt-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.score-circle-inner {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-big {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.score-scale {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.score-predicate-badge {
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--primary-light);
  color: var(--primary-text);
  margin-bottom: 8px;
}

.score-feedback-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 260px;
}

/* Certificate Card */
.student-certificate-card {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 16px;
}

.school-logo-cert {
  font-size: 2rem;
}

.cert-title-group h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
}

.cert-title-group span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cert-table {
  width: 100%;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.cert-table td {
  padding: 6px 0;
}

.cert-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--border-color);
}

.cert-stamp {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
}

/* Competency Bars */
.competency-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.competency-card h3 {
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.comp-bars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.comp-bar-item {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  padding: 14px;
  border-radius: var(--radius-md);
}

.bar-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bar-track {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 999px;
  transition: width 0.6s ease;
}

/* Review Section */
.review-section {
  margin-top: 28px;
}

.review-header {
  margin-bottom: 18px;
}

.review-header h3 {
  font-size: 1.25rem;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.review-item.is-correct {
  border-left: 5px solid var(--success);
}

.review-item.is-wrong {
  border-left: 5px solid var(--danger);
}

.review-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-badge-num {
  font-weight: 700;
  font-size: 0.95rem;
}

.review-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}

.review-status-pill.correct { background: var(--success-light); color: #065f46; }
.review-status-pill.wrong { background: var(--danger-light); color: #991b1b; }

.review-q-text {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-ans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.ans-box {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.ans-box.user {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
}

.ans-box.correct {
  background: var(--success-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.review-explanation {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.result-actions-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* =================================================================
   REFLEKSI PEMBELAJARAN STYLES
   ================================================================= */
.reflection-score-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.calc-box {
  background: var(--primary-light);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.calc-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

.calc-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 4px 0;
}

.calc-formula {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.calc-recommendation h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.calc-recommendation p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reflection-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.reflection-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.reflection-table th, .reflection-table td {
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  vertical-align: middle;
}

.reflection-table th {
  background: var(--bg-card-subtle);
  font-weight: 700;
}

.reflection-table input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-control-sm {
  padding: 6px 10px;
  font-size: 0.8rem;
}

.reflection-essay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.reflection-actions {
  display: flex;
  gap: 12px;
}

/* Footer */
.app-footer {
  margin-top: auto;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.15rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  background: var(--bg-card-subtle);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  box-shadow: var(--shadow-lg);
  font-size: 0.88rem;
  font-weight: 600;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1500;
}

/* Helpers */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.text-sm { font-size: 0.82rem; }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }
  .card-columns-2,
  .result-summary-grid,
  .comp-bars-grid,
  .reflection-essay-grid,
  .reflection-score-card,
  .etika-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-container {
    padding: 10px 14px;
  }
  .brand-text .brand-title {
    font-size: 0.95rem;
  }
  .app-main {
    padding: 16px 12px 36px;
  }
  .content-block {
    padding: 20px 16px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .sound-control-floating .sound-text {
    display: none;
  }
  .sound-control-floating .btn-icon {
    padding: 10px;
  }
}

/* Print Friendly Styles */
@media print {
  .app-header,
  .nav-bar,
  .sound-control-floating,
  .result-actions-row,
  .reflection-actions,
  .modal-overlay,
  .toast-container {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .app-main {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .student-certificate-card {
    border: 2px solid #000 !important;
    box-shadow: none !important;
    margin: 20px 0 !important;
    page-break-inside: avoid;
  }

  .review-item {
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}
