/* Custom CSS & Animations */
@keyframes pulse-slow {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.15);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar personalizada para o histórico de pings */
.custom-scrollbar::-webkit-scrollbar {
  height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Tooltip customizado para barras de histórico */
.history-bar {
  position: relative;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.history-bar:hover {
  transform: scaleY(1.3);
  filter: brightness(1.2);
  z-index: 10;
}

/* Glassmorphism subtle effect */
.glass-card {
  background: rgba(23, 23, 33, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Shimmer placeholder para miniaturas */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.6) 25%, rgba(51, 65, 85, 0.4) 50%, rgba(30, 41, 59, 0.6) 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite ease-in-out;
}

.thumb-container {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-failed .thumb-image {
  display: none !important;
}

.thumb-failed .thumb-fallback {
  display: flex !important;
}
