/* ========================================
   Marked OS — Animations
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes splash-progress {
    0% {
        width: 0%;
    }

    40% {
        width: 60%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
        transform: scale(1);
    }

    50% {
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
        transform: scale(1.04);
    }
}

@keyframes pulse-check {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

@keyframes pop {
    0% {
        transform: scale(0);
    }

    80% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.animate-children>* {
    animation: fadeInUp 0.35s ease backwards;
}

.animate-children>*:nth-child(1) {
    animation-delay: 0.03s;
}

.animate-children>*:nth-child(2) {
    animation-delay: 0.06s;
}

.animate-children>*:nth-child(3) {
    animation-delay: 0.09s;
}

.animate-children>*:nth-child(4) {
    animation-delay: 0.12s;
}

.animate-children>*:nth-child(5) {
    animation-delay: 0.15s;
}

.animate-children>*:nth-child(6) {
    animation-delay: 0.18s;
}

.animate-children>*:nth-child(7) {
    animation-delay: 0.21s;
}

.animate-children>*:nth-child(8) {
    animation-delay: 0.24s;
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-tertiary) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.dragging {
    opacity: 0.5;
    transform: rotate(2deg);
}

.drag-over {
    background: var(--primary-50);
    border: 2px dashed var(--primary-200);
}