button, .btn, [role="button"] {
    user-select: none; /* 🔥 evita cursor de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.swal2-popup button {
    caret-color: transparent !important;
}

.container-content {
    max-width: 1360px;
    margin: 0 auto;
    padding: 20px;
}

@media (max-width: 576px) {
    .container-content {
        padding: 20px 8px;
    }
}

.full-width-wrapper {
}

/* ===========================
   Overlay LGPD
=========================== */
#lgpd-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* fundo escuro semi-transparente */
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: auto;
    padding: 20px;
}

/* ===========================
   Modal inicial
=========================== */
#lgpd-modal {
    background: #e9ecef; /* cinza claro moderno */
    padding: 20px 30px;
    max-width: 700px;
    width: 100%;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ===========================
   Modal de Termos / Privacidade
=========================== */
#terms-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#lgpd-overlay .lgpd-modal-content {
    background: #e9ecef; /* cinza claro moderno */
    color: #222; /* texto escuro */
    padding: 25px 35px;
    max-width: 900px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    text-align: left;
    margin: 0 auto;
}

/* Corpo com scroll interno */
#lgpd-overlay .lgpd-modal-body {
    max-height: 500px;
    overflow-y: auto;
    margin: 15px 0;
    padding-right: 20px; /* espaço à direita para scrollbar */
    scroll-behavior: smooth;
}

/* Texto justificado e espaçamento confortável */
#lgpd-overlay .lgpd-modal-body p,
#lgpd-overlay .lgpd-modal-body li {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 12px;
}

/* Links dentro do modal */
#lgpd-overlay a {
    color: #007bff;
    text-decoration: underline;
}

/* ===========================
   Botões
=========================== */
#lgpd-overlay .lgpd-btn {
    padding: 8px 18px;
    font-size: 0.95rem;
    cursor: pointer;
}

/* Botão Aceito centralizado */
#lgpd-overlay .text-center .btn {
    display: inline-block;
}

/* Botão desabilitado */
#lgpd-overlay .lgpd-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.dt-paging {
    padding-top: 10px;
}

/* ===========================
   Responsividade
=========================== */
@media (max-width: 768px) {
    #lgpd-overlay .lgpd-modal-content {
        max-width: 95%;
        padding: 20px 25px;
    }

    #lgpd-overlay .lgpd-modal-body {
        max-height: 400px;
    }
}

a {
    color: #0d6efd; /* azul padrão Bootstrap/AdminLTE */
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus {
    color: #0a58ca;
    text-decoration: underline;
}

a:active {
    color: #084298;
}

.link-autor,
.link-autor:visited {
    color: #2c3e50;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: all 0.2s ease;
}

.link-autor:hover {
    color: #0d6efd;
    border-bottom: 1px dashed #0d6efd;
}

.primary-info {
    color: rgb(32, 106, 179);
}

.card-header {
    cursor: pointer;
}

.card-header {
    cursor: pointer;
    transition: background 0.2s ease;
}

.card-header:hover {
    background: rgba(0, 0, 0, 0.05);
}

.wordcloud-wrapper {
    text-align: center;
}

.wordcloud-box {
    width: 100%;
    max-width: 800px;
    height: 400px;
    margin: 0 auto;
}

.capa-card {
    transition: all 0.2s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.capa-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.3);
}

.card-responsive {
    width: 100%; /* mobile: 100% */
    max-width: 83%; /* desktop: até 80% */
}

@media (max-width: 992px) {
    .card-responsive {
        max-width: 100%; /* telas menores: 100% */
    }
}


.img-thumbnail {
    max-width: 200px !important;
    max-height: 200px !important;
    border: none !important;
}

/* Style the Image Used to Trigger the Modal */
#myImg {
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    margin-left: 12px;
}

#myImg:hover {
    opacity: 0.7;
}

.descricao-conteudo {
    line-height: 1.7;
    font-size: 0.95rem;
    max-width: 900px; /* limite no desktop */

}

.descricao-conteudo p {
    margin-bottom: 0.75rem;
}

.descricao-conteudo img {
    max-width: 100%;
    height: auto;
}

.descricao-conteudo h1,
.descricao-conteudo h2,
.descricao-conteudo h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.nav-pills .nav-link.active {
    background-color: #0d6efd;
    color: #fff;
}

.nav-pills .nav-link {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
}


.autor-container {
    position: relative;
}

.capa-sin {
    float: right;
    width: 180px;
    margin-left: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
}

