:root {
  --bioma-blue: #0d15df;
  --bioma-blue-strong: #1c2dff;
  --ink: #0f172a;
  --muted: #6b7280;
  --panel: #f6f8ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Red Hat Display", ui-sans-serif, system-ui;
  color: var(--ink);
}

.bg {
  min-height: 100vh;
  background: #f7f8fb;
}

.shell {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e6eaf5;
  background: #ffffff;
  padding: 18px 0;
}

.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-left: 50px;
  padding-right: 28px;
}

.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.bioma-brand {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bioma-blue);
  color: white;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 13px;
}

.user-email {
  color: #4b5563;
}

.btn-outline {
  display: inline-block;
  color: #374151;
  text-decoration: none;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s ease, border-color 0.2s;
}

.btn-outline:hover {
  background: #f7f7f7;
  border-color: #d1d5db;
}

.main {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 0 72px;
}

.card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  border: 1px solid #eceff7;
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
}

.card__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.card__subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--bioma-blue);
  font-weight: 700;
  font-size: 13px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.dropzone {
  width: min(880px, 100%);
  border: 1.5px dashed #b8c3ff;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.dropzone--hover {
  border-color: #95a5ff;
  background: #f7f8ff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.dropzone--alt {
  border-style: dashed;
  border-color: #9fb1ff;
  background: #f5f7ff;
  color: #0f172a;
}

.dropzone--alt .muted {
  color: #516078;
}

.dropzone--alt .dropzone__icon {
  background: #ffffff;
  border-color: #d9e2ff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.dropzone__icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(13, 21, 223, 0.18), rgba(13, 21, 223, 0.08));
  border: 1px solid rgba(13, 21, 223, 0.12);
  display: grid;
  place-items: center;
  color: var(--bioma-blue);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.dropzone__text {
  font-size: 16px;
  color: #1f2937;
  line-height: 1.5;
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.fileinfo {
  font-size: 14px;
  color: #0f172a;
  padding: 12px 14px;
  background: #eef2ff;
  border-radius: 12px;
  border: 1px solid #cbd5ff;
  width: min(720px, 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}

.btn {
  display: inline-block;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-size: 14px;
}

.btn--primary {
  background: var(--bioma-blue);
  color: white;
  box-shadow: 0 12px 30px rgba(13, 21, 223, 0.25);
  border-color: var(--bioma-blue);
}

.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.btn--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(13, 21, 223, 0.3);
}

.btn--ghost {
  background: #eef2ff;
  color: var(--bioma-blue);
  border: 1px solid #c7d2ff;
  box-shadow: 0 6px 18px rgba(13, 21, 223, 0.12);
}

.btn--ghost:hover {
  background: #dde4ff;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(13, 21, 223, 0.16);
}

.result {
  margin-top: 18px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  width: min(720px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.result__title {
  margin: 0 0 8px;
  font-weight: 700;
}

.result__links a {
  display: inline-block;
  margin-right: 12px;
  color: var(--bioma-blue);
  text-decoration: none;
  font-weight: 700;
}

.result__links a:hover {
  text-decoration: underline;
}

.result--status {
  border-color: #dbeafe;
  background: #f8fbff;
}

.footer {
  text-align: center;
  padding: 24px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
}

.mode-btn {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #111827;
}

.mode-btn--active {
  border-color: #cbd5ff;
  background: #eef2ff;
  box-shadow: 0 10px 26px rgba(13, 21, 223, 0.12);
}

.mode-label {
  font-weight: 700;
  font-size: 15px;
}

.mode-note {
  color: var(--muted);
  font-size: 13px;
}

.pane {
  display: none;
  width: 100%;
}

.pane--active {
  display: block;
}

.pane__hint {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: #4b5563;
}

.filelist {
  width: min(760px, 100%);
  margin: 12px auto 0;
  padding: 12px 14px;
  background: #f1f5f9;
  border-radius: 12px;
  border: 1px solid #dbeafe;
  color: #0f172a;
  font-size: 14px;
}

.progress {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 6px;
}

.progress__bar {
  height: 100%;
  width: 12%;
  background: linear-gradient(90deg, #0d15df, #1c2dff);
  transition: width 0.25s ease;
}

.progress__text {
  font-size: 13px;
  color: #4b5563;
}

.batch-files {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.batch-file {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.batch-file__name {
  font-weight: 600;
  color: #111827;
}

.batch-file__links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.alert {
  width: 100%;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin: 6px 0 4px;
}

.alert--error {
  background: #fef2f2;
  border: 1px solid #fecdd3;
  color: #b91c1c;
}

.alert--soft {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1f2937;
}

@media (max-width: 720px) {
  .topbar__row {
    padding-left: 20px;
    padding-right: 16px;
  }

  .card {
    padding: 24px;
  }
}
