:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #059669;
  --accent-dark: #047857;
  --bg1: #0f172a;
  --bg2: #334155;
  --text: #0f172a;
  --muted: #64748b;
  --border: #cbd5e1;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans Gujarati", "Nirmala UI", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg1), #1e293b 50%, var(--bg2));
  padding: 24px 14px;
}

.app-shell {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.brand-header {
  text-align: center;
  margin-bottom: 22px;
}

.brand-badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  padding: 16px 14px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  font-size: clamp(27px, 6vw, 42px);
  line-height: 1.2;
}

.brand-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.notice {
  margin: 18px 0 24px;
  padding: 13px 15px;
  border-radius: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  line-height: 1.55;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

input[type="file"],
input[type="number"],
select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 2px solid var(--border);
  border-radius: 11px;
  background: #f8fafc;
  color: var(--text);
  font-size: 16px;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

input[readonly] {
  background: #f1f5f9;
  color: #475569;
}

.file-info {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.dimensions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.primary-button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(5, 150, 105, .28);
}

.primary-button:hover {
  filter: brightness(1.06);
}

.primary-button:disabled {
  opacity: .65;
  cursor: wait;
}

.progress-wrap {
  margin-top: 20px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width .2s ease;
}

.status {
  margin-top: 10px;
  text-align: center;
  color: #334155;
  font-weight: 700;
  line-height: 1.5;
}

footer {
  margin-top: 24px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 600px) {
  .card {
    padding: 18px;
    border-radius: 16px;
  }

  .dimensions {
    grid-template-columns: 1fr;
  }
}
