/* AIReader Custom Styles */

/* Active card highlight during playback */
.active-card {
  border-color: #2563eb !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  transform: translateY(-1px);
}

/* Sound wave animation */
@keyframes sound-bar {
  0%, 100% {
    transform: scaleY(0.25);
  }
  50% {
    transform: scaleY(1);
  }
}

.sound-wave span {
  display: inline-block;
  width: 3px;
  height: 14px;
  margin: 0 1px;
  background-color: currentColor;
  border-radius: 2px;
  animation: sound-bar 0.8s infinite ease-in-out;
}

.sound-wave span:nth-child(2) {
  animation-delay: 0.2s;
}

.sound-wave span:nth-child(3) {
  animation-delay: 0.4s;
}

/* Custom smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Dropzone dragover glow */
.drag-active {
  border-color: #3b82f6 !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
}

/* Glowing animation from inside out for Developed by Ricky */
@keyframes glow-inside-out {
  0% {
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.4),
                0 0 8px rgba(147, 51, 234, 0.3),
                inset 0 0 4px rgba(59, 130, 246, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
  }
  50% {
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.9),
                0 0 24px rgba(147, 51, 234, 0.7),
                0 0 36px rgba(99, 102, 241, 0.4),
                inset 0 0 8px rgba(147, 51, 234, 0.6);
    border-color: rgba(168, 85, 247, 0.9);
  }
  100% {
    box-shadow: 0 0 4px rgba(59, 130, 246, 0.4),
                0 0 8px rgba(147, 51, 234, 0.3),
                inset 0 0 4px rgba(59, 130, 246, 0.4);
    border-color: rgba(99, 102, 241, 0.6);
  }
}

.glow-badge-ricky {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1.5px 10px;
  border-radius: 9999px;
  border: 1.5px solid rgba(99, 102, 241, 0.7);
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.95), rgba(245, 243, 255, 0.95));
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: glow-inside-out 2s infinite ease-in-out;
}
