*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 3rem;
}

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

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 2.25rem;
}

.hero p {
  margin: 0;
  color: #9ca3af;
}

main {
  width: 100%;
  max-width: 800px;
}

.card {
  background: #020617;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-weight: 600;
  font-size: 0.9rem;
}

textarea {
  resize: vertical;
  min-height: 200px;
  padding: 0.75rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  line-height: 1.4;
}

textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.4);
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.5);
}

button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.4);
}

input[type="file"] {
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #020617;
  color: #e5e7eb;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
}

input[type="file"]:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px #38bdf8;
}

input[type="file"]::file-selector-button {
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #1e293b;
  color: #e5e7eb;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

input[type="file"]::file-selector-button:hover {
  background: #334155;
}

.status-message {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-message[style*="color: #10b981"] {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

.status-message[style*="color: #ef4444"] {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

.hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.card + .card {
  margin-top: 1.5rem;
}

footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}

/* Loading spinner */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(59, 130, 246, 0.3);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .card {
    padding: 1.25rem 1rem;
  }
  
  textarea {
    min-height: 150px;
  }
}


