* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #111;
  color: #f5f5f5;
  overflow: hidden;
}

.display {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#artwork-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.overlay-panel {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  background: rgba(18, 18, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 200px; /* Fixed width to accommodate QR code */
}

#qrcode {
  width: 160px;
  height: 160px;
  padding: 8px;
  background: #ffffff;
  border: 4px solid #ffffff; /* Consistent white border */
  border-radius: 0; /* Square as requested */
}

#qrcode img {
  width: 100%;
  height: 100%;
}

.url {
  margin: 12px 0 0;
  font-size: 0.75rem;
  word-break: break-all;
  opacity: 0.75;
}

.count-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

.count-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.count-label {
  font-size: 0.7rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.count {
  font-size: 1.4rem;
  font-weight: 700;
}

.admin-actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-btn {
  width: 100%;
  background: rgba(255, 50, 50, 0.2);
  border: 1px solid rgba(255, 50, 50, 0.4);
  color: #ff8888;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-btn:hover {
  background: rgba(255, 50, 50, 0.4);
  color: #ffffff;
}

.admin-btn.secondary {
  background: rgba(50, 255, 150, 0.15);
  border-color: rgba(50, 255, 150, 0.3);
  color: #88ffbb;
}

.admin-btn.secondary:hover {
  background: rgba(50, 255, 150, 0.3);
  color: #ffffff;
}
