/* Toast Notifications Styles */

#toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
    max-width: 28rem;
    width: 100%;
    pointer-events: none; /* Container não clicável */
}

/* Toast individual é clicável */
.toast {
    pointer-events: auto !important;
}

@media (max-width: 640px) {
    #toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Toast individual é clicável */
.toast {
    pointer-events: auto !important;
}

.toast {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-out;
}

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

/* Botão de fechar sempre clicável */
.toast button {
    pointer-events: auto !important;
    cursor: pointer;
    z-index: 10;
}

.toast button:hover {
    cursor: pointer;
}

/* Animation for entrance */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animation for exit */
@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Progress bar animation (optional) */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

/* Hover pause effect */
.toast:hover .toast-progress {
    animation-play-state: paused;
}
