/* Tùy chỉnh hiệu ứng giao diện AIGO QR */

@keyframes laser-scan {
  0% {
    top: 5%;
    opacity: 0.8;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  100% {
    top: 5%;
    opacity: 0.8;
  }
}

.laser-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, #10b981, transparent);
  box-shadow: 0 0 15px #10b981, 0 0 30px #22c55e;
  animation: laser-scan 2.5s infinite ease-in-out;
  border-radius: 9999px;
  z-index: 20;
}

.scan-box-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #22c55e;
  z-index: 10;
}

.corner-tl {
  top: 12px;
  left: 12px;
  border-top-width: 4px;
  border-left-width: 4px;
  border-top-left-radius: 8px;
}

.corner-tr {
  top: 12px;
  right: 12px;
  border-top-width: 4px;
  border-right-width: 4px;
  border-top-right-radius: 8px;
}

.corner-bl {
  bottom: 12px;
  left: 12px;
  border-bottom-width: 4px;
  border-left-width: 4px;
  border-bottom-left-radius: 8px;
}

.corner-br {
  bottom: 12px;
  right: 12px;
  border-bottom-width: 4px;
  border-right-width: 4px;
  border-bottom-right-radius: 8px;
}

.drag-active {
  border-color: #10b981 !important;
  background-color: #ecfdf5 !important;
  transform: scale(1.01);
}

/* Toast message animation */
@keyframes slide-in-top {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.toast-enter {
  animation: slide-in-top 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
