/* Local presenter remote UI for NCGR Abufai decks. */

.control-button.presenter-share-button svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin: 0 auto;
}

.control-button.presenter-share-button svg circle {
  fill: currentColor;
  stroke: none;
}

.pr-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  direction: rtl;
  background: rgba(14, 40, 65, 0.48);
  backdrop-filter: blur(5px);
}

.pr-overlay.is-open {
  display: flex;
}

.pr-card {
  width: min(420px, 92vw);
  padding: 26px 28px;
  border: 1px solid rgba(0, 73, 118, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0e2841;
  box-shadow: 0 34px 100px rgba(14, 40, 65, 0.34);
  text-align: center;
}

.pr-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(0, 73, 118, 0.12);
}

.pr-title {
  color: #004976;
  font-size: 18px;
  font-weight: 800;
}

.pr-close {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(0, 73, 118, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0e2841;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.pr-close:hover {
  border-color: #00a9e0;
  color: #004976;
}

.pr-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 214px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 73, 118, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.pr-qr svg {
  width: 200px;
  height: 200px;
  display: block;
  shape-rendering: crispEdges;
}

.pr-noqr {
  color: rgba(14, 40, 65, 0.7);
  font-size: 15px;
  line-height: 1.6;
}

.pr-status {
  min-height: 22px;
  margin-bottom: 8px;
  color: rgba(14, 40, 65, 0.78);
  font-size: 15px;
  line-height: 1.45;
}

.pr-status.ok {
  color: #2f7d3f;
}

.pr-status.warn {
  color: #b64324;
}

.pr-url {
  display: block;
  margin-bottom: 12px;
  direction: ltr;
  color: rgba(14, 40, 65, 0.7);
  font-family: Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.pr-url:hover {
  color: #0277c6;
  text-decoration: underline;
}

.pr-hint {
  margin-bottom: 18px;
  color: rgba(14, 40, 65, 0.66);
  font-size: 14px;
  line-height: 1.6;
}

.pr-disconnect {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(0, 73, 118, 0.16);
  border-radius: 8px;
  background: #f7f9fb;
  color: #0e2841;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.pr-disconnect:hover {
  border-color: #004976;
  background: #004976;
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .pr-overlay,
  .pr-card,
  .pr-disconnect,
  .pr-close {
    transition: none;
  }
}
