/* === QR PAGE STYLES === */

/* General layout for the QR generator page */
.qr-page {
  width: min(960px, 100%);
  margin: 0 auto;
  padding: 1rem 1.25rem;
}

/* Form elements */
.qr-form label {
  display: block;
  margin: .25rem 0;
}
.qr-form textarea,
.qr-form input,
.qr-form select {
  width: 100%;
  padding: .45rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.qr-options {
  margin: .75rem 0;
}
.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: .75rem;
  margin-top: .5rem;
}

.qr-note {
  font-size: .9rem;
  color: #555;
}

.qr-btn {
  margin-top: .5rem;
  padding: .5rem .9rem;
  border: 0;
  border-radius: 8px;
  background: #0b72ff;
  color: #fff;
  cursor: pointer;
}
.qr-btn:hover {
  filter: brightness(.95);
}

.qr-error {
  color: #b00020;
  margin: .5rem 0;
}

/* QR preview section */
.qr-preview {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.qr-preview img {
  max-width: 320px;
  height: auto;
  image-rendering: pixelated;
  background: transparent;
}
.qr-downloads {
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
}

/* Tooltip help icon */
.help {
  cursor: help;
  font-size: 0.9em;
  margin-left: 4px;
  color: #007bff;
  text-decoration: none;
}
.help:hover {
  color: #0056b3;
}

/* API examples section */
.api-examples {
  margin-top: 2rem;
  background: #f8f9fa;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
}
.api-examples summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 1.1rem;
  color: #0b72ff;
}
.api-examples pre {
  background: #222;
  color: #f8f8f2;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.api-examples code {
  font-family: "Fira Code", "Consolas", monospace;
  font-size: 0.9rem;
}
