/* === Flash Alerts === */
.flash-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column-reverse;
    /* ensures LIFO stack */
    gap: 0.75rem;
    z-index: 9999;
}

.flash {
    border-left: 6px solid #41afb4;
    background-color: whitesmoke;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    min-width: 250px;
    max-width: 350px;
    animation: fadeIn 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    cursor: pointer;
}

/* Variant colors */
.flash.success {
    border-left-color: #41afb4;
}

.flash.error {
    border-left-color: #d32f2f;
}

.flash.warning {
    border-left-color: #ed6c02;
}

.flash.info {
    border-left-color: #41afb4;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}