* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: #0f172a;
  color: #e5e7eb;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

.container {
  max-width: 700px;
  width: 100%;
  margin: 40px 16px;
  padding: 24px;
  background: #020617;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 28px;
}

.subtitle {
  margin-top: 0;
  margin-bottom: 16px;
  color: #9ca3af;
}

textarea {
  width: 100%;
  min-height: 150px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #1f2937;
  background: #020617;
  color: #e5e7eb;
  resize: vertical;
  margin-bottom: 16px;
}

button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #4f46e5;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

#loading {
  margin-top: 12px;
}

#results {
  margin-top: 24px;
}

#results h2 {
  margin-bottom: 4px;
}

#results p,
#results ul {
  margin-top: 4px;
}

.error {
  margin-top: 12px;
  color: #f97373;
}

.hidden {
  display: none;
}
button {
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #22c55e);
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0.96;
}

#results {
  margin-top: 24px;
  animation: fadeInUp 0.25s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.error {
  margin-top: 12px;
  color: #f97373;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  font-size: 14px;
}
