/* Porland Scan & Go — Custom Styles */

/* Smooth scroll */
html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

/* Remove default focus outline, use ring instead */
*:focus {
  outline: none;
}

/* Animation utilities */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Links */
a {
  text-decoration: none;
}

/* Number input spinner removal */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Transition utilities */
.transition-height {
  transition: max-height 0.3s ease-in-out;
}

/* html5-qrcode overrides */
#qr-reader {
  border: none !important;
}
#qr-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
#qr-reader__scan_region {
  min-height: 100% !important;
}
#qr-reader__scan_region > img {
  display: none !important;
}
#qr-reader__dashboard {
  display: none !important;
}
