/* Animations */

/* Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* Pulse Glow - Neutral */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(113, 113, 122, 0.5);
    }

    100% {
        box-shadow: 0 0 0 12px rgba(113, 113, 122, 0);
    }
}

.playing-glow {
    animation: pulse-glow 1.5s ease-out infinite;
}

/* Ripple - Neutral */
@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.live-ripple {
    position: relative;
    overflow: hidden;
}

.live-ripple::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(161, 161, 170, 0.3);
    border-radius: inherit;
    animation: ripple 2s ease-out infinite;
}

/* Disable ripple when paused (gray state) */
.live-ripple-paused::before {
    animation: none;
    opacity: 0;
}

/* Shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Slide In */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out forwards;
}

/* Toast */
.toast-notification {
    pointer-events: auto;
    cursor: pointer;
}

/* Highlight Pulse - Neutral */
@keyframes highlightPulse {
    0% {
        background-color: rgba(113, 113, 122, 0.15);
        transform: scale(1);
    }

    50% {
        background-color: rgba(113, 113, 122, 0.25);
        transform: scale(1.01);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.highlight-new {
    animation: highlightPulse 2s ease-out;
}

/* Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out forwards;
}