/* QR linkovi – stabilan, mobile-first prikaz (Viber/FB in-app friendly) */

.spqr-wrap{
  max-width: 760px;
  margin: 18px auto;
  padding: 0 12px 22px;
}

/* Glavna kartica stranice */
.spqr-card{
  background:#fff;
  border:1px solid #e6eaf5;
  border-radius:18px;
  box-shadow: 0 18px 60px rgba(16,24,40,.10);
  padding: 14px;
}

/* Naslov + opis */
.spqr-title{
  margin:0 0 6px;
  text-align:center;
  font: 900 18px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  color:#0b1220;
}
.spqr-sub{
  margin:0 0 12px;
  text-align:center;
  color:#64748b;
  font: 13px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
}

/* Toolbar */
.spqr-toolbar{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin: 0 0 12px;
}
.spqr-search{
  flex: 1 1 260px;
  min-width: 200px;
  padding: 10px 12px;
  border:1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  font: 600 13px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  background:#fff;
}
.spqr-search:focus{
  border-color:#c7d2fe;
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.spqr-count{
  color:#64748b;
  font: 800 12px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  white-space:nowrap;
}

/* Lista */
.spqr-list{
  display:grid;
  gap:10px;
}

/* Item kartice */
.spqr-item{
  border:1px solid #e5e7eb;
  border-radius:16px;
  padding: 12px;
  background:#fff;
}

/* Gornji red: ime levo, tip desno */
.spqr-top{
  display:flex;
  gap:10px;
  align-items:flex-start;
  justify-content:space-between;
}

.spqr-name{
  font: 900 15px/1.15 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  color:#0b1220;
  word-break: break-word;
}

.spqr-badge{
  font: 900 11px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  padding: 7px 10px;
  border-radius: 999px;
  background:#eef2ff;
  color:#1d4ed8;
  border:1px solid rgba(29,78,216,.18);
  white-space:nowrap;
}

/* Sto/stolica */
.spqr-meta{
  margin-top: 6px;
  color:#334155;
  font: 800 12px/1.25 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
}

/* Dugmad – 3 kolone uvek lepo poravnate */
.spqr-actions{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.spqr-btn{
  width:100%;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  font: 900 12px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  white-space:nowrap;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
}

.spqr-open{ background:#0ea5e9; color:#fff; border-color: rgba(14,165,233,.28); }
.spqr-copy{ background:#2563eb; color:#fff; border-color: rgba(37,99,235,.25); }
.spqr-viber{ background:#16a34a; color:#fff; border-color: rgba(22,163,74,.22); }

.spqr-btn:active{ transform: translateY(1px); }

/* “kopirano” poruka */
.spqr-ok{
  margin-top: 8px;
  color:#16a34a;
  font: 900 12px/1 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  display:none;
}

.spqr-empty{
  padding: 12px;
  color:#64748b;
  font: 800 13px/1.35 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  border:1px dashed #e5e7eb;
  border-radius: 14px;
  text-align:center;
}

/* Malo kompaktnije na baš malim ekranima */
@media (max-width: 380px){
  .spqr-card{ padding: 12px; }
  .spqr-item{ padding: 10px; }
  .spqr-btn{ padding: 9px 6px; font-size: 11px; }
}

/* ===== QR GATE (poruke za sp-qr) ===== */

.spqr-card.spqr--error,
.spqr-card.spqr--info{
  padding: 18px 16px;
  text-align: center;
}

.spqr-icon{
  width: 46px;
  height: 46px;
  margin: 2px auto 10px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #eef2ff;
  border: 1px solid rgba(37,99,235,.18);
}

.spqr-card.spqr--error .spqr-icon{
  background: #fff1f2;
  border-color: rgba(239,68,68,.22);
}

.spqr-card.spqr--info .spqr-icon{
  background: #f1f5ff;
  border-color: rgba(37,99,235,.18);
}

.spqr-text{
  margin: 0;
  color: #334155;
  font: 650 14px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
}

.spqr-hint{
  display: inline-block;
  margin-top: 6px;
  color: #64748b;
  font-weight: 700;
  font-size: 12px;
}

.spqr-actions.spqr-actions--center{
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.spqr-btn-primary{
  background: #2563eb;
  color: #fff;
  border-color: rgba(37,99,235,.25);
  text-decoration: none;
}

