
/* =========================
   TEXTAREA (match your system)
========================= */
textarea {
    width: 100%;
    height: 420px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
    color: #fff;
    font-size: 15px;
    resize: none;
    outline: none;
}

/* =========================
   OUTPUT PRE
========================= */
pre {
    width: 100%;
    height: 420px;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: #111;
    color: #e5e7eb;
    overflow: auto;
    font-size: 13px;
}

/* =========================
   BUTTON SYSTEM (same as Word Counter)
========================= */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: white;
    background: #4f46e5;
}

.btn:hover { background: #4338ca; }

.btn.secondary { background: #1f1f1f; }
.btn.secondary:hover { background: #333; }

.btn.danger { background: #dc2626; }
.btn.danger:hover { background: #b91c1c; }

/* =========================
   STATUS / ERROR BOX
========================= */
.error-box {
    margin-top: 10px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(220,38,38,0.15);
    border: 1px solid #dc2626;
    font-size: 13px;
    display: none;
}

/* =========================
   MODAL (same system)
========================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal.hidden { display: none; }

.modal-box {
    width: 320px;
    background: #111;
    padding: 20px;
    border-radius: 14px;
    text-align: center;
    color: white;
}

.json-tree {
  font-family: monospace;
  font-size: 13px;
  color: #e5e7eb;
  height: 420px;
  overflow: auto;
  padding: 10px;
  background: #111;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.json-node {
  margin-left: 12px;
}

.json-header {
  cursor: pointer;
  display: flex;
  gap: 6px;
  align-items: center;
}

.json-children.hidden {
  display: none;
}

.json-key {
  color: #60a5fa;
}

.json-value {
  color: #34d399;
}

.json-type {
  color: #9ca3af;
}

mark {
  background: #facc15;
  color: black;
  padding: 0 2px;
}
