/* ============================================================
   Popup / toast — wspólny dla całej strony (potwierdzenia + crash handler)
   ============================================================ */
   #toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 5000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 340px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    color: #000;
    border-radius: 14px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.35);
    padding: 14px 34px 14px 14px;
    position: relative;
    font-family: 'Barlow Semi Condensed', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: auto;
}

.toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.toast.leaving {
    opacity: 0;
    transform: translateX(20px);
}

.toast-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #000;
}

.toast-error .toast-icon {
    background: #a80808;
}

.toast-body {
    min-width: 0;
}

.toast-title {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: bold;
}

.toast-message {
    margin: 0;
    font-size: 12px;
    color: gray;
    font-family: 'Courier New', Courier, monospace;
}

.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: #999;
    font-size: 16px;
    line-height: 1;
    padding: 2px 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.toast-close:hover {
    color: #000;
}

@media (max-width: 480px) {
    #toast-container {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}