/* Shapekin — Kompletní QR Studio (2D PNG/SVG + 3D STL/3MF) */

#designer-qr-dialog {
  width: min(860px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
}

.qr-mode-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 6px;
  margin: 8px 0 12px;
}

.qr-mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 8px;
  border-radius: 10px;
  border: 1.5px solid #2b3c56;
  background: #131e2e;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease, color 0.14s ease;
}

.qr-mode-tab:hover {
  border-color: #38bdf8;
  color: #fff;
}

.qr-mode-tab[aria-pressed="true"] {
  background: linear-gradient(155deg, rgba(15, 118, 110, 0.38), #14253a);
  border-color: #2dd4bf;
  color: #f8fafc;
}

.qr-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.95fr);
  gap: 14px;
  align-items: start;
}

.qr-fields-card,
.qr-preview-card {
  background: rgba(12, 20, 33, 0.72);
  border: 1px solid #24354f;
  border-radius: 14px;
  padding: 13px;
}

.qr-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.qr-preview-frame {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  min-height: 196px;
}

.qr-preview-empty {
  color: #64748b;
  font-size: 0.82rem;
  max-width: 165px;
  line-height: 1.4;
}

.qr-payload-badge {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid #243652;
  border-radius: 8px;
  padding: 6px 8px;
  word-break: break-all;
  max-height: 54px;
  overflow-y: auto;
  text-align: left;
}

.qr-section-sep {
  margin: 12px 0 8px;
  padding-top: 10px;
  border-top: 1px solid #23334b;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7dd3fc;
}

.qr-export-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
}

.qr-export-grid .wide-col {
  grid-column: 1 / -1;
}

.qr-color-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.qr-color-row input[type="color"] {
  height: 36px;
  padding: 2px;
}

.qr-3d-variants {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.qr-variant-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid #2b3c56;
  background: #131e2e;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.qr-variant-btn small {
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
}

.qr-variant-btn:hover {
  border-color: #38bdf8;
  color: #fff;
}

.qr-variant-btn[aria-pressed="true"] {
  background: linear-gradient(155deg, rgba(15, 118, 110, 0.38), #14253a);
  border-color: #2dd4bf;
  color: #f8fafc;
}

.qr-preview-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.qr-preview-tab {
  padding: 6px 8px;
  border-radius: 9px;
  border: 1px solid #2b3c56;
  background: #131e2e;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.qr-preview-tab[aria-pressed="true"] {
  background: #0f766e;
  border-color: #2dd4bf;
  color: #fff;
}

.qr-3d-stage {
  width: 100%;
  height: 230px;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, #1f2e44 0%, #0d1522 100%);
  border: 1px solid #283b57;
  overflow: hidden;
  position: relative;
}

.qr-3d-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.qr-3d-metrics {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
  color: #93c5fd;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid #243652;
  border-radius: 8px;
  padding: 5px 9px;
}

/* Štítek Free / PRO pro šablony Návrháře */
.design-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.design-tier-pill.tier-free {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.design-tier-pill.tier-pro {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(217, 119, 6, 0.14));
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde68a;
}

@media (max-width: 680px) {
  .qr-studio-grid {
    grid-template-columns: 1fr;
  }
  .qr-color-row {
    grid-template-columns: 1fr 1fr;
  }
}
