/* =================================================================
   LUMUS DOC - ESTILO DE LEITURA (DARK MODE DEFINITIVO)
   ================================================================= */
/* ==========================================================================
   TRILHA LUMUS - ESTILO V9.0 (CORRIGIDO)
   ========================================================================== */

:root {
    --blue-primary: #1D4A91;
    --blue-dark: #143e77;
    --bg-beige: #F5EFE6;
    --card-white: #FFFFFF;
    --text-dark: #333;
    --border-beige: #D1C4B0;
    --gray-light: #f3f4f6;
}
/* --- CORREÇÃO DAS ABAS E FECHAR (AZUL LUMUS) --- */

/* Abas do Modal */
.lt-tab {
    background: none; border: none; 
    padding: 10px 15px; 
    font-size: 1rem; color: #666;
    cursor: pointer; border-bottom: 3px solid transparent; 
    transition: all 0.2s;
    display: flex; align-items: center; gap: 8px; font-weight: 600;
    border-radius: 6px 6px 0 0; /* Leve arredondamento no topo */
}

/* Hover Azul (Sem fundo ou fundo muito leve) */
.lt-tab:hover { 
    color: var(--blue-primary) !important; 
    background-color: rgba(29, 74, 145, 0.05) !important; /* Azulzinho super claro */
}

/* Ativo (Texto Azul + Borda Azul) */
.lt-tab.active { 
    color: var(--blue-primary) !important; 
    border-bottom-color: var(--blue-primary) !important;
    background-color: transparent !important; /* Remove qualquer fundo estranho */
}

/* Botão Fechar (X) */
.lt-close {
    font-size: 2rem; 
    line-height: 1; 
    margin-left: 15px;
    background: transparent !important;
    border: none !important;
    color: #999 !important;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}

/* Hover do Fechar (Cinza Escuro, não vermelho) */
.lt-close:hover { 
    color: #333 !important; 
    background-color: #f0f0f0 !important; /* Cinza neutro */
}
/* CONTAINER GERAL */
#lumus-trilha-root {
    display: block; width: 100%; min-height: 80vh;
    background-color: var(--bg-beige); color: var(--text-dark);
    padding: 40px 0; box-sizing: border-box;
}
.lt-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* TIMELINE */
.lt-timeline-header { margin-bottom: 40px; text-align: center; }
.lt-timeline-track { 
    display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; 
    position: relative; 
}
.lt-timeline-dot {
    width: 40px; height: 40px; border-radius: 50%; background: #fff; 
    border: 2px solid var(--border-beige); color: #999; font-weight: bold;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    transition: 0.3s; z-index: 2;
}
.lt-timeline-dot.active {
    background: var(--blue-primary); border-color: var(--blue-primary); 
    color: #fff; transform: scale(1.1);
}
.lt-timeline-dot:hover { border-color: var(--blue-primary); color: var(--blue-primary); }

