* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0f0f1a;
  color: #e4e4e7;
  margin: 0;
  min-height: 100vh;
  padding: 2rem;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-size: 1.75rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fafafa;
}

.subtitle {
  color: #71717a;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #a1a1aa;
}

textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #18181b;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #e4e4e7;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-small {
  background: #27272a;
  color: #a1a1aa;
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

.btn-small:hover {
  background: #3f3f46;
  color: #e4e4e7;
}

.status {
  font-size: 0.875rem;
  color: #71717a;
}

.status.success {
  color: #22c55e;
}

.status.error {
  color: #ef4444;
}

.examples {
  margin-bottom: 1.5rem;
}

.examples p {
  font-size: 0.8rem;
  color: #71717a;
  margin-bottom: 0.5rem;
}

.examples .btn-small {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.history {
  font-size: 0.8rem;
  color: #52525b;
}

.history div {
  margin-top: 0.25rem;
}
