/* BDA Keyframe PoC - Custom styles (Tailwind CDN handles utilities) */

/* Status badge colors */
.status-UPLOADING   { @apply bg-yellow-500/20 text-yellow-300 border border-yellow-500/30; }
.status-PROCESSING  { @apply bg-blue-500/20 text-blue-300 border border-blue-500/30; }
.status-EXTRACTING  { @apply bg-purple-500/20 text-purple-300 border border-purple-500/30; }
.status-COMPLETED   { @apply bg-green-500/20 text-green-300 border border-green-500/30; }
.status-FAILED      { @apply bg-red-500/20 text-red-300 border border-red-500/30; }

/* Upload drop zone */
.drop-zone {
  border: 2px dashed #374151;
  transition: border-color 0.2s, background-color 0.2s;
}
.drop-zone.drag-over {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.05);
}

/* Progress bar animation */
.progress-bar-fill {
  transition: width 0.3s ease;
}

/* Keyframe thumbnail hover */
.keyframe-thumb {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.keyframe-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 2px #3b82f6;
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Pulsing dot for active status */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}
.pulse-dot.blue  { background-color: #3b82f6; }
.pulse-dot.purple { background-color: #a855f7; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Job card */
.job-card {
  transition: border-color 0.2s;
}
.job-card:hover {
  border-color: #4b5563;
}

/* Smooth modal */
#modal-overlay {
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Text word highlight pill */
.text-word-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  margin: 2px;
}