/* ===============================
   ERC20 STATIC CODE EDITOR
   =============================== */

:root {
  --bg-main: #0f0624;
  --bg-panel: #1a0035;
  --bg-input: #120021;
  --border-soft: #3b0d63;
  --text-main: #e5e7eb;
  --text-dim: #9ca3af;
  --accent: #8b5cf6;
  --accent-cyan: #22d3ee;
}

/* ---------- Static Container ---------- */
.code-canvas {
  width: 100%;
  background: var(--bg-main);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  min-height: 70vh;
}



/* ---------- Header ---------- */
.code-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(90deg, #1a0035, #260144);
  border-bottom: 1px solid var(--border-soft);
}

.code-canvas-header h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--text-main);
}

.code-canvas-meta {
  font-size: 11px;
  color: var(--text-dim);
}

/* ---------- Button (optional) ---------- */
.code-btn {
  cursor: pointer;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--accent-cyan);
}

.code-btn:hover {
  background: rgba(139,92,246,.12);
}

/* ---------- Editor ---------- */
.code-editor {
  width: 100%;        
  flex: 1;
  min-height: 420px;
  padding: 14px;
  background: var(--bg-input);
  color: var(--text-main);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 13px;
  line-height: 1.55;
  border: none;
  outline: none;
  resize: vertical;
  white-space: pre;
  overflow: auto;
}
.code-explain {
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(139,92,246,.08);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-main);
}

.code-explain ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.code-explain li {
  margin: 4px 0;
  color: var(--text-dim);
}

.code-explain p {
  margin: 6px 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-main);
}
/* ---------- Footer ---------- */
.code-canvas-footer {
  padding: 8px 14px;
  font-size: 11px;
  color: var(--text-dim);
  border-top: 1px solid var(--border-soft);
  background: #10001f;
}

/* ---------- Scrollbar ---------- */
.code-editor::-webkit-scrollbar {
  width: 8px;
}

.code-editor::-webkit-scrollbar-thumb {
  background: #3b0d63;
  border-radius: 6px;
}

.code-editor::-webkit-scrollbar-track {
  background: #0f0624;
}