@keyframes processingDots {
    0%, 100% { 
        box-shadow: -8px 0 0 white, 0px 0 0 white, 8px 0 0 white;
    }
    50% { 
        box-shadow: -8px 0 0 transparent, 0px 0 0 transparent, 8px 0 0 transparent;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

@keyframes loading-pulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@keyframes pulse-gradient {
    0% { background-position: 100% 0; }
    50% { background-position: 0 0; }
    100% { background-position: -100% 0; }
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* File movement animations */
@keyframes moveItem {
    0% { 
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
    100% { 
        transform: translateY(var(--move-distance));
        opacity: 1;
    }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

.processing-indicator {
    color: #666;
    font-style: italic;
    animation: pulse-text 1.5s infinite;
    margin-left: 5px;
}

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

/* Use a single class for movement with a direction modifier */
.moving {
    animation: moveItem 0.3s ease forwards;
}

.moving[data-direction="up"] {
    --move-distance: -110%;
}

.moving[data-direction="down"] {
    --move-distance: 110%;
}
