:root {
  /* Citrus theme */
  --bg1: #fff9cc;
  --bg2: #fff3a6;
  --panel: #fffef6;
  --panel-border: #e8e2b8;
  --text: #0c3b2a;          /* dark green */
  --muted: #3c6b58;         /* medium green */
  --accent: #1b8f5a;        /* button green */
  --accent-2: #ffce3a;      /* citrus highlight */
  --bar-bg: #e9e2b0;

  --btn-bg: #eaf7d9;
  --btn-border: #b7d2a5;
  --btn-hover: #d8f0c1;

  --danger: #b33a3a;
  --ok: #2d8a52;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, var(--bg2) 0%, var(--bg1) 60%);
}

.wrap { max-width: 980px; margin: 0 auto; padding: 20px; }

.site-header { padding-top: 16px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 16px; }
/* Logo, no background, no border, no container look, 2x bigger */
.logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
h1 { margin: 0; font-size: 32px; letter-spacing: 0.3px; }
.sub { color: var(--muted); margin: 2px 0 0; }

/* Dropzone with thick dark green dashed border */
.dropzone {
  border: 4px dashed var(--text);
  border-radius: 14px;
  padding: 26px;
  background: linear-gradient(180deg, #fffbe3, #fff8cf);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}
.dropzone:focus, .dropzone.dragover {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 6px #0c3b2a22;
  transform: translateY(-1px);
}

.dz-inner { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; }
.dz-icon { width: 64px; height: 64px; border-radius: 12px; display:flex; align-items:center; justify-content:center; background: #fff4b0; color: #0c3b2a; font-size: 28px; }
.dz-text strong { display: block; font-size: 18px; }
.dz-text span { color: var(--muted); font-size: 14px; }

.btn {
  padding: 10px 14px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--btn-hover); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(180deg, #25a368, #1b8f5a);
  border: 1px solid #17794b;
  color: #fff;
}
.btn.primary:hover { background: linear-gradient(180deg, #2ab476, #20a066); }

.btn-link { background: transparent; border: none; color: var(--muted); padding: 6px 8px; cursor: pointer; }
.btn-link:hover { color: var(--text); }

.controls { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; }
.hint { color: var(--muted); }

.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.file {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px;
  animation: pop 160ms ease;
}
@keyframes pop { from { transform: scale(0.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.file-head { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.file .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convert-to { display: inline-flex; align-items: center; gap: 6px; }
.format-label { color: var(--muted); font-size: 12px; }
.format { padding: 6px 8px; background: #fff; color: var(--text); border: 1px solid #d7d2a1; border-radius: 8px; }

.status { margin: 6px 0 8px; display: flex; align-items: center; gap: 8px; }
.status .meta { color: var(--muted); font-size: 12px; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #efe8b1;
  color: var(--muted);
}
.badge.queued { background: #efe8b1; }
.badge.uploading { background: #e1f0d8; color: #246a45; }
.badge.converting { background: #fff0bf; color: #7a5b00; }
.badge.done { background: #dcf3e5; color: #1e6f4b; }
.badge.error { background: #f7d6d6; color: #7a1f1f; }

.progress-wrap { display: grid; gap: 6px; }
.progress-bar { display: grid; grid-template-columns: 80px 1fr 52px; align-items: center; gap: 10px; }
.progress-bar .label { color: var(--muted); font-size: 12px; }
.progress-bar .bar { background: var(--bar-bg); height: 10px; border-radius: 999px; overflow: hidden; position: relative; }
.progress-bar .fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.15s linear;
}
.progress-bar .pct { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }

.actions { margin-top: 8px; display: flex; gap: 8px; }

.foot { color: var(--muted); text-align: center; padding-bottom: 40px; }
