﻿/* Toast container */
/*#toast-container {
    position: fixed;
    top: 20px;
    inset-inline-end: 20px;*/ /* RTL/LTR safe */
    /*z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}*/
#toast-container {
    position: fixed;
    bottom: 10px;
    right: 80px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse; /* stack upward */
    gap: 10px;
    pointer-events: none;
}
    #toast-container .toast {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
/* Base toast */
/*.toast {
    min-width: 280px;
    max-width: 360px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;*/
    /* 🔑 FORCE VISIBILITY */
    /*display: block;
    opacity: 1;
    visibility: visible;
    color: #fff;
    background: #333;
    box-shadow: 0 10px 25px rgba(0,0,0,.18);*/
    /* animation */
    /*animation: toast-in 0.3s ease-out;
}*/
.toast {
    min-width: 200px;
    max-width: 360px;
    background: #333;
    color: #fff;
    padding: 14px 18px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,.25);
    font-size: 14px;
    line-height: 1.4;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto;
}
.toast-success {
    background: #28a745;
}

.toast-error {
    background: #dc3545;
}

.toast-info {
    background: #0d6efd;
}

.toast-warning {
    background: #ffc107;
    color: #000;
}

.toast-confirm {
    background: #6f42c1;
}
/* Types */
/*.toast-success {
    background: #16a34a;
}

.toast-error {
    background: #dc2626;
}

.toast-info {
    background: #2563eb;
}

.toast-warning {
    background: #f59e0b;
    color: #000;
}

.toast-confirm {
    background: #374151;
}*/

/* Confirm buttons */
.toast-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

    .toast-actions button {
        border: none;
        border-radius: 6px;
        padding: 6px 14px;
        font-size: 13px;
        cursor: pointer;
    }

        .toast-actions button:first-child {
            background: #16a34a;
            color: #fff;
        }

        .toast-actions button:last-child {
            background: #e5e7eb;
            color: #000;
        }

.toast {
    animation: toast-in 0.35s ease forwards;
}

    .toast.toast-hide {
        animation: toast-out 0.25s ease forwards;
    }

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(12px);
    }
}