/* Container principal para sobrepor tudo */
.container-erros {
    position: fixed; /* Fixa o alerta na tela */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999; /* Garante que ficará sobre tudo */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Permite que apenas o alerta receba clique */
}

/* Estilo padrão do alerta */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    margin: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    position: relative;
    pointer-events: auto; /* Permite interação com o alerta */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    word-wrap: break-word; /* Quebra texto longo */
}

/* Alerta de sucesso */
.alert-success {
    background-color: #28a745;
    color: #fff;
    border-left: 5px solid #218838;
}

/* Alerta de erro */
.alert-error {
    background-color: #dc3545;
    color: #fff;
    border-left: 5px solid #c82333;
}

/* Ícones */
.icone-alerta {
    width: 40px;
    height: 40px;
}

/* Título */
.titulo-alerta {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    margin-right: 30px;
}

/* Botão de fechar */
.close-alert {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
}