:root {
  --bg: #000000;
  --card-bg: #0a0a0a;
  --border: #333333;
  --border-hover: #555555;
  --text-main: #ededed;
  --text-muted: #888888;
  --accent: #0070f3; /* Vercel Blue */
  --font-sans:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  line-height: 1.5;
}

main {
  width: 100%;
  max-width: 600px;
  padding: 4rem 1.5rem;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.04em;
}

p {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  outline: none;
}

input:hover,
textarea:hover {
  border-color: var(--border-hover);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

.button-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex: 1;
}

button:hover {
  background: #0051cc;
}

button:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
}

.output-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.code-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

pre {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  margin: 0 0 1.5rem 0;
  overflow-x: auto;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-main);
  word-break: break-all;
  white-space: pre-wrap;
}

.status {
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.status.success {
  background: #1a472a;
  color: #4ade80;
}

.status.error {
  background: #7f1d1d;
  color: #f87171;
}

/* Syntax highlighting specific colors */
code#obj {
  color: #f5a623;
} /* Orange/Yellow for JSON */
code#out {
  color: var(--accent);
  font-weight: 600;
}
