/* The send page, in the app's colours (client/src/AllPix.App/Design/Theme.cs). System fonts only: nothing is loaded from anywhere else. */
:root {
  --bg: #141B26;
  --surface: #1C2431;
  --surface-2: #243042;
  --line: #2E3A4D;
  --text: #F1F5F9;
  --muted: #94A3B8;
  --accent: #60A5FA;
  --success: #34D399;
  --danger: #FB7185;
  --card-radius: 20px;
  --tile-radius: 14px;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px var(--gutter) 48px;
}

h1 { font-size: 1.6rem; margin: 0 0 4px; }

[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-top: 24px;
}

.note {
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: var(--tile-radius);
  background: var(--surface-2);
}
.note.error { border-left: 4px solid var(--danger); }

.button, button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--accent);
  color: #0B1220;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
button.secondary { background: var(--surface-2); color: var(--text); }
button.link { background: none; color: var(--muted); padding: 8px 0; text-decoration: underline; }
button:disabled { opacity: 0.5; cursor: default; }

.qr-wrap {
  background: #fff;
  border-radius: var(--tile-radius);
  padding: 16px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 16px;
}
#qr { display: block; width: 280px; height: 280px; max-width: 100%; image-rendering: pixelated; }

ol { padding-left: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }

#items { list-style: none; margin: 0; padding: 0; }
#items li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
#items .name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#items .state { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
#items .state.done { color: var(--success); }
#items .state.failed { color: var(--danger); }
#items button { padding: 8px 16px; }

footer { margin-top: 24px; text-align: right; }
