textarea {
  width: 100%;
  height: 200px;
  font-family: monospace;
  padding: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

button:hover {
  background: var(--primary-dark);
}

pre {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: var(--radius);
  overflow-x: auto;
  white-space: pre-wrap;
  margin-top: 1rem;
  transition: background 0.3s;
}

body.dark pre {
  background: #374151;
}

.copy-btn {
  margin-top: 0.5rem;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.copy-btn:hover {
  background: var(--primary-dark);
}


.success { color: var(--success); }
.error { color: var(--error); }
