:root {
  --blue: #2b6cb0;
  --blue-dark: #1f4e7d;
  --bg: #f4f6f9;
  --text: #1a202c;
  --muted: #5a6472;
  --err: #b4302a;
  --ok: #2f855a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 3rem 1rem;
}
.logo {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: .75rem;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 8%);
  width: 100%;
  max-width: 560px;
  padding: 2rem 2.5rem;
}

h1 { font-size: 1.5rem; margin: .25rem 0 .25rem; }

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

.panel {
  border-radius: 8px;
  padding: .75rem 1rem;
  margin: 1rem 0;
}
.panel.error {
  background: #fdeceb;
  border: 1px solid #f5c2bf;
  color: var(--err);
}
.panel.info {
  background: #ebf4fd;
  border: 1px solid #c3daf0;
  color: var(--blue-dark);
}

.dropzone {
  border: 2px dashed #b9c4d1;
  border-radius: 10px;
  text-align: center;
  padding: 2.25rem 1rem;
  margin-top: 1.25rem;
  transition: border-color .15s, background-color .15s;
  outline: none;
}
.dropzone:hover, .dropzone:focus, .dropzone.drag {
  border-color: var(--blue);
  background: #f0f6fc;
}
.dropzone.disabled { opacity: .55; pointer-events: none; }

.dz-big { font-size: 1.1rem; font-weight: 600; margin: 0; }
.dz-small { color: var(--muted); margin: .35rem 0 .75rem; }
.dz-hint { color: var(--muted); font-size: .82rem; margin: 1rem 0 0; }

button {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: .55rem 1.4rem;
  font-size: .95rem;
  cursor: pointer;
}
button:hover { background: var(--blue-dark); }
button:disabled { opacity: .5; cursor: default; }

.file-name { font-weight: 600; margin: 1.25rem 0 .5rem; word-break: break-all; }

.bar {
  height: 10px;
  border-radius: 5px;
  background: #e2e8f0;
  overflow: hidden;
}
#bar-fill {
  height: 100%;
  width: 0;
  background: var(--blue);
  transition: width .2s ease-out;
}

.progress-text { color: var(--muted); font-size: .9rem; margin: .4rem 0 0; }

.status { margin: .35rem 0 0; }
.status.ok { color: var(--ok); font-weight: 600; }
.status.err { color: var(--err); font-weight: 600; }

footer {
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: .75rem;
}
footer p { color: var(--muted); font-size: .8rem; margin: 0; }

.hidden { display: none; }
