/* ==========================================================
   PDF360 — Folha de Estilos do Leitor Profissional
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-aplicativo);
    color: var(--texto-principal);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}

.layout-leitor {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* BARRA DE FERRAMENTAS PRINCIPAL (DUAS LINHAS ESTRUTURADAS) */
.barra-ferramentas {
    background: var(--bg-ferramentas);
    border-bottom: 1px solid var(--borda-suave);
    display: flex;
    flex-direction: column;
    padding: 6px 18px;
    z-index: 100;
    gap: 6px;
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.linha-ferramentas-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 40px;
    border-bottom: none;
    padding-bottom: 0;
}

body.documento-aberto .linha-ferramentas-topo {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 4px;
}

.linha-ferramentas-leitura {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 38px;
    animation: surgirFade 0.2s ease-out;
}

body.documento-aberto .linha-ferramentas-leitura {
    display: flex;
}

.bloco-topo-esquerda,
.bloco-topo-direita,
.bloco-leitura-esquerda,
.bloco-leitura-centro,
.bloco-leitura-direita {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bloco-leitura-centro {
    position: relative;
}

.grupo-navegacao-paginas,
.grupo-zoom-controles {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-abrir-biblioteca-nav {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.25)) !important;
    border: 1px solid rgba(139, 92, 246, 0.5) !important;
    color: #e0e7ff !important;
    font-weight: 700 !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-abrir-biblioteca-nav:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.45)) !important;
    border-color: #818cf8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.icone-bib {
    font-size: 14px;
}

.texto-btn-bib {
    font-size: 12.5px;
    letter-spacing: 0.2px;
}

.badge-total-aulas-nav {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a5b4fc;
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 2px;
}

.btn-ocultar-topo-acao {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
}

.btn-ocultar-topo-acao:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.badge-documento-atual {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--borda-suave);
    border-radius: 8px;
    padding: 4px 10px;
    max-width: 420px;
}

.icone-doc-atual {
    font-size: 14px;
}

.rotulo-pag-inline {
    font-size: 11px;
    color: var(--texto-suave);
    font-weight: 600;
    margin-right: 2px;
}

/* OCULTAÇÃO DA BARRA SUPERIOR (MODO FOCO) */
.topo-oculto #barra-ferramentas-principal,
.barras-ocultas #barra-ferramentas-principal {
    margin-top: -100px;
    opacity: 0;
    pointer-events: none;
}

.topo-oculto .area-trabalho-principal,
.barras-ocultas .area-trabalho-principal {
    height: 100vh !important;
}

.btn-revelar-topo-flutuante {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #f8fafc;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-revelar-topo-flutuante:hover {
    background: rgba(30, 41, 59, 0.98);
    border-color: #8b5cf6;
    transform: translateX(-50%) translateY(2px) scale(1.03);
}

.marca-leitor {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.titulo-marca {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.titulo-marca span {
    color: var(--destaque-claro);
}

.titulo-documento {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--texto-secundario);
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.divisor-vertical {
    width: 1px;
    height: 20px;
    background: var(--borda-suave);
    margin: 0 4px;
}

.divisor-vertical-pequeno {
    width: 1px;
    height: 16px;
    background: var(--borda-suave);
}

/* Botões */
.btn-ferramenta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--texto-secundario);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.btn-ferramenta:hover {
    background: var(--bg-hover);
    color: var(--texto-principal);
}

.btn-ferramenta.active, .btn-ferramenta:active {
    background: var(--bg-ativo);
    color: var(--texto-principal);
    border-color: var(--borda-hover);
}

.btn-ferramenta.apenas-icone {
    padding: 6px 8px;
}

.btn-abrir {
    background: var(--gradiente-destaque);
    color: white !important;
    font-weight: 600;
    border-radius: 6px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

.btn-abrir:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.seletor-ferramenta {
    background: var(--bg-hover);
    border: 1px solid var(--borda-suave);
    color: var(--texto-principal);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
}

/* Controle de Página */
.controle-pagina {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-hover);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid var(--borda-suave);
}

.controle-pagina input {
    width: 38px;
    background: transparent;
    border: none;
    color: var(--texto-principal);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    outline: none;
}

.barra-divisoria {
    color: var(--texto-suave);
}

#exibicao-total-paginas {
    color: var(--texto-suave);
    font-size: 12px;
}

/* Ferramentas de Marcação Rápida */
.ferramentas-rapidas-anotacao {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-hover);
    padding: 2px 4px;
    border-radius: 6px;
    border: 1px solid var(--borda-suave);
}

