/* iNSTRUKTA Transfer — zajednički stil (firmena boja #37879B) */
:root {
  --brand: #37879B;
  --brand-dark: #2a6a7a;
  --brand-tint: #e8f2f5;
  --ink: #1d2a30;
  --muted: #5f6f76;
  --line: #d6e0e4;
  --bg: #f5f8f9;
  --card: #ffffff;
  --ok: #2e7d4f;
  --warn: #b26a00;
  --err: #b3261e;
  --radius: 10px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e4ecef; --muted: #9db0b7; --line: #2f3d43; --bg: #12191c;
    --card: #1a2327; --brand-tint: #1d3239; --brand: #4fa3b8; --brand-dark: #6bb7ca;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; }
a { color: var(--brand); }
header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 24px; background: var(--card); border-bottom: 3px solid var(--brand);
}
.logo { font-weight: 700; font-size: 20px; letter-spacing: .5px; }
.logo .i { color: var(--brand); }
.logo small { display: block; font-weight: 400; font-size: 11.5px; letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.who { font-size: 13.5px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
main { max-width: 920px; margin: 28px auto; padding: 0 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 14px; }
p.lead { color: var(--muted); margin: 0 0 18px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: var(--card); color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }
button, .btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 8px;
  border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none;
}
button:hover, .btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
button.ghost, .btn.ghost { background: transparent; color: var(--brand); }
button.ghost:hover { background: var(--brand-tint); }
button.danger { background: transparent; color: var(--err); border-color: var(--err); }
button.small { padding: 4px 10px; font-size: 13px; font-weight: 500; }
button:disabled { opacity: .5; cursor: not-allowed; }
.drop {
  border: 2px dashed var(--brand); border-radius: var(--radius); background: var(--brand-tint);
  padding: 34px 16px; text-align: center; cursor: pointer; transition: background .15s;
}
.drop.over { background: #d3e8ee; }
.drop strong { display: block; font-size: 16px; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 13.5px; }
.files { list-style: none; padding: 0; margin: 14px 0 0; }
.files li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.files li .name { overflow-wrap: anywhere; }
.files li .size { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.bar.done > i { background: var(--ok); }
.bar.fail > i { background: var(--err); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { background: none; border: none; color: var(--muted); border-bottom: 3px solid transparent; border-radius: 0; padding: 10px 14px; }
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs button:hover { background: var(--brand-tint); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pill.ok { background: #e3f1e8; color: var(--ok); }
.pill.off { background: #f2e4e3; color: var(--err); }
.pill.warn { background: #f7ecd9; color: var(--warn); }
.msg { padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; }
.msg.err { background: #f8e3e1; color: var(--err); }
.msg.ok { background: #e3f1e8; color: var(--ok); }
.msg.info { background: var(--brand-tint); color: var(--ink); }
.linkbox { display: flex; gap: 8px; margin-top: 10px; }
.linkbox input { font-family: Consolas, monospace; font-size: 13.5px; }
.keybox { font-family: Consolas, monospace; font-size: 14px; padding: 12px; background: var(--brand-tint); border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px; margin-top: 10px; cursor: pointer; }
label.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.qr { display: flex; justify-content: center; margin: 8px 0 14px; }
.qr svg { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
input.code { font-size: 24px; letter-spacing: 6px; text-align: center; font-family: Consolas, monospace; }
.demo-banner { background: #fff4d6; color: #6b4b00; text-align: center; font-size: 13px; padding: 6px; border-bottom: 1px solid #ecd9a3; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13.5px; }
footer { text-align: center; color: var(--muted); font-size: 12px; margin: 30px 0; }
.narrow { max-width: 420px; margin: 60px auto; }
@media (max-width: 560px) {
  header.top { padding: 12px 16px; }
  .card { padding: 18px; }
  .files li { grid-template-columns: 1fr auto; }
  table, thead, tbody, tr, td, th { font-size: 13px; }
}
