@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&family=IBM+Plex+Mono:wght@300;400&family=IBM+Plex+Sans:wght@300;400;500&display=swap');

:root {
  --bg:          #07070C;
  --surface:     #0E0E15;
  --border:      #1B1B26;
  --border-lit:  #26263A;
  --accent:      #1C69D4;
  --accent-dim:  rgba(28, 105, 212, 0.10);
  --accent-mid:  rgba(28, 105, 212, 0.30);
  --accent-glow: rgba(28, 105, 212, 0.50);
  --text:        #C6C6D6;
  --text-bright: #EAEAF2;
  --text-muted:  #64647C;
  --radius:      4px;
  --ff-display:  'Rajdhani', sans-serif;
  --ff-body:     'IBM Plex Sans', sans-serif;
  --ff-mono:     'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  padding: 2.5rem 1.25rem;
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -5%,
      rgba(28, 105, 212, 0.08) 0%,
      transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.012) 39px,
      rgba(255, 255, 255, 0.012) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255, 255, 255, 0.012) 39px,
      rgba(255, 255, 255, 0.012) 40px
    );
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

@media (min-height: 640px) {
  body { align-items: center; }
}

/* ── Card ─────────────────────────────────────────── */

#main {
  position: relative;
  width: 100%;
  max-width: 1024px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 28px 80px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(28, 105, 212, 0.04);
}

/* BMW blue accent stripe across the top */
#main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    rgba(28, 105, 212, 0.25) 65%,
    transparent 100%);
}

/* Corner triangle decoration */
#main::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 52px 52px 0;
  border-color: transparent rgba(28, 105, 212, 0.07) transparent transparent;
}

/* ── Heading ──────────────────────────────────────── */

h1 {
  font-family: var(--ff-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin: 0;
  line-height: 1.1;
}


/* ── Body copy ────────────────────────────────────── */

p {
  margin: 1.1rem 0 0;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}

/* ── Form ─────────────────────────────────────────── */

form {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

form br { display: none; }

input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 0.6rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-lit);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

input[type="file"]:hover {
  border-color: var(--accent-mid);
  background: var(--accent-dim);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--accent-dim);
}

input[type="file"]::file-selector-button {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  border-radius: 3px;
  padding: 0.25rem 0.7rem;
  font-family: var(--ff-body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  margin-right: 0.75rem;
  transition: background 0.15s, color 0.15s;
}

input[type="file"]::file-selector-button:hover {
  background: rgba(28, 105, 212, 0.22);
  color: #fff;
}

label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.9rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  border: 1px solid var(--border-lit);
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

input[type="checkbox"]:focus {
  outline: 2px solid var(--accent-mid);
  outline-offset: 2px;
}

input[type="submit"] {
  display: block;
  margin-top: 1.25rem;
  padding: 0.6rem 2.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.08s;
}

input[type="submit"]:hover {
  background: #1a5cbf;
  box-shadow: 0 0 28px rgba(28, 105, 212, 0.45);
}

input[type="submit"]:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ── Log output ───────────────────────────────────── */

pre {
  margin-top: 0.75rem;
  padding: 1.25rem;
  background: rgba(28, 105, 212, 0.06);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ── Download button ──────────────────────────────── */

a.btn-download {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.65rem 2.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.08s;
}

a.btn-download:hover {
  color: #fff;
  background: #1a5cbf;
  border-bottom-color: transparent;
  box-shadow: 0 0 28px rgba(28, 105, 212, 0.45);
}

a.btn-download:active {
  transform: translateY(1px);
  box-shadow: none;
}

/* ── Footer links ─────────────────────────────────── */

form + p {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}

form + p + p {
  margin-top: 0.35rem;
  border-top: none;
  padding-top: 0;
  font-size: 0.82rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-family: var(--ff-mono);
  font-size: inherit;
  font-weight: 400;
  border-bottom: 1px solid var(--accent-mid);
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s, opacity 0.18s;
}

a:hover {
  color: var(--text-bright);
  border-bottom-color: var(--text-bright);
}
