* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1f2933 0, #020617 60%);
  color: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.app {
  width: 100%;
  max-width: 700px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.5rem;
  padding: 1.8rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.6rem;
  text-align: center;
}

h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.9rem;
  color: #e5e7eb;
}

textarea {
  resize: vertical;
  min-height: 80px;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.8rem;
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.9);
  color: #f9fafb;
  outline: none;
}

textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.6);
}

button {
  align-self: flex-end;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #6366f1);
  color: white;
  transition: transform 0.08s ease, box-shadow 0.08s ease,
    filter 0.08s ease;
}

button:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

button:active {
  transform: scale(0.97);
  box-shadow: none;
}

button:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

.status {
  margin-top: 0.6rem;
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.response-box {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.response-box pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .app {
    border-radius: 0;
    min-height: 100vh;
  }
}
