:root {
  --bg: #f4f6ff;
  --surface: #ffffff;
  --primary: #0f6d5d;
  --accent: #f59f00;
  --text: #15202b;
  --muted: #536171;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 0% 0%, #dff7f2 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, #ffe9bf 0%, transparent 35%), var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.container {
  width: min(100%, 640px);
}

.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(11, 24, 39, 0.12);
}

h1 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.7rem;
}

p {
  margin-top: 0;
  color: var(--muted);
}

form {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

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

input[type="text"],
input[type="file"] {
  width: 100%;
  border: 1px solid #d3dae2;
  border-radius: 10px;
  font-size: 0.95rem;
  padding: 10px;
  background-color: #fff;
}

button {
  border: none;
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #08917a);
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.ghost {
  background: #eef2ff;
  color: #29304a;
  border: 1px solid #cfd8f2;
}

.ghost:hover {
  background: #e1e9ff;
}

.progress-wrapper {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.progress-track {
  width: 100%;
  background: #e7edf4;
  border-radius: 999px;
  overflow: hidden;
  height: 14px;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(11, 24, 39, 0.16);
}

.progress-bar {
  position: relative;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f6d5d, #13a589);
  transition: width 220ms ease;
}

.progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  animation: shimmer 1.25s linear infinite;
}

@keyframes shimmer {
  to {
    left: 120%;
  }
}

#progress-text {
  font-weight: 700;
  color: var(--text);
}

.status {
  margin-top: 14px;
  font-weight: 600;
}

.download {
  margin-top: 12px;
  display: inline-block;
  background: #eaf8f5;
  color: #065446;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
  }
}
