
/* Code panel: floating Salin, teks wrap di dalam kotak */
.code-panel {
  position: relative;
  margin: 0.65rem 0 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 58, 95, 0.25);
  background: #0f172a;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.code-panel .code-copy-btn {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  padding: 0.32rem 0.65rem;
  border-radius: 6px;
  border: 1px solid rgba(147, 197, 253, 0.4);
  background: rgba(15, 23, 42, 0.92);
  color: #e0f2fe;
  cursor: pointer;
  line-height: 1.2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.code-panel .code-copy-btn:hover {
  background: #2563eb;
  color: #fff;
  border-color: #60a5fa;
}
.code-panel .code-copy-btn.is-copied {
  background: #059669;
  border-color: #34d399;
  color: #fff;
}
.code-panel pre.code-block,
.code-panel pre {
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 4.2rem 0.85rem 0.95rem !important;
  overflow-x: auto;
  white-space: pre-wrap !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.78rem !important;
  line-height: 1.55;
  color: #e2e8f0;
  background: transparent !important;
}
.table-wrap { overflow-x: auto; max-width: 100%; margin: 0.5rem 0; }

/* Extra styles for long-form guide pages (SEO, etc.) */
.guide-narrow { max-width: 800px; }

.guide-block {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.25rem;
  border: 1px solid var(--blue-100);
}
.guide-block h2, .guide-block h3 {
  margin-bottom: 0.65rem;
}
.guide-block p { margin-bottom: 0.75rem; }
.guide-block ul { margin: 0.5rem 0 0.75rem 1.25rem; }
.guide-block li { margin-bottom: 0.35rem; }

.note-box {
  background: var(--blue-50);
  border-left: 4px solid var(--blue-600);
  padding: 0.9rem 1.1rem;
  border-radius: 0 8px 8px 0;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.step-list { display: flex; flex-direction: column; gap: 0.85rem; }

.step-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--blue-100);
}
.step-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.step-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--blue-800);
}
.step-body p { margin-bottom: 0.5rem; font-size: 0.95rem; }
.step-body ul { margin: 0.35rem 0 0.5rem 1.2rem; font-size: 0.92rem; }

.code-block {
  background: #0f172a;
  color: #e2e8f0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.5rem 0 0;
  font-family: ui-monospace, 'JetBrains Mono', monospace;
  white-space: pre;
  box-sizing: border-box;
}
.guide-block, .step-body, .guide-narrow {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.guide-block pre, .step-body pre {
  max-width: 100%;
}

.check-ul { list-style: none; margin-left: 0 !important; padding: 0; }
.check-ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem !important;
}
.check-ul li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--blue-600); font-weight: 700;
}

.checklist-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--blue-100);
}
.check-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--cream-dark);
  cursor: pointer; font-size: 0.95rem;
}
.check-item:last-child { border-bottom: none; }
.check-item input { margin-top: 0.25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--blue-600); }

.muted-foot {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.guide-narrow a { color: var(--blue-600); }
.section-header code, .step-body code, .guide-block code {
  background: var(--blue-50);
  color: var(--blue-700);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
}


/* ===== Izinkan salin teks pelajaran (override anti-select visual) ===== */
main.allow-copy,
.allow-copy,
.doc-preview-rich,
.guide-narrow,
.stage-detail,
.article-body,
.article-card .full,
pre, code, .code-block {
  -webkit-user-select: text !important;
  user-select: text !important;
}

/* Nav contrast on cream/blue guide pages */
.navbar .nav-link {
  color: #f8fafc !important;
  padding: 0.4rem 0.65rem !important;
  border-radius: 6px;
  line-height: 1.25;
  font-size: 0.8rem !important;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #ffffff !important;
}
.navbar .nav-link.home-link {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff !important;
  padding: 0.4rem 0.75rem !important;
  margin-left: 0.25rem;
}
.navbar .nav-link.home-link:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}


/* List alignment & tighter guide spacing */
.guide-block ol,
.guide-block ul {
  margin: 0.5rem 0 0.35rem 0;
  padding-left: 1.35rem;
}
.guide-block ol {
  list-style: decimal;
  list-style-position: outside;
}
.guide-block ol li,
.guide-block ul li {
  margin-bottom: 0.4rem;
  padding-left: 0.25rem;
  line-height: 1.55;
}
.guide-block p { margin-bottom: 0.55rem; }
.guide-block h2, .guide-block h3 { margin-bottom: 0.45rem; }
.step-list { gap: 0.65rem !important; }
.step-card { padding: 0.95rem 1.1rem !important; }
.section-header { margin-bottom: 1.15rem !important; }
#on-off .guide-block,
#kol .guide-block,
#ads .guide-block { margin-bottom: 0.85rem; }
