/* ===================================================================
   VIRTUAL LAB PENDIDIKAN KIMIA UNIVERSITAS TERBUKA
   Tema: Perubahan Zat (Perubahan Fisika & Perubahan Kimia)
   Design System: Modern Cyber-Chemical Laboratory
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-primary: #070b14;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-glass: rgba(15, 23, 42, 0.65);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.25);
  --border-active: #38bdf8;

  --accent-cyan: #06b6d4;
  --accent-cyan-glow: rgba(6, 182, 212, 0.35);
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-purple: #8b5cf6;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #020617;

  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Glows */
  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.3);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);
  --glow-amber: 0 0 25px rgba(245, 158, 11, 0.3);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);

  /* Dimensions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --nav-height: 72px;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
    linear-gradient(to bottom, #070b14, #0b1120);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* UT Header / Navbar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

.ut-emblem {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #0369a1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text h1 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-text p {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.nav-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #fff;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

.nav-btn .badge-pill {
  font-size: 0.65rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.3);
  margin-left: 0.25rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-icon:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--accent-cyan);
}

/* Main Container Layout */
.app-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

/* View Section Switching */
.view-section {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.view-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ===================================================================
   HERO / BANNER
   =================================================================== */
.hero-banner {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.85));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.hero-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.85rem;
  color: #fff;
}

.hero-desc {
  color: var(--text-muted);
  max-width: 850px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.meta-chip strong {
  color: var(--accent-cyan);
}

/* Hero Split Layout */
.hero-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-main-col {
  flex: 1;
  min-width: 320px;
}

/* Glassmorphic Student Author Card on Homepage */
.hero-author-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.8));
  border: 1.5px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.25), inset 0 0 15px rgba(6, 182, 212, 0.1);
  min-width: 320px;
  max-width: 400px;
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.hero-author-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.35);
  border-color: #38bdf8;
}

.author-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--accent-cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
}

.author-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 0 15px rgba(2, 132, 199, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.author-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.author-nim-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}

.author-subtext {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.author-subtext strong {
  color: #e2e8f0;
}

/* Navbar Student Identity Pill */
.user-pill-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
}

.user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.user-name {
  color: #fff;
  font-weight: 700;
}

.user-nim {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

/* ===================================================================
   V-LAB SUB-TABS (Petunjuk, Materi, Alat-Bahan, Meja Kerja, Evaluasi)
   =================================================================== */
.lab-subnav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.subnav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.subnav-btn:hover {
  background: rgba(51, 65, 85, 0.6);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.subnav-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.lab-panel {
  display: none;
  animation: fadeIn 0.3s ease forwards;
}

.lab-panel.active {
  display: block;
}

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

/* ===================================================================
   VISUAL-DOMINANT VIRTUAL LAB STUDIO LAYOUT
   =================================================================== */

/* Horizontal Experiment Showcase Ribbon */
.exp-ribbon-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.exp-ribbon-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.exp-ribbon-card:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(6, 182, 212, 0.5);
  transform: translateY(-2px);
}

.exp-ribbon-card.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(15, 23, 42, 0.85));
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), inset 0 0 15px rgba(6, 182, 212, 0.1);
}

.exp-ribbon-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
}

.ribbon-icon {
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(30, 41, 59, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.ribbon-meta {
  display: flex;
  flex-direction: column;
}

.ribbon-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
}

.exp-ribbon-card.chemical .ribbon-tag {
  color: var(--accent-emerald);
}

.ribbon-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

/* Grand Studio Dual Grid (58% Macro Visual Stage + 42% Micro Particle Stage) */
.workbench-studio-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
  .workbench-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* Glass Card */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
  position: relative;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.panel-header .badge {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  text-transform: uppercase;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  border: 1px solid rgba(6, 182, 212, 0.4);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-amber {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

/* Interactive Chemical Reagent Shelf (Illuminated Glassware) */
.reagent-shelf-horizontal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.shelf-label-pill {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  letter-spacing: 0.05em;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.bottle-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.bottle-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.3);
}

.bottle-btn:active {
  transform: scale(0.97);
}

.bottle-btn .bottle-icon {
  font-size: 1.15rem;
}

/* Apparatus Viewport (EXPANDED TO 450px) */
.apparatus-viewport {
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.7) 0%, rgba(10, 15, 29, 0.98) 90%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  height: 450px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 0, 0, 0.4);
}

