/* =============================================================================
   1. BLINDAGEM DO MODAL — RESTAURANDO O AZUL MARINHO (#1e234d)
   Garante a identidade visual escura mesmo com interferência de scripts
   ============================================================================= */

body #comentariosModal .modal-content {
    background-color: #1e234d !important;
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 15px !important;
}

body #comentariosModal .modal-header {
    background-color: #1e234d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}

body #comentariosModal .modal-title {
    color: #FFFF00 !important; /* Amarelo Escola */
    font-weight: bold !important;
}

/* 🔥 BOTÃO DE FECHAR (X) DENTRO DO MODAL */
.btn-close-comentarios {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background-color: #ff0000;
    color: #ffff00;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
}

/* =============================================================================
   2. PADRONIZAÇÃO DO DROPDOWN DE REAÇÕES (TOZINHO MENU)
   Resolve o problema de tamanhos diferentes e desalinhamento no popup
   ============================================================================= */

.tozinho-reaction-popup {
    position: absolute;
    background: #FFECB3 !important; /* Fundo amarelo claro padrão */
    border: 2px solid #FFCD00 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    padding: 10px;
    border-radius: 12px;
    display: flex;
    gap: 12px; /* Espaçamento igual entre as opções */
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

/* 🎯 TAMANHO ÚNICO PARA TODOS OS TOZINHOS NO MENU */
.tozinho-reaction-popup img {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFEB3B;
    object-fit: cover !important; /* Impede que a imagem estique ou quebre */
    transition: transform .15s ease;
    background-color: #ffffff; /* Fundo de segurança */
}

.tozinho-reaction-popup img:hover {
    transform: scale(1.25);
    border-color: #0044ff;
}

/* =============================================================================
   3. LISTA DE COMENTÁRIOS — ORGANIZAÇÃO E ESPAÇAMENTO
   Afasta o conteúdo da mensagem do cabeçalho do perfil
   ============================================================================= */

.comentario-item {
    display: flex;
    flex-direction: column; /* Organiza nome em cima e texto embaixo */
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 12px;
}

.comentario-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.comentario-item img {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover;
    border: 2px solid #FFFF00;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

/* 🎯 AFASTA O TEXTO "oi" DO NOME DO PERFIL */
.comentario-conteudo {
    margin-left: 60px; /* Alinha horizontalmente com o início do nome */
    margin-top: 5px;   /* Cria o respiro em relação à linha do nome/data */
    color: #ffffff;
    line-height: 1.5;
    word-wrap: break-word;
}

.comentario-item strong {
    color: #FFFF00 !important;
    font-size: 1rem;
}

.comentario-item small {
    color: #a0a0a0 !important;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* =============================================================================
   4. EDITOR QUILL — VERDE SUCESSO (#009B3A)
   Sincronizado com as mensagens de feedback do sistema
   ============================================================================= */

.ql-toolbar.ql-snow {
    background-color: #009B3A !important; 
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
}

.ql-toolbar.ql-snow .ql-stroke { stroke: #ffffff !important; }
.ql-toolbar.ql-snow .ql-fill { fill: #ffffff !important; }

.ql-container.ql-snow {
    background-color: #cbdcf7 !important; /* Azul claro de digitação */
    color: #1e234d !important;
    border: none !important;
    border-radius: 0 0 8px 8px !important;
    font-size: 16px;
    min-height: 120px;
}

/* Botão Enviar Neon */
.btn-enviar-comentario {
    background-color: #FFFF00;
    color: #000080;
    border: 2px solid #000080;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 0 5px #FFFF00;
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-enviar-comentario:hover {
    background-color: #fff56a;
    box-shadow: 0 0 15px #FFFF00;
}
