/*
 * syapp/css/notificacoes.css
 * Estilos para as notificações "toast" - CORRIGIDO.
 */

.notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    pointer-events: none; /* Permite cliques através do container */
}

.toast-notification {
    min-width: 320px;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: var(--raio-borda);
    color: var(--cor-texto-claro);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    pointer-events: all; /* Habilita cliques na própria notificação */
    opacity: 0;
    transform: translateX(120%);
    animation: slideInAndOut 5s forwards ease-in-out;
}

.toast-notification.success {
    background-color: #28a745;
    border-left: 5px solid #218838;
}

.toast-notification.error {
    background-color: #dc3545;
    border-left: 5px solid #c82333;
}

.toast-notification .icon {
    font-size: 1.5rem;
}

.toast-notification .message {
    flex: 1;
}

.toast-notification .message h4 {
    margin: 0 0 0.25rem 0;
    font-weight: bold;
}

.toast-notification .message p {
    margin: 0;
    font-size: 0.9rem;
}

/* ANIMAÇÃO ÚNICA E CORRIGIDA */
@keyframes slideInAndOut {
    0% {
        opacity: 0;
        transform: translateX(120%);
    }
    10%, 90% { /* Fica visível por 80% do tempo total (4 segundos) */
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(120%);
        display: none; /* Remove o elemento do fluxo após a animação */
    }
}
