/* QR Scanner Styles - Only used elements */
#scanner-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  z-index: 10000;
  display: block;
}

#qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#qr-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
}

#scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#scanner-overlay > div:first-child {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  height: 250px;
  border: 2px solid #FF3B58;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.3);
}

#scanner-overlay > div:last-child {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 16px;
  font-family: sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

#debug-info {
  position: absolute;
  top: 10px;
  right: 10px;
  color: white;
  text-align: right;
  font-size: 12px;
  background: rgba(0,0,0,0.5);
  padding: 10px;
}

#result-container {
  display: none;
  padding: 20px;
  text-align: center;
}

#qr_scanned_code {
  width: 300px;
  text-align: center;
}

#qr_scanned_result {
  min-height: 20px;
  padding-bottom: 10px;
  font-size: 14px;
  color: #666;
}

#rescan-btn {
  padding: 10px 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#captured-image-container {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

#captured-image {
  display: block;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#download-image {
  display: inline-block;
  margin-top: 10px;
  padding: 5px 10px;
  background: #28a745;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  font-size: 12px;
}

#download-image:hover {
  background: #218838;
  color: white;
}
