/* NOTIFICAÇÕES (TOASTS) - (DESKTOP) */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    background-color: #fff;
    color: #333;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 300px;
    max-width: 400px;
    
    animation: slideInRight 0.3s ease forwards;
    border-left: 5px solid #ccc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.hiding {
    opacity: 0;
    transform: translateX(100%);
}

.toast.success { border-left-color: #28a745; }
.toast.error { border-left-color: #dc3545; }
.toast.warning { border-left-color: #ffc107; }
.toast.info { border-left-color: #17a2b8; }

.toast-close {
    background: none;
    border: none;
    color: #999;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    line-height: 1;
    flex-shrink: 0;
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 64rem) { /* < 1024px (Tablets e Mobile) */
    .toast-container {
        top: 15px;
        right: 15px;
        left: auto;
        align-items: stretch;
    }

    .toast {
        min-width: 220px;
        max-width: 85vw;
        width: auto;
        padding: 10px 15px;
        font-size: 0.8rem;
        animation: slideInRight 0.3s ease forwards;
    }

    .toast.hiding {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ERROS DE FORMULÁRIO (INLINE) */

.errorlist {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 0;
}

.mensagem-erro {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

.input-erro {
    border-color: #dc3545 !important;
    background-color: #fff8f8 !important;
}

.input-sucesso {
    border-color: #28a745 !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}