/* Aba lateral para comentários */
#agdocs-comment-sidebar {
    position: fixed;
    top: 0;
    right: -20%; /* Inicialmente escondido fora da tela */
    width: 20%;
    height: 100%;
    background-color: #f9f9f9;
    border-left: 2px solid #ddd;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-in-out; /* Animação para aparecer/desaparecer */
    z-index: 1000;
}

/* Botão de mostrar comentários */
#agdocs-show-comments {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    z-index: 999;
}

/* Estilizar a lista de comentários na aba */
.agdocs-comments-list {
    list-style-type: none;
    padding: 0;
}

.agdocs-comment-list-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    background-color: #fff;
    cursor: pointer;
}

.agdocs-comment-list-item:hover {
    background-color: #f0f8ff;
}


#agdocs-close-sidebar {
    display:block;
    padding: 10px 15px;
    background-color: #aa0010;
    color: white;
    border: none;
    text-align: center;
    width: 100% !important;
    border-radius: 3px;
    cursor: pointer;
    z-index: 999;
    margin-bottom: 20px;
}

.agdocs-comment-marker {
    position: relative;
    display: inline-block;
    background-color: #f0f8ff; /* Cor de fundo da marcação */
    border: 1px solid #ddd; /* Borda da marcação */
    border-radius: 3px;
}

.agdocs-comment-marker:hover {
    background-color: #d0eaff; /* Cor de fundo ao passar o mouse */
    cursor: pointer;
}

.highlight-comment {
    background-color: #ffeb3b; /* Amarelo claro para destaque */
    border-bottom: 2px solid #f44336; /* Linha vermelha embaixo */
    position: relative;
}

.highlight-comment::after {
    content: '💬'; /* Ícone de comentário */
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #f44336; /* Cor do ícone */
}

.agdocs-comment-popup {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none; /* Inicialmente escondido */
}

.agdocs-comment-popup textarea {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

.agdocs-comment-popup button {
    margin-right: 10px;
}

.agdocs-comments-list {
    margin-top: 20px;
}

.agdocs-comment-list-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.agdocs-comment-list-item:hover {
    background-color: #f0f8ff; /* Destacar comentário ao passar o mouse */
}

.agdocs-comment-box {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.agdocs-comment-box h3 {
    margin-top: 0;
}

.agdocs-comment-box ul {
    list-style-type: none;
    padding: 0;
}


.highlight-comment {
    cursor: pointer;
}

.highlighted {
    background-color: yellow; /* Altere a cor conforme necessário */
}


.agdocs-comment-box li {
    margin-bottom: 10px;
}




.highlighted-text {
    background-color: yellow; /* Cor de fundo para simular a seleção de texto */
    position: relative;
}

.highlighted-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 0, 0.5); /* Cor de fundo semi-transparente */
    z-index: -1;
}

#agdocs-submit-comment{
    padding: 10px 15px;
    background-color: #0073aa;
    color: white;
}

#agdocs-clear-popup, .agdocs-delete-comment{
    padding: 10px 15px;
    background-color: #aa0010;
    color: white;
    
}
#agdocs-comment-popup button{
    outline:none !important;
    border:none !important;
}