/* Particle Canvas Wrapper (EXPANDED TO 310px) */
.canvas-wrapper {
  position: relative;
  background: #020617;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 310px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

/* Real-Time Live Scientific Chart Panel */
.live-chart-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--card-shadow);
}

.chart-canvas-wrap {
  width: 100%;
  height: 170px;
  background: #020617;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

#tempChartCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Kinetic Energy & Status Gauge */
.kinetic-gauge-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.gauge-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.gauge-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.2rem;
}

.gauge-val {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.exp-choice-card.active {
  background: rgba(6, 182, 212, 0.12);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.18);
}

.exp-choice-card.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  background: var(--accent-cyan);
  border-radius: 0 4px 4px 0;
}

.exp-type-tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin-bottom: 0.25rem;
}

.exp-choice-card.chemical .exp-type-tag {
  color: var(--accent-emerald);
}

.exp-choice-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.exp-choice-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Interactive Reagents / Equipment shelf */
.reagent-shelf {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.shelf-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

.reagent-btns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.reagent-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.75rem 0.5rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.reagent-btn:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.reagent-btn:active {
  transform: scale(0.97);
}

.reagent-btn .reagent-icon {
  font-size: 1.35rem;
}

/* Center Stage: Apparatus Viewport */
.stage-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.apparatus-viewport {
  position: relative;
  background: radial-gradient(circle at 50% 60%, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.95) 85%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.viewport-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
}

.rep-level-badge {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glow);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.thermometer-display {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(244, 63, 94, 0.4);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fca5a5;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.2);
}

/* Apparatus Visual SVG Container */
.apparatus-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Interactive Controls Bar Below Viewport */
.controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.control-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-group-pill {
  display: inline-flex;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.2rem;
}

.btn-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-pill:hover {
  color: #fff;
}

.btn-pill.active {
  background: var(--accent-cyan);
  color: var(--text-inverse);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
}

.btn-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.5);
}

.btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-action-secondary:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Right Sidebar: Submicroscopic View & Symbolic Representation */
.submicro-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.canvas-wrapper {
  position: relative;
  background: #020617;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 220px;
}

#particleCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  text-align: center;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
}

/* Symbolic Display Box */
.symbolic-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.symbolic-equation {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
  margin-bottom: 0.75rem;
  word-break: break-all;
}

.evidence-list {
  list-style: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.evidence-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.evidence-list li span.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  display: inline-block;
}

/* ===================================================================
   OBSERVATION LOG / LEMBAR KERJA MAHASISWA
   =================================================================== */
.observation-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.data-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  font-weight: 700;
  border-bottom: 2px solid var(--border-subtle);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
}

.data-table input[type="text"],
.data-table select {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
}

.data-table input[type="text"]:focus,
.data-table select:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

/* ===================================================================
   EVALUATION / QUIZ ENGINE
   =================================================================== */
.quiz-container {
  max-width: 900px;
  margin: 0 auto;
}

.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}

.quiz-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  width: 0%;
  transition: width 0.3s ease;
}

.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.quiz-option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.quiz-option-btn:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(6, 182, 212, 0.4);
}

.quiz-option-btn .opt-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.quiz-option-btn.selected {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.12);
}

.quiz-option-btn.correct {
  border-color: var(--accent-emerald) !important;
  background: rgba(16, 185, 129, 0.18) !important;
}

.quiz-option-btn.incorrect {
  border-color: var(--accent-rose) !important;
  background: rgba(244, 63, 94, 0.18) !important;
}

.explanation-card {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.7);
  border-left: 4px solid var(--accent-cyan);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 1.5rem;
  display: none;
}

.explanation-card.active {
  display: block;
}

/* Certificate Card */
.certificate-box {
  background: linear-gradient(135deg, #091322, #0d1e38);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 0 35px rgba(6, 182, 212, 0.25);
  margin: 2rem 0;
  position: relative;
}

.cert-logo {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.cert-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}

.cert-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.cert-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  border-bottom: 2px dashed rgba(6, 182, 212, 0.4);
  display: inline-block;
  padding: 0.25rem 2rem;
  margin-bottom: 1rem;
}

.cert-score {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--accent-emerald);
  margin-bottom: 0.5rem;
}

