body {
  background: linear-gradient(to right, #f8f9fa, #e3f2fd);
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  color: #2a80ff;
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  color: #333;
}

input[type="file"],
input[type="number"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

textarea {
  resize: vertical;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  background-color: #2a80ff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #1e66d0;
}

.result-box {
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  background-color: #f3f8ff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow-x: auto;
}

.result-box img {
  max-height: 250px;
  border-radius: 10px;
  border: 2px solid #ddd;
}

#downloadBtn {
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-weight: bold;
  font-size: 15px;
  white-space: nowrap;
}

#downloadBtn:hover {
  background-color: #1c7c31;
}

/* Spinner Styles */
.spinner {
  display: none;
  margin: 20px auto;
  border: 6px solid #eee;
  border-top: 6px solid #2a80ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
