/* Search Polling Styles */

/* Smooth transitions for status badge updates */
.polling-status {
  transition: all 0.3s ease-in-out;
}

/* Pulse animation for queued searches - subtle visual indicator */
.polling-status.queued-pulse {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

/* Status transition animations */
.status-updating {
  opacity: 0.6;
  transform: scale(0.98);
}

.status-updated {
  animation: status-flash 0.6s ease-out;
}

@keyframes status-flash {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Loading spinner animation for queued searches */
.search-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #f59e0b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Subtle error indication for polling failures */
.polling-error {
  opacity: 0.7;
  border-left: 3px solid #ef4444;
  padding-left: 8px;
  transition: all 0.3s ease;
}

.polling-error:hover {
  opacity: 1;
}

/* Success indication animation */
.polling-success {
  animation: success-bounce 0.8s ease-out;
}

@keyframes success-bounce {
  0% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(0.95);
  }
  75% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Fade transition for status changes */
.status-fade-out {
  opacity: 0;
  transition: opacity 0.2s ease-in;
}

.status-fade-in {
  opacity: 1;
  transition: opacity 0.3s ease-out;
}

/* Subtle highlight for recently updated rows */
.row-updated {
  background-color: rgba(34, 197, 94, 0.05);
  transition: background-color 2s ease-out;
}

/* Responsive considerations for mobile */
@media (max-width: 768px) {
  .polling-status {
    font-size: 0.75rem;
  }
  
  .search-spinner {
    width: 10px;
    height: 10px;
  }
}

/* Dark mode support (if implemented in the future) */
@media (prefers-color-scheme: dark) {
  .polling-error {
    border-left-color: #f87171;
  }
  
  .row-updated {
    background-color: rgba(34, 197, 94, 0.1);
  }
} 