/* styles/qr-scanner.css */

.qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  max-width: 320px;
  margin: 0 auto;
}

.qr-scanner-container {
  width: 300px;
  height: 300px;
  position: relative;  
  overflow: hidden;
  border-radius: 8px;  
  display: none;
}

.qr-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  display: block;  
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 255, 0, 0.7);
  box-shadow: 0 0 6px rgba(0, 255, 0, 0.8);
  animation: scan 2s linear infinite;
  z-index: 10;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.qr-result-card {
  width: 100%;
  background: var(--card-bg, #f9f9f9);
  border: 1px solid var(--border-color, #ddd);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.qr-field {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}

.qr-label {
  font-weight: 600;
  color: var(--text-color, #333);
}

.qr-value {
  color: var(--text-muted, #666);
  text-align: right;
  word-break: break-word;
  max-width: 180px;
}

.qr-scan-btn {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: var(--primary-btn-bg, #007bff);
  color: white;
}

.qr-scan-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}