#overlay-mensagem {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 8, 20, 0.78);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2100;
    pointer-events: none;
}

    #overlay-mensagem.visivel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

#caixa-mensagem {
    background-color: #0f172a;
    color: #f8fafc;
    padding: 25px 40px;
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    max-width: 85%;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#overlay-mensagem.visivel #caixa-mensagem {
    transform: scale(1);
}

/* Estados modernizados em Dark Mode para combinar com Azul & Dourado */
#caixa-mensagem.sucesso {
    background-color: #081c2e;
    color: #38bdf8;
    border: 1px solid #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

#caixa-mensagem.alerta {
    background-color: #241c05;
    color: #facc15;
    border: 1px solid #eab308;
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.3);
}

#caixa-mensagem.erro {
    background-color: #260a12;
    color: #fda4af;
    border: 1px solid #f43f5e;
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.3);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes tela-treme {
    10%, 90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%, 80% {
        transform: translate3d(2px, 0, 0);
    }

    30%, 50%, 70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%, 60% {
        transform: translate3d(4px, 0, 0);
    }
}

.tela-treme-animacao {
    animation: tela-treme 0.6s cubic-bezier(.36,.07,.19,.97) both;
}
