/* ==========================================================================
   SMARTBOARD CINEMA, EQUATION STUDIO & SKILL TREE STYLES
   ========================================================================== */

:root {
  --cmd-bg: #081014;
  --cmd-panel: rgba(14, 26, 31, 0.82);
  --cmd-panel-solid: #0d1a20;
  --cmd-line: rgba(92, 199, 211, 0.18);
  --cmd-line-strong: rgba(92, 199, 211, 0.4);
  --cmd-cyan: #5cc7d3;
  --cmd-amber: #f0a46f;
  --cmd-emerald: #2ee59d;
  --cmd-purple: #c7a2f0;
  --cmd-glow: 0 0 24px -4px rgba(92, 199, 211, 0.28);
}

/* ==========================================================================
   3. SMARTBOARD / CINEMA MODE (EYE-COMFORTABLE & HIGH-LEGIBILITY)
   ========================================================================== */
body.smartboard-cinema {
  /* Cinema is a dark theme: lab drawings need the dark palette too (same values as the dark theme in style.css) */
  --panel2: #202a40; --grid: #2a3550; --accent: #4cc3cf; --accent-ink: #062226; --amber: #e8b04a; --danger: #f07a63; --good: #6bcb8b; --water: #2d5a78; --hl: #4a3d12;
  --s1: #4cc3cf; --s2: #f07a63; --s3: #b39bf0; --s4: #e8b04a;
  --c-am: #6b3a2e; --c-ae: #6a4f24; --c-tm: #5c5424; --c-la: #573a5c; --c-ac: #4a3a66; --c-pm: #2f4a3c; --c-ml: #245049; --c-nm: #2a4466; --c-ha: #2a5a38; --c-ng: #3f3866;
  --cL: .80; --cC: .13; --c-ink: #0b1512;
  background: #0f172a !important;
  background-image: radial-gradient(circle at 50% 0%, rgba(30, 58, 95, 0.45) 0%, #0a0f1d 80%) !important;
  color: #f8fafc !important;
  font-size: 19px !important;
  --bg: #0f172a !important;
  --panel: rgba(30, 41, 59, 0.85) !important;
  --ink: #f8fafc !important;
  --muted: #cbd5e1 !important;
  --line: rgba(148, 163, 184, 0.22) !important;
}
body.smartboard-cinema .card,
body.smartboard-cinema .ap-card {
  background: rgba(30, 41, 59, 0.82) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
  color: #f8fafc !important;
}
body.smartboard-cinema .top {
  background: rgba(15, 23, 42, 0.94) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  padding: 1rem 1.5rem !important;
}
body.smartboard-cinema .navbtn,
body.smartboard-cinema button,
body.smartboard-cinema .tab {
  min-height: 52px !important;
  font-size: 1.05rem !important;
  padding: 0.6rem 1.25rem !important;
  border-radius: 12px !important;
  background: rgba(51, 65, 85, 0.8) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}
body.smartboard-cinema .navbtn:hover,
body.smartboard-cinema button:hover,
body.smartboard-cinema .tab.on {
  background: rgba(56, 189, 248, 0.25) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35) !important;
}
body.smartboard-cinema .side {
  width: 340px !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border-right: 1px solid rgba(148, 163, 184, 0.2) !important;
}
.cinema-active-pill {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  background: linear-gradient(135deg, #0284c7, #38bdf8) !important;
  color: #031525 !important;
  font-weight: 800 !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 25px rgba(56, 189, 248, 0.5) !important;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  font-size: 0.92rem !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cinema-active-pill:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(56, 189, 248, 0.7) !important;
}

/* ==========================================================================
   3B. EYE-COMFORTABLE EQUATION STUDIO STYLES
   ========================================================================== */
.eq-item {
  background: rgba(30, 41, 59, 0.72) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  border-radius: 14px !important;
  padding: 1.15rem !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.eq-item:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 8px 26px rgba(56, 189, 248, 0.15) !important;
  transform: translateY(-2px);
}
.eq-title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
  letter-spacing: -0.01em;
  margin: 0 !important;
}
.eq-formula-box {
  font-size: 1.38rem !important;
  font-family: var(--f-display, system-ui, -apple-system, sans-serif) !important;
  font-weight: 750 !important;
  color: #f8fafc !important;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.6)) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-left: 4px solid #38bdf8 !important;
  border-radius: 10px !important;
  padding: 0.65rem 0.95rem !important;
  margin: 0.65rem 0 !important;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eq-desc {
  font-size: 0.9rem !important;
  color: #94a3b8 !important;
  line-height: 1.55 !important;
  margin: 0.4rem 0 0 !important;
}
.ap-dl dt {
  font-family: var(--f-display, system-ui);
  font-size: 1.15rem !important;
  color: #38bdf8 !important;
  padding: 0.45rem 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 8px;
  border-left: 3px solid #38bdf8;
  margin-top: 0.45rem;
}
.ap-dl dd {
  color: #cbd5e1 !important;
  font-size: 0.92rem !important;
  line-height: 1.55;
  margin: 0.2rem 0 0.85rem 0.75rem !important;
}

/* ==========================================================================
   4. CHEMISTRY MASTERY SKILL TREE (APPEALING & MODERN RPG WORKSTATION)
   ========================================================================== */
.skill-tree-wrap {
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(16px);
}
.skill-tree-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}
.skill-stat-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s, border-color 0.2s;
}
.skill-stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}
.skill-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
}
.skill-stat-card h3 {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.skill-stat-card .val {
  font-size: 2.3rem;
  font-weight: 850;
  margin-top: 0.35rem;
  font-family: var(--f-display, system-ui);
  letter-spacing: -0.02em;
}

.skill-branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 1.5rem;
}
.skill-branch {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.skill-branch:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.skill-branch-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  gap: 0.5rem;
}
.skill-branch-header h4 {
  margin: 0 0 0.2rem;
  font-size: 1.22rem;
  font-weight: 750;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.skill-branch-header small {
  color: #94a3b8;
  font-size: 0.82rem;
  line-height: 1.4;
  display: block;
}
.skill-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.6rem 0 1.1rem;
}
.skill-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.skill-node-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}
.skill-node {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.skill-node:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateX(3px);
}
.node-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.2s;
}
.node-status-dot.done {
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.node-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.node-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.badge-dok {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.badge-mastered {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