/* ===================================================================
   TUGAS 1 & TUGAS 2 ACADEMIC DOCUMENT VIEW
   =================================================================== */
.academic-doc-container {
  max-width: 1050px;
  margin: 0 auto;
}

.academic-paper {
  background: #0f172a;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--card-shadow);
  color: #e2e8f0;
  line-height: 1.8;
  position: relative;
}

.doc-cover-header {
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.doc-cover-header img.ut-logo-img {
  width: 75px;
  height: auto;
  margin-bottom: 1rem;
}

.doc-univ-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.doc-faculty-title {
  font-size: 1rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.doc-course-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.doc-badge-pill {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.8rem;
  margin: 1.25rem 0 0.5rem;
}

.doc-main-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin: 0.75rem 0;
  line-height: 1.35;
}

.doc-meta-table {
  width: auto;
  margin: 1.5rem auto 0;
  text-align: left;
  font-size: 0.9rem;
}

.doc-meta-table td {
  padding: 0.3rem 0.75rem;
  color: var(--text-muted);
}

.doc-meta-table td strong {
  color: #fff;
}

/* Academic Section Styling */
.academic-section {
  margin-bottom: 2.5rem;
}

.academic-section h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border-glow);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.academic-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 1.25rem 0 0.5rem;
}

.academic-section p {
  margin-bottom: 1rem;
  text-align: justify;
}

.academic-section ul, 
.academic-section ol {
  margin: 0.5rem 0 1.25rem 1.75rem;
}

.academic-section li {
  margin-bottom: 0.4rem;
}

.highlight-box {
  background: rgba(6, 182, 212, 0.08);
  border-left: 4px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1rem 0;
}

.highlight-box.amber {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: var(--accent-amber);
}

.highlight-box.emerald {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: var(--accent-emerald);
}

/* ===================================================================
   FLOWCHART VISUALIZER (TUGAS 2)
   =================================================================== */
.flowchart-wrapper {
  background: #020617;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  position: relative;
  overflow-x: auto;
}

.flowchart-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  min-width: 720px;
}

.flow-node {
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  min-width: 240px;
  position: relative;
  transition: all 0.25s;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.flow-node:hover {
  transform: translateY(-3px) scale(1.02);
}

.flow-node.terminal {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #fff;
  border-radius: var(--radius-full);
  border: 1px solid #38bdf8;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.flow-node.process {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.flow-node.decision {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
  color: #fde68a;
  border: 1px solid var(--accent-amber);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.2);
}

.flow-node.io {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  color: #a7f3d0;
  border: 1px solid var(--accent-emerald);
}

.flow-arrow-down {
  width: 2px;
  height: 25px;
  background: var(--accent-cyan);
  position: relative;
}

.flow-arrow-down::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -4px;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--accent-cyan);
}

.flow-branch-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  width: 100%;
  position: relative;
}

.flow-branch-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

/* ===================================================================
   STORYBOARD CARDS (TUGAS 2)
   =================================================================== */
.storyboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.storyboard-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.25s;
}

.storyboard-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-4px);
}

.sb-frame-header {
  background: rgba(30, 41, 59, 0.8);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.sb-frame-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.sb-frame-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.sb-mockup-screen {
  height: 180px;
  background: #020617;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.sb-spec-list {
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sb-spec-list strong {
  color: #e2e8f0;
}

/* ===================================================================
   FLOATING ACTION BUTTONS / PRINT BUTTON
   =================================================================== */
.action-toolbar {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  gap: 0.75rem;
  z-index: 99;
}

.btn-float {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.5);
  transition: all 0.25s;
}

.btn-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 25px rgba(2, 132, 199, 0.7);
}

/* ===================================================================
   RESPONSIVE DESIGN (TABLET & MOBILE OPTIMIZATIONS)
   =================================================================== */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
  :root {
    --nav-height: auto;
  }
  .app-header {
    height: auto;
    padding: 0.75rem 1.25rem;
  }
  .header-container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .nav-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  .workbench-studio-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .apparatus-viewport {
    height: 400px;
  }
  .canvas-wrapper {
    height: 280px;
  }
  .hero-content-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-author-card {
    max-width: 100%;
    min-width: unset;
  }
}

