@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

@keyframes pulse-glow {
    0% { 
        box-shadow: 0 0 5px 0px currentColor;
        opacity: 0.3;
    }
    100% { 
        box-shadow: 0 0 20px 5px currentColor;
        opacity: 0.8;
    }
}

@keyframes pulse-opacity {
    0% { opacity: 0.1; }
    50% { opacity: 0.5; }
    100% { opacity: 0.1; }
}

.pulse {
    animation: pulse 2s infinite;
}


@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(100px, 50px) rotate(5deg);
    }
    50% {
        transform: translate(50px, 100px) rotate(-5deg);
    }
    75% {
        transform: translate(-50px, 50px) rotate(3deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(var(--secondary-rgb), 0.7));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(var(--secondary-rgb), 0.9));
    }
    100% {
        filter: drop-shadow(0 0 5px rgba(var(--secondary-rgb), 0.7));
    }
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
@keyframes shrink {
    0% {
        transform: scaleX(1);
    }
    100% {
        transform: scaleX(0);
    }
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--secondary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--secondary-rgb), 0);
    }
}


@keyframes shine {
    to {
        left: 100%;
    }
}

.updated {
    animation: highlight 1s ease;
}

@keyframes highlight {
    0% {
        background-color: rgba(var(--primary-rgb), 0.3);
        border-left-color: var(--secondary);
    }
    100% {
        background-color: var(--gray);
        border-left-color: var(--primary);
    }
}


.preview-animation {
    position: relative;
    overflow: hidden;
}

.preview-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    animation: progress-bar 3s linear;
}

@keyframes progress-bar {
    0% { width: 0; }
    100% { width: 100%; }
}

.sortable-ghost {
    opacity: 0.7;
    background: var(--primary-light) !important;
    outline: 2px dashed var(--secondary);
}

