/* Global Styles & Custom Animations */

/* Tooltip fade-in animation */
@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth scrollbar for dark theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(39, 39, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(113, 113, 122, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(113, 113, 122, 0.8);
}

/* Custom selection color */
::selection {
    background: rgba(212, 175, 55, 0.3);
    color: white;
}

/* Sidebar button slide-in animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
}

/* Pulse glow animation for recalculation indicator */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 4px 0 20px rgba(249, 245, 6, 0.6);
        filter: brightness(1);
    }

    50% {
        box-shadow: 15px 0 50px rgba(249, 245, 6, 1), 0 0 90px rgba(249, 245, 6, 0.8);
        filter: brightness(1.4);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 1.2s ease-in-out infinite !important;
}