:root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f4f7ff;
  background: #030712;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.2), transparent 60%),
    radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.15), transparent 65%),
    #050816;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

header h1 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

header p {
  margin: 0;
  color: #cbd5f5;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

label {
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: #cbd5f5;
}

input,
select,
textarea {
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.7);
  padding: 0.85rem;
  color: inherit;
  font-size: 0.95rem;
  width: 100%;
  box-sizing: border-box;
}

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

button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-weight: 600;
  font-size: 1rem;
  color: #020617;
  background: linear-gradient(120deg, #38bdf8, #a855f7);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(56, 189, 248, 0.2);
}

button:active {
  transform: translateY(0);
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge {
  font-size: 0.85rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.result pre {
  background: rgba(8, 13, 26, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}

