@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

:root {
  --bg:       #0d0d0d;
  --surface:  #161616;
  --surface2: #1e1e1e;
  --border:   #2a2a2a;
  --fg:       #f0f0f0;
  --muted:    #888888;
  --pink:     #e8587a;
  --cyan:     #3ec6c6;
  --pink-dim: rgba(232, 88, 122, 0.15);
  --cyan-dim: rgba(62, 198, 198, 0.15);
  --radius:   10px;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Geist', system-ui, sans-serif;
  min-height: 100vh;
  line-height: 1.5;
}

/* ---- Layout ---- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

/* ---- Header ---- */
header {
  text-align: center;
  margin-bottom: 48px;
}

.logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.card-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---- Drop Zone ---- */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--cyan);
  background: var(--cyan-dim);
}

.drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.drop-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}

.drop-text {
  color: var(--fg);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.drop-sub {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- Vehicle Picker ---- */
.vehicle-select-wrapper {
  display: none;
  margin-top: 20px;
}

.vehicle-select-wrapper.visible { display: block; }

label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 8px;
}

select, input[type="text"] {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 14px;
  outline: none;
  appearance: none;
  transition: border-color 0.2s;
}

select:focus, input[type="text"]:focus {
  border-color: var(--cyan);
}

select option { background: var(--surface2); }

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 11px 22px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #c93f5e);
  color: #fff;
  width: 100%;
  justify-content: center;
  margin-top: 20px;
}

.btn-primary:hover:not(:disabled) { opacity: 0.9; }

.btn-download {
  background: linear-gradient(135deg, var(--cyan), #2aa8a8);
  color: #000;
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

.btn-download:hover:not(:disabled) { opacity: 0.9; }

/* ---- Progress ---- */
.progress-section {
  display: none;
  margin-top: 20px;
}

.progress-section.visible { display: block; }

.progress-label {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}

/* ---- Status message ---- */
.status-msg {
  margin-top: 12px;
  font-size: 0.87rem;
  color: var(--muted);
  min-height: 1.4em;
}

.status-msg.error { color: var(--pink); }
.status-msg.success { color: var(--cyan); }

/* ---- Result ---- */
.result-section {
  display: none;
}

.result-section.visible { display: block; }

.result-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cyan-dim);
  border: 1px solid rgba(62, 198, 198, 0.3);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 0.9rem;
}

.result-icon { font-size: 1.3rem; }

/* ---- Badge ---- */
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--pink-dim);
  color: var(--pink);
  border: 1px solid rgba(232, 88, 122, 0.3);
}

/* ---- Info box ---- */
.info-box {
  background: var(--pink-dim);
  border: 1px solid rgba(232, 88, 122, 0.25);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 16px;
}

.info-box strong { color: var(--fg); }

/* ---- Spinner ---- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* ---- Divider ---- */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ---- Footer ---- */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 48px;
}

footer a { color: var(--cyan); text-decoration: none; }
footer a:hover { text-decoration: underline; }