.ponto-cor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.ponto-cor.amarelo { background: #facc15; box-shadow: 0 0 6px rgba(250, 204, 21, 0.5); }
.ponto-cor.verde { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.5); }
.ponto-cor.azul { background: #3b82f6; box-shadow: 0 0 6px rgba(59, 130, 246, 0.5); }
.ponto-cor.rosa { background: #ec4899; box-shadow: 0 0 6px rgba(236, 72, 153, 0.5); }

/* Pílula de Sincronização em Nuvem */
.pilula-sincronizacao {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-hover);
    border: 1px solid var(--borda-suave);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    color: var(--texto-suave);
}

.ponto-sinc {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}

.pilula-sincronizacao.sincronizando .ponto-sinc {
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
    animation: pulsar 1s infinite alternate;
}

.pilula-sincronizacao.offline .ponto-sinc {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

@keyframes pulsar {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* BARRA DE BUSCA */
.barra-busca-suspensa {
    background: var(--bg-ferramentas);
    border-bottom: 1px solid var(--borda-suave);
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 90;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.busca-interna {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 600px;
}

.busca-interna input {
    flex: 1;
    background: var(--bg-aplicativo);
    border: 1px solid var(--borda-suave);
    color: var(--texto-principal);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    outline: none;
}

.contagem-busca {
    font-size: 11px;
    color: var(--texto-suave);
}

/* ÁREA DE TRABALHO & VISUALIZADOR EM LARGURA MÁXIMA */
.area-trabalho-principal {
    display: flex;
    flex: 1;
    width: 100vw;
    height: calc(100vh - 54px);
    overflow: hidden;
    position: relative;
    transition: height 0.28s ease;
}

body.documento-aberto .area-trabalho-principal {
    height: calc(100vh - 94px);
}

/* MODAL DA BIBLIOTECA */
.modal-biblioteca-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 12, 24, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    animation: surgirOverlayBib 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes surgirOverlayBib {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-biblioteca-card {
    position: relative;
    width: 100%;
    max-width: 840px;
    height: 88vh;
    max-height: 840px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: surgirCardBib 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes surgirCardBib {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.topo-modal-biblioteca {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(30, 41, 59, 0.75);
    border-bottom: 1px solid var(--borda-suave);
    gap: 12px;
}

.titulo-area-modal-bib {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icone-topo-modal-bib {
    font-size: 24px;
    filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.4));
}

.textos-topo-modal-bib h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.2;
}

.subtitulo-modal-bib {
    font-size: 11px;
    color: #94a3b8;
}

.btn-fechar-modal-biblioteca {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.btn-fechar-modal-biblioteca:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.08);
}

.corpo-modal-biblioteca {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.abas-barra-lateral {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 3px;
    gap: 4px;
}

.aba-lateral {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--texto-secundario);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.aba-lateral:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.aba-lateral.active {
    color: #ffffff;
    background: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.badge-aba {
    background: rgba(0, 0, 0, 0.35);
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.painel-lateral {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.painel-lateral.active {
    display: block;
}

/* Sumário */
.arvore-sumario {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-sumario {
    padding: 6px 10px;
    border-radius: 6px;
    color: var(--texto-secundario);
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: background 0.15s;
}

.item-sumario:hover {
    background: var(--bg-hover);
    color: var(--texto-principal);
}

/* Anotações na Barra Lateral */
.topo-painel-anotacoes {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.lista-anotacoes-lateral {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-anotacao-lateral {
    background: var(--bg-cartao);
    border: 1px solid var(--borda-suave);
    border-left: 3px solid var(--destaque-primario);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    transition: transform 0.15s;
}

.card-anotacao-lateral:hover {
    transform: translateX(2px);
    border-color: var(--borda-hover);
}

.card-anotacao-lateral.cor-amarelo { border-left-color: #facc15; }
.card-anotacao-lateral.cor-verde { border-left-color: #22c55e; }
.card-anotacao-lateral.cor-azul { border-left-color: #3b82f6; }
.card-anotacao-lateral.cor-rosa { border-left-color: #ec4899; }

.cabecalho-card-anot {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--texto-suave);
}

.texto-card-anot {
    font-size: 12px;
    font-style: italic;
    color: var(--texto-principal);
    line-height: 1.4;
}

.comentario-card-anot {
    background: var(--bg-aplicativo);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--texto-secundario);
}

.dica-vazio {
    color: var(--texto-suave);
    font-size: 12px;
    text-align: center;
    padding: 40px 20px;
    line-height: 1.5;
}

/* Miniaturas */
.grade-miniaturas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.item-miniatura {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px;
    transition: background 0.15s;
}

.item-miniatura:hover, .item-miniatura.active {
    background: var(--bg-hover);
}

.item-miniatura canvas {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.numero-pagina-miniatura {
    font-size: 11px;
    color: var(--texto-suave);
}

/* VISUALIZADOR & PÁGINAS */
.envoltura-visualizador {
    flex: 1;
    width: 100%;
    background: var(--bg-visualizador);
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

.container-visualizador-pdf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 24px 0;
}

.container-pagina-pdf {
    position: relative;
    box-shadow: 0 6px 20px var(--sombra-pagina);
    background: #ffffff;
    margin-bottom: 8px;
    border-radius: 2px;
    isolation: isolate;
}

.canvas-pagina-pdf {
    display: block;
    position: relative;
    z-index: 1;
}

/* TextLayer (Gerenciado pelo PDF.js com suporte a seleção de texto) */
.textLayer {
    position: absolute;
    text-align: initial;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 1;
    line-height: 1.0;
    user-select: text;
    -webkit-user-select: text;
    z-index: 4;
}

.textLayer ::selection {
    background: rgba(139, 92, 246, 0.35);
}

/* Camada SVG de Anotações e Marca-Texto */
.camada-svg-anotacoes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}


/* Camada de Destaques: o próprio SVG multiplica os pixels diretamente contra o canvas do PDF */
.camada-svg-destaques {
    mix-blend-mode: multiply !important;
    z-index: 2;
}

/* Camada de Linhas (Sublinhado e Tachado): blend normal */
.camada-svg-linhas {
    mix-blend-mode: normal !important;
    z-index: 3;
}

/* Destaque (Marca-Texto) - Preserva 100% da cor original da letra do PDF aplicando apenas fundo suave */
.retangulo-destaque {
    pointer-events: auto;
    cursor: pointer;
    opacity: 1 !important;
    transition: filter 0.15s;
}

.retangulo-destaque:hover {
    filter: brightness(0.92);
}

.retangulo-destaque.cor-amarelo { fill: #fef08a; }
.retangulo-destaque.cor-verde   { fill: #bbf7d0; }
.retangulo-destaque.cor-azul    { fill: #bfdbfe; }
.retangulo-destaque.cor-rosa    { fill: #fbcfe8; }
.retangulo-destaque.cor-vermelho{ fill: #fecaca; }



/* Sublinhado (Linha colorida na base do texto) */
.linha-sublinhado {
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}
.linha-sublinhado:hover {
    opacity: 0.85;
}
.linha-sublinhado.cor-amarelo { fill: #eab308; }
.linha-sublinhado.cor-verde   { fill: #16a34a; }
.linha-sublinhado.cor-azul    { fill: #2563eb; }
.linha-sublinhado.cor-rosa    { fill: #db2777; }
.linha-sublinhado.cor-vermelho{ fill: #dc2626; }

/* Tachado (Linha riscando no centro do texto) */
.linha-tachado {
    pointer-events: auto;
    cursor: pointer;
    transition: opacity 0.15s;
}
.linha-tachado:hover {
    opacity: 0.85;
}
.linha-tachado.cor-amarelo { fill: #ca8a04; }
.linha-tachado.cor-verde   { fill: #15803d; }
.linha-tachado.cor-azul    { fill: #1d4ed8; }
.linha-tachado.cor-rosa    { fill: #be185d; }
.linha-tachado.cor-vermelho{ fill: #b91c1c; }


/* Dropzone / Dashboard Hub Wrapper */
.zona-soltar-vazia {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.caixa-soltar {
    background: var(--bg-lateral);
    border: 2px dashed var(--borda-hover);
    border-radius: 20px;
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 680px;
    width: 90%;
    margin: 40px auto;
}

.icone-soltar {
    color: var(--destaque-claro);
    margin-bottom: 8px;
}

.caixa-soltar h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.caixa-soltar p {
    color: var(--texto-suave);
    font-size: 0.95rem;
}

.recursos-destaque {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--texto-secundario);
    margin-top: 12px;
}

/* BARRA FLUTUANTE DE ANOTAÇÃO */
.barra-anotacao-flutuante {
    position: absolute;
    background: var(--bg-ferramentas);
    border: 1px solid var(--borda-hover);
    border-radius: 24px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 200;
    animation: surgir 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes surgir {
    from { opacity: 0; transform: scale(0.9) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.grupo-seletor-cores {
    display: flex;
    align-items: center;
    gap: 6px;
}

.circulo-cor {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s;
}

.circulo-cor:hover {
    transform: scale(1.2);
}

.circulo-cor.amarelo { background: #facc15; }
.circulo-cor.verde { background: #22c55e; }
.circulo-cor.azul { background: #3b82f6; }
.circulo-cor.rosa { background: #ec4899; }

.btn-flutuante {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--texto-secundario);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.15s;
}

.btn-flutuante:hover {
    background: var(--bg-hover);
    color: var(--texto-principal);
}

/* MODAL DE NOTA */
.modal-nota {
    position: absolute;
    width: 300px;
    background: var(--bg-ferramentas);
    border: 1px solid var(--borda-hover);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    z-index: 250;
    animation: surgir 0.2s ease;
}

.topo-modal-nota {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topo-modal-nota h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--texto-principal);
}

.btn-fechar {
    background: transparent;
    border: none;
    color: var(--texto-suave);
    cursor: pointer;
    font-size: 12px;
}

.modal-nota textarea {
    width: 100%;
    height: 90px;
    background: var(--bg-aplicativo);
    border: 1px solid var(--borda-suave);
    border-radius: 6px;
    color: var(--texto-principal);
    font-family: inherit;
    font-size: 12px;
    padding: 8px;
    resize: none;
    outline: none;
}

.modal-nota textarea:focus {
    border-color: var(--destaque-primario);
}

.acoes-modal-nota {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* TOAST DE RETOMADA */
.toast-retomada {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-ferramentas);
    border: 1px solid var(--destaque-primario);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 300;
    animation: surgirToast 0.3s ease;
}

.icone-toast {
    font-size: 20px;
}

.conteudo-toast {
    display: flex;
    flex-direction: column;
}

.conteudo-toast strong {
    font-size: 12px;
    color: var(--texto-principal);
}

.conteudo-toast span {
    font-size: 11px;
    color: var(--destaque-claro);
}

@keyframes surgirToast {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botões Auxiliares */
.botao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.botao-primario {
    background: var(--gradiente-destaque);
    color: white;
}

.botao-contorno {
    background: var(--bg-hover);
    border: 1px solid var(--borda-suave);
    color: var(--texto-principal);
}

.botao-sm {
    padding: 4px 8px;
    font-size: 11px;
}

.botao-xs {
    padding: 3px 6px;
    font-size: 10px;
}

/* SELETOR DE ESPAÇO DE ESTUDO (CONCURSOS) */
.container-seletor-espaco {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-ativo);
    border: 1px solid var(--borda-suave);
    border-radius: 8px;
    padding: 2px 4px;
}

.seletor-espaco {
    background: transparent;
    border: none;
    color: var(--destaque-claro);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    outline: none;
    padding: 2px 4px;
    max-width: 160px;
}

.seletor-espaco option {
    background: var(--bg-lateral);
    color: var(--texto-principal);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.btn-novo-espaco-inline {
    background: var(--destaque-primario);
    color: white;
    border: none;
    border-radius: 4px;
    width: 18px;
    height: 18px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.15s;
}

.btn-novo-espaco-inline:hover {
    opacity: 0.85;
}

/* TOPO DA BIBLIOTECA LATERAL */
.topo-painel-biblioteca {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.linha-topo-bib {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rotulo-bib {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--destaque-claro);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.busca-aulas-box input {
    width: 100%;
    background: var(--bg-aplicativo);
    border: 1px solid var(--borda-suave);
    border-radius: 6px;
    color: var(--texto-principal);
    font-size: 11px;
    padding: 6px 10px;
    outline: none;
    transition: border-color 0.15s;
}

.busca-aulas-box input:focus {
    border-color: var(--destaque-primario);
}

/* ÁRVORE DE DIRETÓRIOS & AULAS */
.container-arvore-biblioteca {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.estado-vazio-biblioteca {
    text-align: center;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icone-pasta-vazia {
    font-size: 32px;
}

.estado-vazio-biblioteca h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--texto-principal);
}

.estado-vazio-biblioteca p {
    font-size: 11px;
    color: var(--texto-suave);
    line-height: 1.4;
}

/* BARRA DE AÇÕES DA ÁRVORE */
.barra-acoes-arvore {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    background: var(--bg-aplicativo);
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid var(--borda-suave);
}

.info-total-aulas {
    font-size: 11px;
    font-weight: 600;
    color: var(--texto-secundario);
}

.botoes-arvore-expandir {
    display: flex;
    align-items: center;
    gap: 6px;
}

.link-acao {
    background: none;
    border: none;
    color: var(--destaque-claro);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.link-acao:hover {
    text-decoration: underline;
}

.divisor-ponto {
    color: var(--texto-suave);
    font-size: 10px;
}

.arvore-pastas-root {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-pasta-arvore {
    user-select: none;
}

.linha-pasta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    color: var(--texto-principal);
    transition: background 0.15s;
}

.linha-pasta:hover {
    background: var(--bg-hover);
}

.seta-expandir {
    font-size: 10px;
    color: var(--texto-suave);
    width: 10px;
    display: inline-block;
}

.icone-pasta {
    font-size: 13px;
}

.nome-pasta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.badge-qtd-pasta {
    background: var(--bg-aplicativo);
    color: var(--texto-suave);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 10px;
    border: 1px solid var(--borda-suave);
}

.conteudo-sub-pasta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-arquivo-arvore {
    padding: 4px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.item-arquivo-arvore:hover {
    background: var(--bg-hover);
    transform: translateX(2px);
}

.linha-arquivo {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.icone-arquivo {
    font-size: 12px;
    margin-top: 1px;
}

.detalhes-arquivo-arvore {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.nome-arquivo {
    font-size: 11px;
    font-weight: 500;
    color: var(--texto-principal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badges-arquivo-arvore {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.badge-prog-aula {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

.badge-anot-aula {
    background: rgba(250, 204, 21, 0.15);
    color: #facc15;
    border: 1px solid rgba(250, 204, 21, 0.3);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
}

/* HERO BUTTONS */
.grupo-botoes-hero {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 320px;
}

/* MODAL DE ESPAÇO DE ESTUDO */
.modal-espaco {
    width: 360px;
}

.corpo-modal-espaco {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

.campo-rotulo {
    font-size: 11px;
    font-weight: 600;
    color: var(--texto-suave);
}

.input-modal, .select-modal {
    background: var(--bg-aplicativo);
    border: 1px solid var(--borda-suave);
    border-radius: 6px;
    color: var(--texto-principal);
    font-size: 12px;
    padding: 8px 10px;
    outline: none;
    transition: border-color 0.15s;
}

.input-modal:focus, .select-modal:focus {
    border-color: var(--destaque-primario);
}

.select-modal option {
    background: var(--bg-lateral);
    color: var(--texto-principal);
}

/* BOTÃO DE USUÁRIO & LOGIN NO HEADER */
.posicao-relativa {
    position: relative;
}

.btn-usuario-nav {
    background: var(--bg-ativo);
    border: 1px solid var(--borda-suave);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--texto-principal);
}

.btn-usuario-nav.logado {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.icone-user {
    font-size: 12px;
}

.menu-dropdown-usuario {
    position: absolute;
    top: 110%;
    right: 0;
    background: var(--bg-lateral);
    border: 1px solid var(--borda-suave);
    border-radius: 8px;
    box-shadow: var(--sombra-card);
    padding: 6px;
    min-width: 140px;
    z-index: 1000;
}

.item-menu-drop {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--texto-principal);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}

.item-menu-drop:hover {
    background: var(--bg-hover);
    color: #ef4444;
}

/* MODAL DE AUTENTICAÇÃO */
.modal-auth {
    width: 340px;
}

.abas-auth {
    display: flex;
    gap: 4px;
    background: var(--bg-aplicativo);
    padding: 3px;
    border-radius: 6px;
    margin: 12px 0 8px;
}

.aba-auth {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--texto-suave);
    font-size: 11px;
    font-weight: 600;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.aba-auth.active {
    background: var(--bg-lateral);
    color: var(--texto-principal);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.form-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.msg-erro-auth {
    font-size: 11px;
    color: #ef4444;
    text-align: center;
    min-height: 14px;
}

.w-100 {
    width: 100%;
}

.mt-2 {
    margin-top: 8px;
}

/* BOTÃO DE DISPOSITIVOS NO HEADER */
.btn-dispositivos-header {
    background: var(--bg-ativo);
    border: 1px solid var(--borda-suave);
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--texto-secundario);
    transition: all 0.15s;
}

.btn-dispositivos-header:hover {
    color: var(--destaque-claro);
    border-color: var(--destaque-primario);
}

/* MODAL DE DISPOSITIVOS */
.modal-disp {
    width: 380px;
}

.corpo-modal-disp {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.meu-disp-config {
    background: var(--bg-aplicativo);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--borda-suave);
}

.linha-input-btn {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.linha-input-btn input {
    flex: 1;
}

.lista-dispositivos-conectados {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
}

.card-dispositivo {
    background: var(--bg-aplicativo);
    border: 1px solid var(--borda-suave);
    border-radius: 6px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-dispositivo.este-aparelho {
    border-color: var(--destaque-primario);
    background: rgba(99, 102, 241, 0.08);
}

.linha-disp-topo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.icone-tipo-disp {
    font-size: 18px;
    margin-top: 2px;
}

.info-disp-texto {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.info-disp-texto strong {
    font-size: 12px;
    color: var(--texto-principal);
}

.tag-este-disp {
    font-size: 10px;
    color: var(--destaque-claro);
    font-weight: normal;
}

.sub-disp {
    font-size: 10px;
    color: var(--texto-suave);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.linha-disp-data {
    font-size: 9px;
    color: var(--texto-suave);
    text-align: right;
}

/* ALERTA DE VÍNCULO DE NUVEM NA BARRA LATERAL */
.alerta-vinculo-nuvem {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(59, 130, 246, 0.20) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

.alerta-vinculo-topo {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.icone-nuvem-vinculo {
    font-size: 18px;
    line-height: 1;
}

.alerta-vinculo-textos strong {
    font-size: 12px;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.alerta-vinculo-textos p {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
    margin: 0;
}

/* PASTA RAIZ PRINCIPAL DA ÁRVORE */
.pasta-raiz-principal {
    margin-bottom: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
}

.pasta-raiz-principal:hover {
    background: rgba(99, 102, 241, 0.14);
}

.nome-pasta-raiz {
    font-weight: 700 !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    letter-spacing: 0.2px;
}

.badge-vazio {
    opacity: 0.45;
    background: rgba(255, 255, 255, 0.06);
}

/* BARRA INFERIOR DE FERRAMENTAS DE ESTUDO (DOCK FLUTUANTE) */
.dock-ferramentas-inferior {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.90);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 6px 14px;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

body.documento-aberto .dock-ferramentas-inferior {
    display: flex;
}

.dock-ferramentas-inferior.dock-oculto {
    transform: translateX(-50%) translateY(120px) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.grupo-botoes-dock {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-dock {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    color: #94a3b8;
    padding: 6px 12px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.btn-dock:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-dock.active {
    color: #ffffff;
    background: linear-gradient(135deg, #6366f1 0%, #3b82f6 100%);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.icone-dock {
    font-size: 13px;
    line-height: 1;
}

.divisor-dock {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.15);
}

.paleta-cores-dock {
    display: flex;
    align-items: center;
    gap: 6px;
}

.circulo-cor-dock {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}

.circulo-cor-dock:hover {
    transform: scale(1.25);
}

.circulo-cor-dock.active {
    border-color: #ffffff;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

.circulo-cor-dock.amarelo { background: #facc15; }
.circulo-cor-dock.verde   { background: #4ade80; }
.circulo-cor-dock.azul    { background: #60a5fa; }
.circulo-cor-dock.rosa    { background: #f472b6; }
.circulo-cor-dock.vermelho{ background: #f87171; }

.acoes-dock {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-dock-acao {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-dock-acao:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.btn-dock-acao.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #60a5fa;
}

/* TOAST DE AUTO-RESUME */
.toast-retomada {
    position: fixed;
    top: 96px;
    right: 24px;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #f8fafc;
    padding: 10px 20px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 18px rgba(139, 92, 246, 0.25);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: surgirFade 0.2s ease-out;
}

.icone-toast {
    font-size: 20px;
}

.conteudo-toast {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.conteudo-toast strong {
    font-size: 13px;
    color: #ffffff;
}

.conteudo-toast span {
    font-size: 11.5px;
    color: #a78bfa;
}

/* MODO FULLSCREEN E BARRAS OCULTAS */
.barras-ocultas #barra-ferramentas-principal {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.barras-ocultas .area-trabalho-principal {
    height: 100vh !important;
}

.btn-revelar-barras-flutuante {
    position: fixed;
    top: 14px;
    right: 20px;
    z-index: 1001;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 11.5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: background 0.15s, transform 0.15s;
}

.btn-revelar-barras-flutuante:hover {
    background: rgba(30, 41, 59, 0.95);
    transform: scale(1.05);
}

/* ==========================================================================
   TELA DE LOGIN INDEPENDENTE E DEDICADA
   ========================================================================== */
.tela-login-independente {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 15%, #1e1b4b 0%, #0f172a 55%, #020617 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

.fundo-gradiente-login {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(139, 92, 246, 0.08) 45%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
    animation: pulsarGradiente 8s ease-in-out infinite alternate;
}

@keyframes pulsarGradiente {
    0% { transform: translateX(-50%) scale(0.9); opacity: 0.6; }
    100% { transform: translateX(-50%) scale(1.15); opacity: 1; }
}

.card-login-independente {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 1px 1px rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: surgirCardLogin 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

@keyframes surgirCardLogin {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.topo-card-login {
    text-align: center;
}

.logo-login {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.icone-logo-login {
    font-size: 38px;
    filter: drop-shadow(0 4px 14px rgba(99, 102, 241, 0.5));
}

.textos-logo-login {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.textos-logo-login h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    line-height: 1.1;
}

.badge-versao-login {
    font-size: 10.5px;
    color: #818cf8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitulo-login {
    font-size: 13px;
    color: #94a3b8;
    margin: 8px 0 0 0;
    line-height: 1.4;
}

.abas-login-independente {
    display: flex;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
}

.btn-aba-login {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-aba-login:hover {
    color: #ffffff;
}

.btn-aba-login.active {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.msg-erro-login-ind {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.form-login-ind {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.grupo-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.grupo-campo label {
    font-size: 12px;
    font-weight: 600;
    color: #cbd5e1;
}

.campo-com-icone {
    position: relative;
    display: flex;
    align-items: center;
}

.icone-campo {
    position: absolute;
    left: 12px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0.75;
}

.campo-com-icone input {
    width: 100%;
    background: rgba(0, 0, 0, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 11px 14px 11px 38px;
    color: #ffffff;
    font-size: 13.5px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.campo-com-icone input:focus {
    border-color: #6366f1;
    background: rgba(0, 0, 0, 0.45);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

.botao-entrar-ind {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #3b82f6 100%);
    border: none;
    border-radius: 12px;
    padding: 13px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    margin-top: 4px;
}

.botao-entrar-ind:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
    filter: brightness(1.05);
}

.botao-entrar-ind:active {
    transform: translateY(0);
}

.rodape-card-login {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.beneficio-login {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
}

.beneficio-login p {
    margin: 0;
}

/* ==========================================================
   MENU FLUTUANTE DE EDIÇÃO DA MARCAÇÃO
   ========================================================== */
.menu-editar-marcacao {
    position: absolute;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 30px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.25);
    animation: surgirPopEdit 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes surgirPopEdit {
    from { opacity: 0; transform: scale(0.9) translateY(4px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.paleta-cores-edit {
    display: flex;
    align-items: center;
    gap: 5px;
}

.circulo-cor-edit {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.circulo-cor-edit:hover {
    transform: scale(1.3);
}

.circulo-cor-edit.active {
    border-color: #ffffff;
    transform: scale(1.18);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.circulo-cor-edit.amarelo { background: #facc15; }
.circulo-cor-edit.verde   { background: #4ade80; }
.circulo-cor-edit.azul    { background: #60a5fa; }
.circulo-cor-edit.rosa    { background: #f472b6; }
.circulo-cor-edit.vermelho{ background: #f87171; }

.btn-acao-edit {
    background: transparent;
    border: none;
    color: #cbd5e1;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}

.btn-acao-edit:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-acao-edit.btn-excluir-edit {
    color: #f87171;
}

.btn-acao-edit.btn-excluir-edit:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* ==========================================================
   DASHBOARD & TELA DE DOCUMENTOS RECENTES (INÍCIO)
   ========================================================== */
.btn-inicio-recentes-nav {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd !important;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-inicio-recentes-nav:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: #8b5cf6;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.dashboard-recentes-conteudo {
    width: 100%;
    max-width: 1280px;
    margin: 28px auto 60px auto;
    padding: 0 20px;
    animation: surgirFade 0.25s ease-out;
}

@keyframes surgirFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CARD HERO: CONTINUAR DE ONDE PAROU */
.card-hero-continuar {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;
    padding: 28px 36px;
    cursor: pointer;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(139, 92, 246, 0.15);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.card-hero-continuar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
}

.card-hero-continuar:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
}

.badge-hero-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #a78bfa;
    margin-bottom: 14px;
}

.tempo-hero {
    color: #94a3b8;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}

.conteudo-hero-continuar {
    display: flex;
    align-items: center;
    gap: 22px;
}

.icone-pdf-hero {
    font-size: 42px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.28);
    width: 74px;
    height: 74px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-hero-continuar {
    flex: 1;
    min-width: 0;
}

.categoria-hero {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.titulo-hero-continuar {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.3px;
}

.progresso-hero-linha {
    display: flex;
    align-items: center;
    gap: 14px;
}

.barra-fundo-hero {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    overflow: hidden;
}

.barra-preenchimento-hero {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.rotulo-progresso-hero {
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.btn-play-continuar {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-play-continuar:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.65);
}

/* CARD HERO DO CONCURSO (HUB INICIAL QUANDO NÃO TEM RECENTES) */
.hub-boas-vindas-concurso {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 20px;
    padding: 36px 44px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(139, 92, 246, 0.15);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hub-boas-vindas-concurso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
}

.topo-hub-concurso {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.info-hub-principal {
    flex: 1;
}

.chips-hub-topo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.chip-hub {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.chip-hub.destaque {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.3);
}

.titulo-hub-concurso {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.4px;
}

.desc-hub-concurso {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

.acoes-hub-direita {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.btn-hub-abrir-bib {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-hub-abrir-bib:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.65);
}

/* SEÇÃO GRADE DE CARDS RECENTES */
.secao-grade-recentes {
    margin-top: 20px;
}

.topo-secao-recentes {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.topo-secao-recentes h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #f8fafc;
}

.acoes-topo-recentes {
    display: flex;
    gap: 10px;
}

.grade-cards-recentes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.card-recente-item {
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 22px;
    cursor: pointer;
    transition: transform 0.18s, border-color 0.18s, background 0.18s, box-shadow 0.18s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
}

.card-recente-item:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.topo-card-recente {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.icone-tipo-doc {
    font-size: 20px;
}

.tag-pasta-doc {
    font-size: 11.5px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    font-weight: 600;
}

.badge-anot-card {
    font-size: 11px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: auto;
    font-weight: 600;
}

.titulo-card-recente {
    margin: 0 0 14px 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rodape-card-recente {
    margin-top: auto;
}

.barra-progresso-mini {
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progresso-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    border-radius: 3px;
}

.metadados-card-recente {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #94a3b8;
}

.data-recente {
    color: #64748b;
}

/* ==========================================================
   ABA LATERAL DE RECENTES
   ========================================================== */
.topo-painel-recentes {
    padding: 10px 14px;
    border-bottom: 1px solid var(--borda-suave);
}

.linha-topo-rec {
    display: flex;
    align-items: center;
    gap: 8px;
}

.linha-topo-rec input {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--borda-suave);
    color: var(--texto-principal);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.linha-topo-rec input:focus {
    outline: none;
    border-color: var(--destaque-primario);
}

.btn-limpar-rec-icon {
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: var(--texto-suave);
    transition: background 0.15s, color 0.15s;
}

.btn-limpar-rec-icon:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.lista-recentes-lateral {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: calc(100vh - 170px);
}

.item-recente-lateral {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--borda-suave);
    border-radius: 8px;
    padding: 10px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.item-recente-lateral:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.35);
}

.topo-item-recente-lat {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.icone-lat {
    font-size: 14px;
}

.titulo-item-lat {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--texto-principal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pasta-item-lat {
    font-size: 10.5px;
    color: #38bdf8;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.barra-progresso-lat {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.fill-lat {
    height: 100%;
    background: var(--destaque-primario);
    border-radius: 2px;
}

.rodape-item-lat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    color: var(--texto-secundario);
}

.tempo-lat {
    color: var(--texto-suave);
}

/* HUB DE BOAS-VINDAS QUANDO A PASTA JÁ ESTÁ MAPEADA */
.hub-boas-vindas-concurso {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 18px;
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(139, 92, 246, 0.15);
    position: relative;
    overflow: hidden;
}

.hub-boas-vindas-concurso::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #06b6d4);
}

.icone-hub-grande {
    font-size: 48px;
    margin-bottom: 12px;
}

.hub-boas-vindas-concurso h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.hub-boas-vindas-concurso p {
    font-size: 14px;
    color: #94a3b8;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ==========================================================
   MODAL DE MAPEAMENTO NO TABLET / MOBILE & ANDROID
   ========================================================== */
.modal-mapear-tab {
    max-width: 580px !important;
    width: 92% !important;
}

.corpo-modal-tab {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.desc-modal-tab {
    color: var(--texto-suave);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 2px;
}

.grade-opcoes-tab {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-opcao-tab {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-opcao-tab:hover,
.card-opcao-tab:active {
    background: rgba(51, 65, 85, 0.8);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25), 0 0 12px rgba(139, 92, 246, 0.15);
}

.card-opcao-tab.card-destaque-tab {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}

.card-opcao-tab.card-destaque-tab:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.35));
    border-color: #a855f7;
}

.icone-card-tab {
    font-size: 26px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 10px;
    flex-shrink: 0;
}

.textos-card-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.textos-card-tab strong {
    font-size: 13.5px;
    color: #f8fafc;
    font-weight: 600;
}

.textos-card-tab p {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.badge-opcao-tab {
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.caixa-stats-tab {
    background: rgba(15, 23, 42, 0.6);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 4px;
}

.linha-stats-tab {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icone-stats {
    font-size: 20px;
}

.info-stats-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-stats-tab strong {
    font-size: 12px;
    color: #e2e8f0;
}

.info-stats-tab span {
    font-size: 11px;
    color: #94a3b8;
}

.btn-limpar-cache-tab {
    padding: 4px 10px !important;
    font-size: 11px !important;
}

/* OVERLAY DE PROGRESSO DE CARREGAMENTO / CACHE NO TABLET */
.overlay-progresso-cache {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-progresso-cache {
    background: #1e293b;
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 16px;
    padding: 28px 24px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: zoomModal 0.22s ease-out;
}

.spinner-progresso-cache {
    width: 38px;
    height: 38px;
    border: 3px solid rgba(139, 92, 246, 0.25);
    border-top-color: #a855f7;
    border-radius: 50%;
    animation: girar 0.8s linear infinite;
}

.card-progresso-cache h4 {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
}

.card-progresso-cache p {
    font-size: 12.5px;
    color: #94a3b8;
    margin: 0;
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.barra-progresso-bg {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 4px;
}

.barra-progresso-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #a855f7, #06b6d4);
    border-radius: 6px;
    transition: width 0.15s ease;
}

/* BADGES DE STATUS LOCAL / TABLET NA ÁRVORE */
.linha-nome-com-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}

.badge-status-local {
    font-size: 9.5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 6px;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.badge-status-local.local-ok {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.15);
}

.badge-status-local.local-nuvem {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 10px;
    padding: 0 4px;
}



