:root {
  --brand-purple: rgb(216, 138, 246);
  --brand-mid: rgb(179, 173, 248);
  --brand-blue: rgb(150, 212, 251);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(
      to right,
      var(--brand-purple),
      var(--brand-mid),
      var(--brand-blue)
  );
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  width: 90%;
  max-width: 600px;
  text-align: center;
}

.brand {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.upload-container {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  backdrop-filter: blur(4px);
}

.upload-box {
  border: 2px dashed var(--brand-mid);
  border-radius: 12px;
  padding: 3rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hidden-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

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

.upload-icon {
  width: 48px;
  height: 48px;
  fill: var(--brand-purple);
  transition: transform 0.3s ease;
}

.upload-text {
  color: var(--brand-purple);
  font-weight: 500;
  margin: 0;
  font-size: 1.1rem;
}

#processing {
  margin: 2rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 4px solid rgba(179, 173, 248, 0.2);
  border-top: 4px solid var(--brand-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.status-text {
  color: var(--brand-purple);
  margin-top: 1rem;
}

#complete {
  animation: fadeIn 0.5s ease;
}

.thank-you {
  color: var(--brand-purple);
  margin-bottom: 1rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-btn {
  background: var(--brand-purple);
  color: white;
}

.reset-btn {
  background: var(--brand-blue);
  color: white;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none;
}