﻿.custom-alert {
    max-width: 400px;
    margin: 1rem auto;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    pointer-events: all;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s ease-in-out;
}

    .custom-alert.show {
        opacity: 1;
        transform: translateY(0);
    }

    .custom-alert.success {
        background-color: #198754;
    }

    .custom-alert.error {
        background-color: #dc3545;
    }

    .custom-alert .progress-bar {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 4px;
        background-color: rgba(255, 255, 255, 0.7);
        animation: progressbar 3s linear forwards;
    }

@keyframes progressbar {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}
