/* ============================================================
   TOOLIO ANIMATIONS & MICRO-INTERACTIONS
   ============================================================ */

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@keyframes modalPopIn {
  0% { transform: scale(0.95) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes waveEqualizer {
  0% { height: 6px; background-color: var(--accent-indigo); }
  50% { height: 26px; background-color: var(--accent-cyan); }
  100% { height: 10px; background-color: var(--accent-purple); }
}

/* Staggered Item Animation */
.animate-stagger {
  opacity: 0;
  transform: translateY(8px);
  animation: staggerFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Click Ripple Feedback */
.ripple-fx {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.45s linear;
  background-color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(16, 185, 129, 0.3);
  color: #ffffff;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--trans-base);
  z-index: 10000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

/* Reduced Motion Preference Respect */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .pulse-dot {
    animation: none !important;
  }
}

/* Scrollbars */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.15); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }
