:root {
  --bg: #0b1220;
  --card: #111a2e;
  --text: #e7eefc;
  --muted: #a6b3cf;
  --line: rgba(255,255,255,0.10);
  --ok: #2ecc71;
  --err: #ff6b6b;
  --warn: #f7c948;

  /* NEW: accent color for inputs */
  --accent: rgba(91,140,255,0.55);
  --accent-strong: rgba(91,140,255,0.70);
  --accent-glow: rgba(91,140,255,0.25);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
  min-height: 100vh;

  /* Background image */
  background: var(--bg) url("Logo-Bottom-Right.png") no-repeat center center fixed;
  background-size: cover;
}

/* Dark overlay to keep text readable on bright images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
  z-index: 0;
}

/* Ensure card sits above the overlay */
.card {
  position: relative;
  z-index: 1;

  width: min(860px, 100%);
  background: rgba(17, 26, 46, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

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

h1 { margin: 0 0 6px 0; font-size: 22px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.auth { display: flex; gap: 10px; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}

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

/* UPDATED: input box stands out more */
input[type="file"] {
  width: 100%;
  padding: 12px;
  border-radius: 12px;

  background: rgba(255,255,255,0.08);
  border: 1px solid var(--accent);
  color: var(--text);

  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

input[type="file"]:hover {
  background: rgba(255,255,255,0.10);
  border-color: var(--accent-strong);
}

input[type="file"]:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--accent-glow),
    inset 0 0 0 1px rgba(255,255,255,0.08);
}

.row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}
.btn:hover { background: rgba(255,255,255,0.07); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Match index.html: class="btn primary" */
.btn.primary {
  border-color: rgba(64,120,255,0.55);
  background: rgba(64,120,255,0.22);
}
.btn.primary:hover { background: rgba(64,120,255,0.30); }

/* Match index.html: class="btn ghost" */
.btn.ghost { background: rgba(255,255,255,0.03); }

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
}
.pill.ok {
  border-color: rgba(46,204,113,0.55);
  background: rgba(46,204,113,0.14);
}

/* Progress */
.progress-wrap {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
}

progress {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
}

/* Log */
.log {
  margin-top: 14px;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(0,0,0,0.18);
}

.log-line {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  font-size: 13px;
}
.log-line.ok { border-color: rgba(46,204,113,0.35); }
.log-line.err { border-color: rgba(255,107,107,0.45); }
.log-line.warn { border-color: rgba(247,201,72,0.45); }

/* Footer class kept (even if removed in HTML) */
.footer { margin-top: 16px; display: flex; justify-content: space-between; }
