﻿.toast-alert {
    background-color: #198754;
    color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    min-width: 250px;
    max-width: 300px;
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    animation: toastIn 0.4s forwards;
    font-size: 0.9rem;
    pointer-events: all;
    box-sizing: border-box;
    overflow-wrap: anywhere;
}

.toast-error {
    background-color: #dc3545;
}

.toast-success {
    background-color: #198754;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.8);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.toast-alert.hide {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

#toast-alert-container {
    z-index: 999999 !important;
}

@media (max-width: 575.98px) {
    .toast-alert {
        width: 100%;
        min-width: 0;
        max-width: none;
        border-radius: 12px;
        padding: .9rem 1rem;
    }
}

.app-content, body {
    overflow: visible !important;
}
