/* Base Animations */
@keyframes fade-in {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slide-in-right {
    from { 
        opacity: 0;
        transform: translateX(20px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes highlight-fade {
    0% { 
        background-color: rgba(59, 130, 246, 0.1);
        transform: scale(1);
    }
    50% { 
        background-color: rgba(59, 130, 246, 0.15);
        transform: scale(1.02);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fade-in 0.2s ease-out forwards;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.highlight-update {
    animation: highlight-fade 2s ease-out forwards;
}

.success-badge {
    animation: slide-in-right 0.5s ease-out forwards;
}

.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Loading States */
.loading-spinner {
    border: 2px solid rgb(229, 231, 235);
    border-top-color: rgb(239, 68, 68);
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    animation: spin 1s linear infinite;
}



@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}