.autor-texto {
    text-align: justify;
}

/* Responsivo */
@media (max-width: 768px) {
    .autor-foto {
        float: none;
        display: block;
        margin: 0 auto 15px auto;
    }
}

/* ===========================
   Capa/foto flutuante responsiva
   Aplica-se a documentos/show, autores/show, editoras/show
   (todos usam .image-parent com img#myImg ou placeholder .img-thumbnail).
   No desktop mantém 200px float-end. Em telas menores reduz a largura
   e, no smartphone, empilha acima do título para garantir legibilidade.
=========================== */
.image-parent {
    overflow: visible;
}

@media (max-width: 767.98px) {
    .image-parent .img-thumbnail,
    .image-parent #myImg {
        max-width: 150px !important;
        max-height: 225px !important;
    }
    .image-parent #myImg {
        margin-left: 10px;
    }
}

@media (max-width: 575.98px) {
    .image-parent {
        text-align: center;
        margin-bottom: .75rem;
    }
    .image-parent .img-thumbnail,
    .image-parent #myImg {
        float: none !important;
        display: inline-block !important;
        margin: 0 auto .75rem !important;
        max-width: 130px !important;
        max-height: 195px !important;
    }
    /* placeholder com aspect-ratio 2/3 vinha com fonte do ícone fixa
       em 4.5rem; reduzimos para acompanhar a capa menor */
    .image-parent .img-thumbnail .bi-book {
        font-size: 3rem !important;
    }
}

@media (max-width: 576px) {
    .capa-sin {
        display: none;
    }
}

/**** Midias ****/
#midiaFrame {
    width: 100%;
    border: none;
    height: 150vh;
}

/*** Comentarios **/
/*** =========================
    💬 COMENTÁRIOS - BASE
========================= **/

/* Remove bullets */
#comment-list,
#comment-list ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Espaçamento entre comentários principais */
#comment-list > li {
    margin-bottom: 20px;
}

/* Respostas (threads) */
.child-comments {
    margin-top: 10px;
    margin-left: 20px;
    padding-left: 15px;
    border-left: 2px solid #eee;
}

/* Espaço entre respostas */
.child-comments > li {
    margin-bottom: 12px;
}

/* Wrapper */
.comment-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Avatar */
.user-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

/* =========================
   🗨 BALÃO DO COMENTÁRIO
========================= */

.comentario-balao {
    position: relative;
    flex: 1;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
}

/* Conteúdo */
.comment-header {
    font-size: 0.9rem;
}

.content {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* =========================
   🔘 BOTÕES (LINK STYLE)
========================= */

.btn-link-custom {
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    font-size: 0.85rem;
    cursor: pointer;

    display: inline-flex;
    align-items: center;
    gap: 4px;

    color: #6b7280;
}

/* Hover padrão */
.btn-link-custom:hover {
    text-decoration: underline;
}

/* =========================
   👍 VOTAR
========================= */

.btn-votar {
    color: #6b7280;
}

/* Hover */
.btn-votar:hover {
    color: #0d6efd;
}

/* Já votou */
.btn-votar.ativo {
    color: #0d6efd;
    font-weight: 500;
}

/* =========================
   🚩 DENUNCIAR
========================= */

.btn-denunciar {
    color: #6b7280;
}

.btn-denunciar:hover {
    color: #dc3545;
}

/* =========================
   🗑 EXCLUIR
========================= */

.btn-excluir {
    color: #6b7280;
}

.btn-excluir:hover {
    color: #dc3545;
}

/* =========================
   ✏ ÁREA DE NOVO COMENTÁRIO
========================= */

.textarea-balao {
    position: relative;
}

.textarea-comentario {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    resize: none;
    min-height: 60px;
    width: 100%;
}

/* Foco */
.textarea-comentario:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.1);
}

/* Ações do form */
.comentario-actions {
    text-align: right;
    margin-top: 5px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    display: block;
    flex-shrink: 0;
}

/* CANCELAR */
.btn-cancelar {
    background: none;
    border: none;
    padding: 0;
}

.btn-cancelar:hover {
    color: #dc3545;
    text-decoration: underline;
}

.btn-votar.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

.separator {
    pointer-events: none; /* 🔥 não recebe clique */
    user-select: none; /* 🔥 não seleciona texto */
    cursor: default; /* 🔥 cursor normal */
    opacity: 0.6; /* opcional: mais sutil */
}
