/* Base */
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
}

.container {
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

/* Header */
h1 {
  text-align: center;
  margin-bottom: 5px;
}

.subtitle {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 30px;
}

/* Card */
.card {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  min-height: calc(100vh - 120px);
}

/* Layout */
.split {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.panel:first-child {
  padding-right: 10px;
}

/* Inputs */
textarea {
  width: 100%;
  flex: 1;
  min-height: 200px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  background: #0f172a;
  color: #e2e8f0;
  font-family: monospace;
  margin-bottom: 10px;
  resize: none;

  white-space: pre-wrap;
  word-break: break-word;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

button {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: #334155;
  color: white;
}

button.primary {
  background: #6366f1;
}

#message {
  color: #f87171;
  margin-top: 10px;
}

/* Viewer */
#viewer {
  flex: 1;
  min-height: 200px;
  background: #0f172a;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
  font-family: monospace;
  font-size: 14px;

  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;

  -webkit-overflow-scrolling: touch;
}

/* JSON Styling */
.node {
  margin-left: 18px;
  position: relative;
  padding-left: 12px;
  border-left: 1px solid rgba(148,163,184,0.15);
}

.line {
  padding: 2px 4px;
}

.line:hover {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

.toggle {
  cursor: pointer;
  color: #818cf8;
  margin-right: 6px;
}

.key { color: #38bdf8; }
.string { color: #22c55e; }
.number { color: #f59e0b; }
.boolean { color: #e879f9; }
.null { color: #94a3b8; }

/* Scrollbars */
#viewer::-webkit-scrollbar,
textarea::-webkit-scrollbar {
  width: 8px;
}

#viewer::-webkit-scrollbar-thumb,
textarea::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 6px;
}

#viewer::-webkit-scrollbar-track {
  background: #020617;
}

#viewer {
  scrollbar-width: thin;
  scrollbar-color: #334155 #020617;
}

/* Trust + SEO */
.trust {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 8px;
}

.seo-section {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.seo-section h2 {
  margin-top: 20px;
  font-size: 20px;
}

.seo-section p {
  color: #cbd5f5;
}

.seo-section ul {
  margin-top: 10px;
  padding-left: 18px;
}

.seo-section li {
  margin-bottom: 6px;
}

