.mensagem-componente {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    min-width: 320px;
    max-width: 90vw;
    background: linear-gradient(90deg, #fff 80%, #f7f7fa 100%);
    color: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13), 0 1.5px 6px #e5393530;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    padding: 1rem 1.5rem 1rem 1rem;
    z-index: 20001;
    font-size: 1.1rem;
    opacity: 1;
    transition: opacity 0.4s, transform 0.4s;
    gap: 0.8rem;
}
.mensagem-oculta {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateX(-50%) scale(0.95) !important;
    transition: opacity 0.4s, transform 0.4s !important;
}


.mensagem-icone {
    font-size: 1.6em;
    margin-right: 0.5em;
    color: #667eea;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 0 #fff5);
}
.mensagem-texto {
    flex: 1;
    word-break: break-word;
}
.mensagem-fechar {
    background: none;
    border: none;
    color: #888;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 0.5em;
    transition: color 0.2s;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mensagem-fechar:hover {
    color: #e53935;
    background: #f7eaea;
}
@media (max-width: 480px) {
    .mensagem-componente {
        min-width: 180px;
        font-size: 0.98rem;
        padding: 0.7rem 1rem 0.7rem 0.7rem;
    }
    .mensagem-icone {
        font-size: 1.2em;
    }
}

/* Modal de confirmação customizado */
.confirmacao-componente {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.25);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.confirmacao-oculta {
    opacity: 0;
    pointer-events: none;
}
.confirmacao-box {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 32px #0002, 0 1.5px 6px #e5393530;
    padding: 2.2rem 2.5rem 1.5rem 2.5rem;
    min-width: 320px;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    animation: confirmacaoPop 0.25s cubic-bezier(.7,-0.2,.5,1.5);
}
@keyframes confirmacaoPop {
    0% { transform: scale(0.85); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.confirmacao-icone {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 0.5rem;
}
.confirmacao-texto {
    font-size: 1.15rem;
    color: #232326;
    text-align: center;
    margin-bottom: 0.5rem;
}
.confirmacao-botoes {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}
.btn-confirmar {
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6em 1.5em;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-confirmar:hover {
    background: #218838;
}
.btn-cancelar {
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6em 1.5em;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cancelar:hover {
    background: #5a6268;
}
@media (max-width: 480px) {
    .confirmacao-box {
        min-width: 90vw;
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
} 