.lt-fase-info h1 { color: var(--blue-primary); margin: 0 0 5px; font-size: 1.8rem; }
.lt-fase-info p { color: #666; margin: 0; }

/* CARDS DE MATÉRIA */
.lt-materias-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

.lt-mat-card {
    background: var(--card-white); border: 1px solid var(--border-beige);
    border-radius: 12px; overflow: hidden; transition: 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.lt-mat-header {
    padding: 15px 20px; background: #fff; display: flex; align-items: center; gap: 15px;
    cursor: pointer; border-bottom: 1px solid transparent;
}
.lt-mat-card.open .lt-mat-header { border-bottom-color: #eee; background: #fafafa; }

.lt-mat-icon-box {
    width: 40px; height: 40px; background: #eef4ff; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: var(--blue-primary);
}
.lt-mat-info { flex: 1; }
.lt-mat-title { font-weight: 700; display: block; color: var(--text-dark); }
.lt-mat-progress-container { 
    height: 6px; background: #eee; border-radius: 3px; margin: 5px 0; overflow: hidden; 
}
.lt-mat-progress-bar { height: 100%; background: var(--blue-primary); transition: width 0.5s; }
.lt-mat-progress-text { font-size: 0.75rem; color: #888; }

.lt-mat-body { display: none; padding: 20px; background: #fff; }

/* MICROTEMAS (BOLINHAS) */
.lt-macro-group { margin-bottom: 20px; }
.lt-macro-title { 
    font-size: 0.9rem; font-weight: 700; color: #666; margin-bottom: 10px; 
    text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #eee; padding-bottom: 5px;
}
.lt-micro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 15px; }

.lt-micro-item {
    text-align: center; cursor: pointer; transition: 0.2s;
}
.lt-micro-item:hover { transform: translateY(-3px); }

.lt-bola-container { position: relative; width: 80px; height: 80px; margin: 0 auto 8px; }
.progress-ring__circle { transition: stroke-dashoffset 0.5s ease-in-out; transform: rotate(-90deg); transform-origin: 50% 50%; }
.lt-bola-icon {
    position: absolute; top: 37%; left: 39%; transform: translate(-50%, -50%);
}
.badge-100 {
    position: absolute; bottom: -5px; right: -5px; background: #28a745; color: #fff;
    font-size: 0.65rem; padding: 2px 6px; border-radius: 10px; font-weight: bold;
}
.lt-micro-name { font-size: 0.8rem; line-height: 1.3; color: #444; min-height: 2.6em; }
.lt-micro-count { font-size: 0.75rem; color: #999; }

/* MODAL FULL SCREEN */
.lt-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(29, 74, 145, 0.4); backdrop-filter: blur(5px); z-index: 99999;
    align-items: center; justify-content: center;
}
.lt-modal-box {
    background: #fff; width: 90%; max-width: 1000px; height: 85vh;
    border-radius: 16px; display: flex; flex-direction: column;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2); transition: all 0.3s;
}
.lt-modal-box.expanded { width: 100%; height: 100%; border-radius: 0; max-width: none; }

/* Header do Modal */
.lt-modal-header {
    padding: 20px 30px; border-bottom: 1px solid #eee; display: flex; 
    justify-content: space-between; align-items: center; background: #fcfcfc;
    border-radius: 16px 16px 0 0;
}
.lt-breadcrumb-modal { font-size: 0.85rem; color: var(--blue-primary); font-weight: 600; margin-bottom: 5px; }
#modal-titulo { margin: 0; font-size: 1.5rem; color: var(--text-dark); }

/* Botões do Header */
/* --- BOTÕES DO HEADER (Expandir e Fechar) --- */
.lt-btn-expand, .lt-close {
    background: transparent; 
    border: none; 
    cursor: pointer; 
    color: #999;
    transition: all 0.2s ease; 
    padding: 8px; 
    border-radius: 6px;
    line-height: 1;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

/* Hover Azul Suave (Padrão Lumus) */
.lt-btn-expand:hover, .lt-close:hover { 
    color: var(--blue-primary); 
    background: rgba(29, 74, 145, 0.08); /* Azul bem clarinho */
}

/* Ajuste específico do ícone de fechar */
.lt-close { 
    font-size: 1.8rem; 
    width: 36px; 
    height: 36px;
}

/* --- ABAS DO MODAL (Sem Vermelho) --- */
.lt-tabs-container {
    padding: 0 30px; 
    border-bottom: 1px solid #eee; 
    background: #fff;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    height: 60px; /* Altura fixa para alinhar */
}

.lt-tabs { 
    display: flex; 
    gap: 5px; 
    height: 100%;
}

.lt-tab {
    background: none; 
    border: none; 
    padding: 0 15px; 
    font-size: 0.95rem; 
    color: #666;
    cursor: pointer; 
    border-bottom: 3px solid transparent; 
    transition: all 0.2s;
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-weight: 600;
    height: 100%;
    position: relative;
    top: 1px; /* Puxa para cima da linha */
}

/* Hover Azul (Lumus) */
.lt-tab:hover { 
    color: var(--blue-primary); 
    background: rgba(29, 74, 145, 0.03); /* Leve highlight */
} 

/* Ativo (Azul Sólido) */
.lt-tab.active { 
    color: var(--blue-primary); 
    border-bottom-color: var(--blue-primary); 
}
/* Abas do Modal */
.lt-tabs-container {
    padding: 0 30px; border-bottom: 1px solid #eee; background: #fff;
    display: flex; justify-content: space-between; align-items: center;
}
.lt-tabs { display: flex; gap: 25px; }
.lt-tab {
    background: none; border: none; padding: 15px 0; font-size: 1rem; color: #666;
    cursor: pointer; border-bottom: 3px solid transparent; transition: 0.2s;
    display: flex; align-items: center; gap: 8px; font-weight: 600;
}
/* Correção do Hover das Abas */
.lt-tab:hover { color: var(--blue-primary); } 
.lt-tab.active { color: var(--blue-primary); border-bottom-color: var(--blue-primary); }

.lt-tab-actions { display: flex; gap: 10px; }
.lt-btn-sync, .lt-btn-reset {
    background: none; border: 1px solid #eee; padding: 8px 12px; border-radius: 6px;
    cursor: pointer; color: #666; display: flex; align-items: center; gap: 5px;
    font-size: 0.85rem; transition: 0.2s;
}
.lt-btn-sync:hover { background: #eef4ff; color: var(--blue-primary); border-color: var(--blue-primary); }
.lt-btn-reset:hover { background: #fff5f5; color: #dc3545; border-color: #dc3545; }

/* Corpo do Modal */
.lt-modal-body { flex: 1; overflow-y: auto; padding: 30px; background: #f9fafb; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s; }

/* Teoria Card */
.lt-teoria-card {
    background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee;
    display: flex; max-width: 800px; margin: 0 auto; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.lt-teoria-img { width: 35%; background-size: cover; background-position: center; }
.lt-teoria-content { padding: 30px; flex: 1; }
.lt-btn-ler {
    display: inline-block; background: var(--blue-primary); color: #fff; 
    padding: 10px 20px; border-radius: 6px; text-decoration: none; 
    font-weight: bold; margin-top: 15px;
}
.lt-btn-ler:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* Estilos de Flashcard */
.fc-stage-trilha { perspective: 1000px; margin-bottom: 20px; display: flex; justify-content: center; }
.fc-card-trilha {
    width: 100%; max-width: 600px; height: 350px; position: relative;
    transform-style: preserve-3d; transition: transform 0.6s; cursor: pointer;
}
.fc-card-trilha.is-flipped { transform: rotateY(180deg); }
.fc-card-front, .fc-card-back {
    position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
    background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 40px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.fc-card-back { transform: rotateY(180deg); background: #f0fdf4; border-color: #bbf7d0; }
.fc-card-label {
    position: absolute; top: 15px; left: 15px; font-size: 0.75rem; 
    text-transform: uppercase; font-weight: bold; color: #999;
}
.fc-card-content { font-size: 1.2rem; line-height: 1.6; }

.fc-nav-trilha { display: flex; justify-content: center; gap: 20px; align-items: center; }
.button.button-primary { background: var(--blue-primary) !important; color: #fff !important; border: none !important; }
.button.button-secondary { background: #fff !important; color: #666 !important; border: 1px solid #ddd !important; }

/* Utilitários */
.empty-msg { text-align: center; padding: 50px; color: #999; font-style: italic; }
@keyframes fadeIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
@media (max-width: 768px) {
    .lt-teoria-card { flex-direction: column; }
    .lt-teoria-img { height: 200px; width: 100%; }
    .lt-tabs { overflow-x: auto; padding-bottom: 5px; }
    .lt-tab { white-space: nowrap; }
}





/* Container Principal (A folha do papel) */
.lumus-doc {
    background-color: #0B1B32 !important; /* Azul Profundo */
    color: #E0E6ED !important; /* Branco Gelo */
    padding: 60px !important;
    border-radius: 16px !important;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif !important;
    line-height: 1.8 !important;
    font-size: 1.125rem !important;
    margin: 30px auto !important;
    max-width: 1000px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
}

/* --- TÍTULO PRINCIPAL DO TEXTO (H1) --- */
.lumus-main-title {
    font-family: 'Georgia', serif !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: #D3455B !important; /* ROSA DESTAQUE */
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    line-height: 1.2 !important;
    border-bottom: 2px solid #D3455B !important;
    padding-bottom: 20px !important;
}

/* --- TÍTULOS DE SEÇÃO (H2 - Numerais Romanos ou Capítulos) --- */
.lumus-heading {
    font-family: 'Georgia', serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-top: 50px !important;
    margin-bottom: 25px !important;
    padding-left: 15px !important;
    border-left: 4px solid #1D4A91 !important; /* Barra Azul Lateral */
    line-height: 1.3 !important;
}

/* --- SUBTÍTULOS (H3 - 1.1, 1.2...) --- */
.lumus-subheading {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #A0C4FF !important; /* Azul Claro */
    margin-top: 35px !important;
    margin-bottom: 15px !important;
}

/* --- PARÁGRAFOS E TEXTO --- */
.lumus-content {
    margin-bottom: 20px !important;
}

.lumus-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
    color: #CBD5E1 !important; /* Cinza Confortável */
}

/* Negritos */
.lumus-content strong, strong {
    color: #FFF !important;
    font-weight: 700 !important;
}

/* --- TABELAS --- */
.lumus-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 40px 0 !important;
    background-color: #132641 !important; /* Fundo levemente mais claro */
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #2A3F5F !important;
}

.lumus-table th {
    background-color: #D3455B !important; /* ROSA */
    color: #FFF !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    border: none !important;
}

.lumus-table td {
    padding: 15px !important;
    border-bottom: 1px solid #2A3F5F !important;
    color: #E0E6ED !important;
    vertical-align: top !important;
    font-size: 0.95rem !important;
}

.lumus-table tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.03) !important; }
.lumus-table tr:hover { background-color: rgba(211, 69, 91, 0.1) !important; }

/* --- RODAPÉ (FONTES) --- */
.lumus-footer {
    margin-top: 60px !important;
    padding-top: 20px !important;
    border-top: 1px solid #2A3F5F !important;
    font-size: 0.9rem !important;
    color: #64748B !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .lumus-doc { padding: 25px !important; }
    .lumus-main-title { font-size: 1.8rem !important; }
    .lumus-table { display: block !important; overflow-x: auto !important; }
}
/* =================================================================
   LUMUS DOC - ESTILO DE LEITURA (DARK MODE DEFINITIVO)
   ================================================================= */

/* Container Principal (A folha do papel) */
.lumus-doc {
    background-color: #0B1B32 !important; /* Azul Profundo */
    color: #E0E6ED !important; /* Branco Gelo */
    padding: 60px !important;
    border-radius: 16px !important;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif !important;
    line-height: 1.8 !important;
    font-size: 1.125rem !important;
    margin: 30px auto !important;
    max-width: 1000px !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3) !important;
    box-sizing: border-box !important;
}

/* --- TÍTULO PRINCIPAL DO TEXTO (H1) --- */
.lumus-main-title {
    font-family: 'Georgia', serif !important;
    font-size: 2.4rem !important;
    font-weight: 700 !important;
    color: #D3455B !important; /* ROSA DESTAQUE */
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    line-height: 1.2 !important;
    border-bottom: 2px solid #D3455B !important;
    padding-bottom: 20px !important;
}

/* --- TÍTULOS DE SEÇÃO (H2 - Numerais Romanos ou Capítulos) --- */
.lumus-heading {
    font-family: 'Georgia', serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    margin-top: 50px !important;
    margin-bottom: 25px !important;
    padding-left: 15px !important;
    border-left: 4px solid #1D4A91 !important; /* Barra Azul Lateral */
    line-height: 1.3 !important;
}

/* --- SUBTÍTULOS (H3 - 1.1, 1.2...) --- */
.lumus-subheading {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #A0C4FF !important; /* Azul Claro */
    margin-top: 35px !important;
    margin-bottom: 15px !important;
}

/* --- PARÁGRAFOS E TEXTO --- */
.lumus-content {
    margin-bottom: 20px !important;
}

.lumus-content p {
    margin-bottom: 20px !important;
    text-align: justify !important;
    color: #CBD5E1 !important; /* Cinza Confortável */
}

/* Negritos */
.lumus-content strong, strong {
    color: #FFF !important;
    font-weight: 700 !important;
}

/* --- TABELAS --- */
.lumus-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    margin: 40px 0 !important;
    background-color: #132641 !important; /* Fundo levemente mais claro */
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid #2A3F5F !important;
}

.lumus-table th {
    background-color: #D3455B !important; /* ROSA */
    color: #FFF !important;
    padding: 15px !important;
    text-align: left !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    border: none !important;
}

.lumus-table td {
    padding: 15px !important;
    border-bottom: 1px solid #2A3F5F !important;
    color: #E0E6ED !important;
    vertical-align: top !important;
    font-size: 0.95rem !important;
}

.lumus-table tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.03) !important; }
.lumus-table tr:hover { background-color: rgba(211, 69, 91, 0.1) !important; }

/* --- RODAPÉ (FONTES) --- */
.lumus-footer {
    margin-top: 60px !important;
    padding-top: 20px !important;
    border-top: 1px solid #2A3F5F !important;
    font-size: 0.9rem !important;
    color: #64748B !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .lumus-doc { padding: 25px !important; }
    .lumus-main-title { font-size: 1.8rem !important; }
    .lumus-table { display: block !important; overflow-x: auto !important; }
}









































/* =========================================
   ESTILO DA ABA TEORIA (CARD)
   ========================================= */

.lt-teoria-container {
    padding: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.lt-teoria-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lt-teoria-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(29, 74, 145, 0.1);
    border-color: #1D4A91;
}

/* Imagem do Topo */
.lt-teoria-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #eee;
}

/* Conteúdo */
.lt-teoria-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lt-teoria-content h3 {
    margin: 0;
    color: #1D4A91;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.lt-teoria-content p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
}

/* Botão Ler */
.lt-btn-ler {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1D4A91;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: 10px;
}

.lt-btn-ler:hover {
    background-color: #153a75;
    color: white;
}

.lt-btn-ler svg {
    width: 18px;
    height: 18px;
}

/* Responsivo */
@media (min-width: 768px) {
    .lt-teoria-card {
        flex-direction: row; /* Imagem na esquerda em telas grandes */
        align-items: center;
    }
    .lt-teoria-img {
        width: 280px;
        height: auto;
        min-height: 220px;
        align-self: stretch; /* Estica altura */
        border-bottom: none;
        border-right: 1px solid #eee;
    }
    .lt-teoria-content {
        flex: 1;
    }
}
/* =========================================
   CORREÇÃO DE COR DOS LIVROS (FORÇADA)
   ========================================= */

.book-item {
    color: #333 !important; /* Força cor escura base */
}

/* Título do Livro (que está dentro de <strong> ou .book-title) */
.book-item strong,
.book-item .book-title {
    color: #1D4A91 !important; /* Azul Escuro */
    font-weight: 700 !important;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

/* Capítulo/Página (que está dentro de <small>, <div> ou .chapter-info) */
.book-item small,
.book-item div,
.book-item .chapter-info {
    color: #555 !important; /* Cinza Escuro */
    font-size: 0.9rem;
    font-weight: normal !important;
}

/* Garante que o botão fique alinhado */
.book-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff !important;
    border: 1px solid #e5e7eb;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
}
/* Remove as bolinhas e margens da lista */
.book-links-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* O Card do Livro */
.book-item {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center; /* Centraliza verticalmente */
    justify-content: space-between; /* Texto na esq, Botão na dir */
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.book-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(29, 74, 145, 0.08);
    border-color: #1D4A91;
}

/* Área de Texto (Título e Capítulo) */
.book-item > div {
    flex: 1;
    padding-right: 20px; /* Espaço para não colar no botão */
}

/* Título do Livro */
.book-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1D4A91; /* Azul Principal */
    margin-bottom: 5px;
    line-height: 1.3;
}

/* Informações do Capítulo */
.chapter-info {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* Botão Ler */
.open-pdf-btn {
    background-color: #1D4A91 !important; /* Azul */
    color: white !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    white-space: nowrap; /* Garante que o texto não quebre */
    transition: background 0.2s !important;
    box-shadow: 0 2px 5px rgba(29, 74, 145, 0.2);
}

.open-pdf-btn:hover {
    background-color: #153a75 !important;
    transform: translateY(-1px);
}
/* Container da Barra (Flexbox para alinhar ponta a ponta) */
.lt-tabs-container {
    display: flex !important;
    justify-content: space-between !important; /* Abas na esq, Botão na dir */
    align-items: center !important;
    border-bottom: 1px solid #eee;
    padding: 0 30px;
    background: #fff;
    height: 65px; /* Altura fixa para ficar bonito */
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Abas */
.lt-tabs {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* Área dos Botões */
.lt-tab-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* BOTÃO SALVAR (CORRIGIDO AZUL) */
.lt-btn-sync {
    background-color: #1D4A91 !important; /* Força Azul */
    color: white !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 2px 4px rgba(29, 74, 145, 0.2) !important;
    transition: all 0.2s ease;
    position: static !important; /* Garante que não flutue */
}

.lt-btn-sync:hover {
    background-color: #153a75 !important;
    transform: translateY(-1px);
}

/* Botão Resetar */
.lt-btn-reset {
    background: transparent !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: flex; align-items: center; justify-content: center;
}
.lt-btn-reset:hover {
    background: #dc3545 !important;
    color: white !important;
}

/* Ajuste das Abas */
.lt-tab {
    background: none; border: none; border-bottom: 3px solid transparent;
    font-weight: 600; color: #666; cursor: pointer;
    display: flex; align-items: center; gap: 8px; height: 100%;
    padding: 0; /* Remove padding extra */
}
.lt-tab:hover { color: #1D4A91; }
.lt-tab.active { color: #1D4A91; border-bottom-color: #1D4A91; }








/* ... (Mantenha seus estilos de Timeline, Cards, Microtemas anteriores) ... */

/* --- ESTILOS DO MODAL E BOTÕES (ATUALIZADO) --- */
.lt-modal-header { 
    padding: 20px 30px; 
    border-bottom: 1px solid #eee; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.lt-header-left { flex: 1; }

.lt-actions { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* Botão de Atualizar Progresso (O NOVO BOTÃO) */
.lt-btn-sync {
    background-color: #1D4A91;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
    box-shadow: 0 2px 5px rgba(29, 74, 145, 0.2);
}
.lt-btn-sync:hover {
    background-color: #153a75;
    transform: translateY(-1px);
}
.lt-btn-sync:active {
    transform: translateY(0);
}

/* Botão Resetar */
.lt-btn-reset {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.lt-btn-reset:hover {
    background: #dc3545;
    color: white;
}

/* Botão Expandir */
.lt-btn-expand {
    background: transparent;
    border: 1px solid #ccc;
    color: #666;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lt-btn-expand:hover {
    background: #f5f5f5;
    color: #333;
}

/* Botão Fechar */
.lt-close {
    background: none; border: none; font-size: 28px; color: #aaa; cursor: pointer; line-height: 1;
}
.lt-close:hover { color: #333; }

/* ... (Mantenha os estilos de Abas, Conteúdo, Loader e Empty Msg) ... */


/* BLINDAGEM */
#lumus-trilha-root {
    all: initial; display: block; width: 100vw; position: relative;
    left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background-color: #F5EFE6; /* Bege Fundo */
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box; padding: 40px 20px; min-height: 100vh;
}
#lumus-trilha-root * { box-sizing: border-box; font-family: inherit; }

.lt-container { max-width: 1200px; margin: 0 auto; }

/* --- TIMELINE (Linha do Tempo no Topo) --- */
.lt-timeline-header {
    text-align: center; margin-bottom: 60px;
}

.lt-timeline-track {
    display: flex; justify-content: center; align-items: center; gap: 40px;
    position: relative; margin-bottom: 20px;
}
/* Linha conectora */
.lt-timeline-track::before {
    content: ''; position: absolute; top: 50%; left: 20%; right: 20%; height: 4px;
    background: #D1C4B0; z-index: 0; transform: translateY(-50%);
}

.lt-timeline-dot {
    width: 40px; height: 40px; border-radius: 50%; background: #fff;
    border: 3px solid #D1C4B0; z-index: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #D1C4B0; transition: all 0.3s;
}

.lt-timeline-dot:hover, .lt-timeline-dot.active {
    border-color: #1D4A91; color: #1D4A91; transform: scale(1.2);
    box-shadow: 0 0 0 4px rgba(29, 74, 145, 0.1);
}
.lt-timeline-dot.active { background: #1D4A91; color: white; }

.lt-fase-info h1 { color: #1D4A91; font-size: 2.5rem; font-weight: 800; margin: 0 0 5px; }











/* Badge de 100% */
.badge-100 {
    position: absolute;
    bottom: -5px;
    background: #28a745;
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Contador de questões abaixo do nome */
.lt-micro-count {
    font-size: 0.7rem;
    color: #999;
    margin-top: 2px;
}

/* Ajuste do SVG para começar do topo */
.progress-ring {
    transform: rotate(-90deg);
}

/* Estados de cor do progresso */
.progress-ring__circle {
    transition: stroke-dashoffset 0.8s ease-in-out;
    stroke-linecap: round;
}

/* Efeito Hover no Item */
.lt-micro-item:hover .lt-bola-container {
    transform: scale(1.05);
    transition: transform 0.2s;
}

/* Botão Reiniciar */
.lt-btn-reset {
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.lt-btn-reset:hover {
    background: #f8d7da !important; /* Vermelho claro alerta */
    color: #721c24 !important;
    border-color: #f5c6cb !important;
}

/* Visual de questão respondida dentro do modal (ajuste no seu CSS global) */
.questao-respondida-certa {
    border-left: 5px solid #28a745 !important;
    background-color: #f0fff4;
}
.questao-respondida-errada {
    border-left: 5px solid #dc3545 !important;
    background-color: #fff5f5;
}
.lt-fase-info p { color: #666; font-size: 1.1rem; margin: 0; }

/* --- GRID DE MATÉRIAS (CARDS GRANDES) --- */
.lt-materias-grid {
    display: grid; grid-template-columns: 1fr; gap: 20px;
}

.lt-mat-card {
    background: #FFFFFF; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid transparent;
    transition: all 0.3s ease;
}

.lt-mat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(29, 74, 145, 0.15);
    border-color: #1D4A91;
}

/* Cabeçalho do Card (Clicável para expandir) */
.lt-mat-header {
    padding: 30px; display: flex; align-items: center; gap: 25px; cursor: pointer;
}

.lt-mat-icon-box {
    width: 80px; height: 80px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #F0F7FF; color: #1D4A91; flex-shrink: 0;
}
.lt-mat-icon-box svg { width: 40px; height: 40px; stroke-width: 2; }

.lt-mat-info { flex: 1; }
.lt-mat-title { font-size: 1.5rem; font-weight: 800; color: #333; margin: 0 0 8px; display: block; }
.lt-mat-meta { display: flex; gap: 15px; font-size: 0.9rem; color: #666; }
.lt-meta-item { display: flex; align-items: center; gap: 5px; }

.lt-chevron { color: #ccc; transition: transform 0.3s; }
.lt-mat-card.open .lt-chevron { transform: rotate(180deg); color: #1D4A91; }

/* Corpo do Card (Macrotemas e Microtemas) */
.lt-mat-body {
    display: none; /* Escondido por padrão */
    padding: 0 30px 30px 30px; border-top: 1px solid #f0f0f0;
    background: #fafafa;
}
.lt-mat-card.open .lt-mat-body { display: block; animation: fadeIn 0.3s; }

@keyframes fadeIn { from{opacity:0; transform:translateY(-10px)} to{opacity:1; transform:translateY(0)} }

/* Macrotema (Título de Seção) */
.lt-macro-group { margin-top: 25px; }
.lt-macro-title { font-size: 1.1rem; font-weight: 700; color: #1D4A91; margin-bottom: 15px; }

/* Grid de Microtemas (Paralelepípedos Pequenos) */
.lt-micro-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px;
}

.lt-micro-card {
    background: white; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 15px; cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; gap: 10px;
}
.lt-micro-card:hover {
    border-color: #1D4A91; background: #F5EFE6;
}

.lt-micro-icon {
    width: 30px; height: 30px; background: #eef2ff; color: #1D4A91;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0;
}
.lt-micro-title { font-size: 0.95rem; font-weight: 600; color: #333; line-height: 1.3; }

/* MODAL */
.lt-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 10000; display: none;
    align-items: center; justify-content: center; backdrop-filter: blur(5px);
}
.lt-modal-box {
    background: #fff; width: 90%; max-width: 900px; height: 85vh;
    border-radius: 20px; display: flex; flex-direction: column; position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.lt-close {
    position: absolute; top: 20px; right: 20px; font-size: 2rem; cursor: pointer;
    background: none; border: none; color: #9CA3AF; line-height: 1; transition: 0.2s;
}
.lt-close:hover { color: #dc3545; }

.lt-modal-header { padding: 30px 30px 20px; border-bottom: 1px solid #eee; }
.lt-modal-subtitle { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: #666; font-weight: 700; }
#modal-titulo { margin: 5px 0 0; font-size: 2rem; color: #1D4A91; }

.lt-tabs { display: flex; padding: 0 30px; gap: 20px; border-bottom: 1px solid #eee; }
.lt-tab {
    padding: 15px 0; border: none; background: none; cursor: pointer;
    font-weight: 600; color: #666; border-bottom: 3px solid transparent;
    display: flex; align-items: center; gap: 8px; font-size: 1rem;
}
.lt-tab.active { color: #1D4A91; border-bottom-color: #1D4A91; }
.lt-tab svg { width: 18px; height: 18px; }

.lt-modal-body { flex: 1; overflow-y: auto; padding: 30px; background: #f9fafb; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Estados */
.loader { text-align: center; padding: 40px; color: #1D4A91; font-weight: bold; }
.empty-msg { text-align: center; padding: 40px; color: #666; font-style: italic; background: white; border-radius: 8px; border: 1px dashed #ccc; }


/* ... (Mantenha o CSS base da V6 anterior) ... */

/* CORREÇÃO DO ABRIR/FECHAR CARD */
.lt-mat-body {
    display: none; /* Escondido por padrão */
}

/* CARDS DE RECURSO (NOVO) */
.lt-resource-list {
    display: flex; flex-direction: column; gap: 15px;
}

.lt-resource-card {
    display: flex; align-items: center; gap: 20px;
    background: white; border: 1px solid #eee; border-radius: 12px;
    padding: 20px; text-decoration: none; color: #333;
    transition: all 0.2s;
}
.lt-resource-card:hover {
    border-color: #1D4A91; transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(29, 74, 145, 0.08);
}

.res-icon {
    width: 50px; height: 50px; background: #F0F7FF; color: #1D4A91;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.res-info h4 { margin: 0 0 5px; font-size: 1.1rem; font-weight: 700; color: #1D4A91; }
.res-info p { margin: 0; font-size: 0.9rem; color: #666; line-height: 1.4; }

.res-arrow { margin-left: auto; color: #ccc; }

/* Estilo específico para Livros */
.lt-resource-card.book .res-icon { background: #FFF8E1; color: #F59E0B; }

/* Abas Desabilitadas */
.lt-tab.disabled { opacity: 0.5; cursor: not-allowed; }

/* Mensagens */
.empty-msg { 
    text-align: center; padding: 50px; color: #999; font-style: italic; 
    background: #f9f9f9; border-radius: 12px; border: 2px dashed #eee;
}


/* ... (CSS Base V6 Mantido) ... */

/* --- PROGRESSO CIRCULAR (NOVO) --- */
.lt-micro-item {
    text-align: center; cursor: pointer; width: 100px; position: relative;
}

.lt-bola-container {
    width: 80px; height: 80px; margin: 0 auto 10px; position: relative;
    display: flex; align-items: center; justify-content: center;
}

/* SVG do Anel */
.progress-ring {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg);
}
.progress-ring__circle {
    transition: stroke-dashoffset 0.5s ease-in-out;
    transform-origin: 50% 50%;
}

/* Ícone Central */
.lt-bola-icon {
    width: 60px; height: 60px; border-radius: 50%; background: white;
    border: 2px solid #eee; display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 2; color: #1D4A91; transition: 0.2s;
}
.lt-micro-item:hover .lt-bola-icon { background: #F0F7FF; color: #1D4A91; border-color: #1D4A91; }

/* --- BARRA DE PROGRESSO DA MATÉRIA (NOVO) --- */
.lt-mat-progress-container {
    margin-top: 15px; width: 100%; background: #eee; height: 6px; border-radius: 3px; overflow: hidden;
}
.lt-mat-progress-bar {
    height: 100%; background: #28a745; width: 0%; transition: width 1s ease-out;
}
.lt-mat-progress-text {
    font-size: 0.75rem; color: #666; margin-top: 4px; display: block; text-align: right;
}


/* --- MODO EXPANDIDO (TELA CHEIA) --- */
.lt-modal-box.expanded {
    width: 100vw !important; height: 100vh !important; max-width: none !important;
    border-radius: 0 !important; top: 0 !important; left: 0 !important; position: fixed !important;
    z-index: 100001 !important;
}

.lt-btn-expand {
    background: none; border: 1px solid #1D4A91; border-radius: 20px; padding: 5px 12px;
    color: #1D4A91; font-size: 0.85rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 5px; margin-left: auto; transition: 0.2s;
}
.lt-btn-expand:hover { background: #1D4A91; color: white; }

/* Breadcrumb no Modal */
.lt-breadcrumb-modal {
    font-size: 0.9rem; color: #666; margin-bottom: 5px; display: flex; gap: 5px; align-items: center;
}
.breadcrumb-link { color: #1D4A91; cursor: pointer; text-decoration: underline; }
.breadcrumb-sep { color: #999; }


/* Adicione isso ao seu CSS de frontend da Trilha */
.book-links-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}
.book-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
}
.book-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1D4A91; /* Cor primária */
}
.chapter-info {
    font-size: 0.9rem;
    color: #666;
}
.open-pdf-btn {
    align-self: flex-start;
    background-color: #059669; /* Verde */
    border: none;
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.2s;
}
.open-pdf-btn:hover {
    background-color: #047857;
}
.loading-message, .no-results-message {
    padding: 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}






/* =========================================
   ESTILO FLASHCARDS (Dentro do Modal da Trilha)
   ========================================= */

/* A "mesa" onde o card fica */
.fc-stage-trilha {
    perspective: 1000px;
    padding: 20px;
    min-height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F9FAFB; /* Fundo cinza claro da aba */
}

/* O card */
.fc-card-trilha {
    width: 100%;
    max-width: 500px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 12px;
}

/* Classe que o JS adiciona para "virar" */
.fc-card-trilha.is-flipped {
    transform: rotateY(180deg);
}

/* Frente e Verso (posicionamento) */
.fc-card-front,
.fc-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Verso (invertido) */
.fc-card-back {
    transform: rotateY(180deg);
    background: #F9FAFB; /* Fundo do verso levemente diferente */
}

/* Rótulo "Frente" / "Verso" */
.fc-card-label {
    padding: 8px 15px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #6B7280;
    background: #F3F4F6;
    border-bottom: 1px solid #e5e7eb;
}

/* Conteúdo do card */
.fc-card-content {
    padding: 20px;
    font-size: 1.1rem;
    color: #333;
    overflow-y: auto;
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}
.fc-card-content p {
    margin: 0;
}

/* Navegação (Anterior/Próximo) */
.fc-nav-trilha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #fff;
    /* Arredonda cantos do modal */
    border-radius: 0 0 12px 12px; 
}

.fc-counter-trilha {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

/* Estilo dos botões (compatível com WordPress) */
.fc-nav-trilha .button {
    padding: 5px 15px !important;
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    height: auto !important;
    background: #1D4A91;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.fc-nav-trilha .button:hover { background: #153a75; }
.fc-nav-trilha .button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
}