/* Tablets Portrait & Large Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem 1rem 4.5rem;
  }
  .hero-banner {
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
  }
  .hero-title {
    font-size: 1.6rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .author-name {
    font-size: 1.2rem;
  }
  .exp-ribbon-bar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.6rem;
    gap: 0.75rem;
  }
  .exp-ribbon-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    padding: 0.75rem 0.85rem;
  }
  .reagent-shelf-horizontal {
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
  }
  .shelf-label-pill {
    font-size: 0.68rem;
    padding: 0.25rem 0.5rem;
  }
  .bottle-btn {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
  .apparatus-viewport {
    height: 350px;
  }
  .canvas-wrapper {
    height: 250px;
  }
  .chart-canvas-wrap {
    height: 150px;
  }
  .academic-paper {
    padding: 1.75rem 1.25rem;
  }
  .doc-main-title {
    font-size: 1.35rem;
  }
  .doc-univ-title {
    font-size: 1.15rem;
  }
  .flowchart-wrapper {
    padding: 1rem 0.75rem;
  }
  .storyboard-grid {
    grid-template-columns: 1fr;
  }
  .action-toolbar {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .btn-float {
    padding: 0.65rem 1.1rem;
    font-size: 0.82rem;
  }
}

/* Mobile Phones (max-width: 480px) */
@media (max-width: 480px) {
  .app-header {
    padding: 0.6rem 0.75rem;
  }
  .ut-emblem {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .logo-text h1 {
    font-size: 0.92rem;
  }
  .logo-text p {
    font-size: 0.65rem;
  }
  .user-pill-badge .user-nim {
    display: none; /* Hide NIM in tiny navbar to prevent crowding */
  }
  .app-container {
    padding: 0.75rem 0.65rem 4.5rem;
  }
  .hero-banner {
    padding: 1.25rem 0.85rem;
    border-radius: var(--radius-md);
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .hero-desc {
    font-size: 0.88rem;
  }
  .meta-chip {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }
  .hero-author-card {
    padding: 1rem;
  }
  .author-avatar {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .author-name {
    font-size: 1.15rem;
  }
  .author-nim-pill {
    font-size: 0.78rem;
  }
  .author-subtext {
    font-size: 0.78rem;
  }
  .apparatus-viewport {
    height: 300px;
  }
  .canvas-wrapper {
    height: 230px;
  }
  .controls-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
  }
  .control-item {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  .btn-group-pill {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }
  .btn-pill {
    flex: 1;
    text-align: center;
    padding: 0.35rem 0.5rem;
    font-size: 0.75rem;
  }
  .btn-action-primary, .btn-action-secondary {
    width: 100%;
    justify-content: center;
  }
  .kinetic-gauge-box {
    grid-template-columns: 1fr;
  }
  .academic-paper {
    padding: 1.25rem 0.75rem;
  }
  .doc-main-title {
    font-size: 1.15rem;
  }
  .data-table th, .data-table td {
    padding: 0.6rem 0.65rem;
    font-size: 0.8rem;
  }
  .quiz-card {
    padding: 1.25rem 1rem;
  }
  .question-text {
    font-size: 1rem;
  }
  .quiz-option-btn {
    padding: 0.75rem 0.85rem;
    font-size: 0.85rem;
  }
  .certificate-box {
    padding: 1.5rem 1rem;
  }
  .cert-title {
    font-size: 1.35rem;
  }
  .cert-name {
    font-size: 1.2rem;
    padding: 0.2rem 1rem;
  }
}

/* ===================================================================
   PRINT STYLES FOR UT ASSIGNMENT SUBMISSION
   =================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .app-header, 
  .main-nav, 
  .action-toolbar, 
  .lab-subnav,
  .btn-action-primary,
  .btn-action-secondary,
  .reagent-shelf,
  .btn-icon {
    display: none !important;
  }
  .academic-paper {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .academic-section h2, 
  .academic-section h3, 
  .doc-main-title, 
  .doc-univ-title {
    color: #000 !important;
  }
  .highlight-box {
    background: #f1f5f9 !important;
    color: #000 !important;
    border-left-color: #0284c7 !important;
  }
  .flowchart-wrapper {
    background: #fff !important;
    border: 1px solid #ccc !important;
  }
  .flow-node {
    border: 1px solid #333 !important;
    color: #000 !important;
    background: #f8fafc !important;
  }
}
