/* =============================================== */
/* === ESTILOS PARA O TOAST DE FEEDBACK (CSS PURO) === */
/* =============================================== */

/* Container que segura os toasts */
#feedbackContainer {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 450px;
    z-index: 9999;
    pointer-events: none; /* Clicável através do container */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Estilo base para cada notificação (toast) */
.feedback-toast {
    box-sizing: border-box; /* Garante que padding não afete a largura */
    width: 100%;
    padding: 1rem; /* p-4 */
    margin-bottom: 1rem; /* mb-4 */
    border-radius: 12px; /* rounded-xl */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-xl */
    color: #ffffff; /* text-white */
    text-align: center;
    font-weight: 500; /* font-medium */
    
    /* Layout flex para alinhar ícone e texto */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem; /* gap-3 */

    /* Permite cliques no toast individual */
    pointer-events: auto; 

    /* Animações */
    opacity: 0;
    animation: slideIn 0.3s ease-out forwards, fadeOut 0.5s ease-in 5s forwards;
}

/* Estilos específicos para sucesso e erro */
.feedback-toast.success {
    background-color: #28a745; /* bg-green-500 */
}

.feedback-toast.error {
    background-color: #dc3545; /* bg-red-600 */
}

/* Ícone dentro do toast */
.feedback-toast .fas {
    font-size: 1.25rem; /* text-lg */
}

/* Animações */
@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}