/* ============================================================
   scanner.css — Estilos custom del scanner
   Animaciones, scrollbar, y overrides específicos
   ============================================================ */

/* Scrollbar oscuro */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #1e293b;
}

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

::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Animación de entrada para filas */
.scanner-row {
  animation: fadeInRow 0.2s ease-out;
}

@keyframes fadeInRow {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulse suave para status dot */
@keyframes softPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-pulse {
  animation: softPulse 2s ease-in-out infinite;
}

/* Sticky column shadow */
td.sticky {
  box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.3);
}

/* Modal backdrop transition */
#detail-modal {
  transition: opacity 0.15s ease;
}

/* Focus visible para accesibilidad */
button:focus-visible,
input:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

/* Score filter active state extra glow */
.score-filter-btn.bg-accent\/20 {
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .scanner-row td {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Loading shimmer effect */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

.loading-shimmer {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}
