/* ==============================================
   RAZ Creative Studio - Kalkulator HPP Premium
   Stylesheet: RAZHppCalcAnimations.css
   ============================================== */

/* Row Entrance Animation */
@keyframes slideInRow {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-enter {
    animation: slideInRow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Value Update Flash Animation */
@keyframes flashUpdate {
    0% {
        color: var(--gold);
        transform: scale(1.1);
    }
    100% {
        color: inherit;
        transform: scale(1);
    }
}

.val-updated {
    animation: flashUpdate 0.5s ease-out forwards;
}

/* Background Particle Float */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.bg-particle {
    animation: float 10s infinite ease-in-out;
}

.bg-particle:nth-child(2) {
    animation-duration: 15s;
    animation-delay: 2s;
}

.bg-particle:nth-child(3) {
    animation-duration: 12s;
    animation-delay: 5s;
}

/* Button Pulse (Print Button) */
@keyframes pulseGold {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.btn-primary:hover {
    animation: pulseGold 1.5s infinite;
}

/* Transition for Table Rows Deletion */
.row-leave {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}
