/* Overlay for QR Reader */
#qrr-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  z-index: 20000;
}

/* Container for QR Scanner */
#qrr-container {
  font-family: 'Lato', sans-serif;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 90%;
  max-width: 500px;
  height: 90%;
  max-height: 700px;
  margin: auto;
  display: none;
  z-index: 20001;
  border-radius: 15px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.25);
  padding: 20px;
  overflow: hidden;
}

/* Header */
#qrr-container h1 {
  margin-top: 0;
  font-size: 1.5rem;
  text-align: center;
  color: #333;
}

/* Close Button */
#qrr-close {
  position: absolute;
  right: 15px;
  top: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  transition: color 0.3s;
}

#qrr-close:hover {
  color: #000;
}

/* Loading Message */
#qrr-loading-message {
  text-align: center;
  padding: 15px;
  background-color: #f5f5f5;
  color: #666;
  width: 80%;
  margin: 20px auto;
  font-size: 1rem;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

/* QR Canvas */
#qrr-canvas {
  display: block;
  height: 60%;
  max-width: 90%;
  margin: 20px auto 10px;
  border: 2px solid #007bff;
  border-radius: 10px;
  cursor: pointer;
  background-color: #f9f9f9;
}

#qrr-canvas.hidden {
  display: none;
}

/* QR Output */
#qrr-output {
  width: 90%;
  max-height: 15%;
  margin: 20px auto;
  background: #f0f0f0;
  color: #333;
  font-size: 1rem;
  padding: 15px;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
  text-align: center;
}

/* Confirmation Button */
#qrr-ok {
  display: none;
  position: absolute;
  right: 20px;
  bottom: 20px;
  padding: 10px 50px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  background-color: #28a745;
  color: #fff;
  border-radius: 10px;
  transition: background-color 0.3s;
}

#qrr-ok:hover {
  background-color: #218838;
}

/* Hidden Output Data */
#qrr-output-data {
  display: none;
}
