/* Custom Styles for Warehouse Control Dashboard */

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.03);
}
::-webkit-scrollbar-thumb {
  background: #c8102e;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9e001f;
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.icon-filled {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Scanner Laser Line Animation */
@keyframes laser-sweep {
  0% {
    top: 5%;
    opacity: 0.8;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  100% {
    top: 5%;
    opacity: 0.8;
  }
}

.animate-laser {
  animation: laser-sweep 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Pulse Glow for Scanner Camera Viewport */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(200, 16, 46, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(200, 16, 46, 0.7);
  }
}

.scanner-viewport-active {
  animation: pulse-glow 2s infinite;
}

/* Smooth Tab Transitions */
.tab-pane {
  transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
}
.tab-pane.hidden {
  display: none;
  opacity: 0;
  transform: translateY(4px);
}
.tab-pane:not(.hidden) {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Custom Table Row Highlight */
tr.selected-row {
  background-color: rgba(200, 16, 46, 0.06);
}

/* Glass Overlay Backdrop */
.glass-modal {
  background: rgba(28, 27, 27, 0.6);
  backdrop-filter: blur(8px);
}
