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

body {
  margin: 0;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 0.5rem;
}

.hero p {
  color: #555;
}

.uploader {
  background: #fff;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

#upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.file-label {
  display: inline-flex;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #1e40af;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.file-label input {
  display: none;
}

button[type="submit"] {
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #4f46e5, #7c3aed);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(79, 70, 229, 0.25);
}

.hint {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

.status {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: #eef2ff;
  color: #1e3a8a;
}

.status.error {
  background: #fee2e2;
  color: #b91c1c;
}

.result {
  margin-top: 2rem;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  line-height: 1.65;
  white-space: pre-line;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.hidden {
  display: none;
}
