/* Safe Area insets for notch phones */
.pt-safe {
  padding-top: max(1rem, env(safe-area-inset-top));
}

/* Custom Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* HUD Viewfinder corner markers */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
}

/* Radar Scan Laser Animation */
@keyframes laserScan {
  0% {
    top: 5%;
    opacity: 0.1;
  }
  50% {
    top: 92%;
    opacity: 0.9;
  }
  100% {
    top: 5%;
    opacity: 0.1;
  }
}

.scanning-active #scanLaser {
  display: block;
  animation: laserScan 2s ease-in-out infinite;
}

/* Glowing box shadows */
.shadow-glow-emerald {
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
}

/* Interactive Bounding box labels */
.hud-box {
  position: absolute;
  border: 1.5px solid rgba(16, 185, 129, 0.85);
  background: rgba(16, 185, 129, 0.08);
  border-radius: 6px;
  animation: boxPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hud-box-tag {
  position: absolute;
  top: -22px;
  left: -1px;
  background: rgba(11, 16, 21, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #34D399;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

@keyframes boxPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Custom Number Input Spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

/* Modal animation */
.animate-in {
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}