:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --text: #182235;
  --muted: #5f6b7d;
  --accent: #0f4c81;
  --good: #1f7a37;
  --warn: #b07a00;
  --bad: #b63b3b;
  --line: #d7deea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #d9e8ff, var(--bg));
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.pin-gate {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-card {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.pin-card h1 {
  margin: 0 0 10px;
}

.pin-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
}

.hero p {
  margin: 8px 0 20px;
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.hidden { display: none; }

.row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label { font-weight: 600; }

input[type="password"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
}

.dropzone {
  border: 2px dashed #86a3cb;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  background: #f8fbff;
}

.dropzone.dragover {
  border-color: var(--accent);
  background: #eaf3ff;
}

.file-select {
  display: inline-block;
  background: #e0ebfa;
  border: 1px solid #c2d8f6;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}

input[type="file"] {
  display: none;
}

.actions {
  margin-top: 12px;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin-top: 10px;
  min-height: 1.2em;
  color: var(--muted);
}

.uploads {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.card .name {
  font-weight: 600;
  margin-bottom: 8px;
  word-break: break-all;
}

.meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.progress {
  height: 9px;
  border-radius: 999px;
  background: #e5ecf8;
  margin: 8px 0;
  overflow: hidden;
}

.progress .fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.state-CLEAN { color: var(--good); }
.state-INFECTED, .state-REJECTED_FORMAT, .state-SCAN_ERROR { color: var(--bad); }
.state-UPLOAD_ERROR { color: var(--bad); }
.state-UPLOAD_ABORTED { color: var(--bad); }
.state-SCANNING, .state-UPLOADED, .state-UPLOADING { color: var(--warn); }
.state-INITIALISIERE { color: var(--accent); }

.download-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

@media (max-width: 700px) {
  .hero h1 { font-size: 1.55rem; }
  .meta, .download-row { flex-direction: column; align-items: flex-start; }
}
