body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to right, #eafaf1, #f4f4f4);
  color: #333;
}

.container {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

h1, h2 {
  text-align: center;
  color: #27ae60;
}

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

label {
  font-weight: 600;
}

input, select, button {
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

input:focus, select:focus {
  outline: none;
  border-color: #2ecc71;
  box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.3);
}

button {
  background-color: #2ecc71;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #27ae60;
  transform: translateY(-2px);
}

.result-section {
  margin-top: 2rem;
  text-align: center;
}

#resultImage {
  display: none;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #2ecc71;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: auto;
}

.loading {
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

footer {
  text-align: center;
  margin: 3rem auto 1rem;
  font-size: 0.9rem;
  color: #888;
}

footer a {
  color: #2ecc71;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
