/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Flash/highlight animation for new expenses */
@keyframes highlight {
    0% {
        background-color: rgb(251 191 36 / 0.3);
        box-shadow: 0 0 0 2px rgb(251 191 36 / 0.5);
    }

    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

.animate-highlight {
    animation: highlight 1.5s ease-out;
}

/* Subtle scale animation for totals when updated */
@keyframes totals-update {
    0% {
        transform: scale(1.01);
    }

    100% {
        transform: scale(1);
    }
}

.animate-pulse-totals {
    animation: totals-update 0.3s ease-out;
}

/* Fade-in animation for turbo stream updates */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in-up 0.3s ease-out;
}