/* * style.css - Ebook Generator Professional
 * Versão: 3.5.1 (Fix Visualização Mobile-First)
 * Autor: Renato Borges
 * Descrição: Correção de herança de estilo para o Editor WYSIWYG.
 */

/* 1. Reset & Container Principal */
.eb-main-container {
    background-color: #04091A;
    color: #ffffff;
    padding: 30px;
    border-radius: 16px;
    max-width: 1200px;
    margin: 20px auto;
    border: 1px solid #1A223F;
    box-shadow: 0 25px 60px rgba(0,0,0,0.7);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

.eb-main-container *, .eb-main-container *::before, .eb-main-container *::after {
    box-sizing: inherit;
}

/* 2. Barra de Progresso (Dark) */
.eb-progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.eb-progress-bar::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 0;
    right: 0;
    height: 2px;
    background: #1A223F;
    z-index: 1;
}

.eb-node {
    width: 34px;
    height: 34px;
    background: #0B1124;
    border: 2px solid #1A223F;
    border-radius: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8C96A8;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    transition: 0.3s ease;
}

.eb-node.active {
    background: #FFF2B0;
    border-color: #FFF2B0;
    color: #04091A;
    box-shadow: 0 0 20px rgba(255,242,176,0.5);
}

.eb-label {
    position: absolute;
    top: 42px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.8;
}

/* 6. Etapa 3: LAYOUT DE TRÊS PAINÉIS INTERATIVOS */
.eb-three-panels {
    display: flex;
    gap: 20px;
    height: 650px;
    margin-bottom: 20px;
}

/* Painel Esquerdo: Controles */
.eb-panel-left {
    flex: 0 0 240px;
    background: #0B1124;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #1A223F;
    display: flex;
    flex-direction: column;
}

.eb-panel-left h3 { color: #FFF2B0; font-size: 18px; margin: 0 0 20px 0; }

.eb-ctrl-btn {
    width: 100%;
    background: #04091A;
    color: #fff;
    border: 1px solid #1A223F;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
}

.eb-ctrl-btn.active { border-color: #FFF2B0; color: #FFF2B0; background: rgba(255,242,176,0.05); }

/* CORREÇÃO CRÍTICA: Painel Central - Visualização da Folha */
.eb-panel-center {
    flex: 1;
    background: #ffffff !important;
    color: #1A1A1A !important;
    padding: 40px;
    border-radius: 12px;
    overflow-y: auto;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.1);
    border: 1px solid #E0E0E0;
    text-align: justify;
}

/* Força Arial 18pt em todos os parágrafos gerados pelo editor */
.eb-panel-center p, 
.eb-panel-center div, 
.eb-panel-center span {
    font-family: 'Arial', sans-serif !important;
    font-size: 18pt !important;
    line-height: 1.5 !important;
    margin-bottom: 12pt !important;
    color: #1A1A1A !important;
}

/* Força Estilo de Títulos (H1 conforme exportador) */
.eb-panel-center h1 {
    font-family: 'Arial', sans-serif !important;
    font-size: 28pt !important;
    color: #1F3864 !important; /* Azul Marinho BNCC */
    font-weight: bold !important;
    text-align: center !important;
    margin-bottom: 20pt !important;
}

.eb-panel-center h2 {
    font-family: 'Arial', sans-serif !important;
    font-size: 22pt !important;
    color: #404040 !important;
    font-weight: bold !important;
    margin-top: 15pt !important;
}

/* Painel Direito: Assistente IA */
.eb-panel-right {
    flex: 0 0 260px;
    background: #0B1124;
    padding: 20px;
    border-radius: 12px;
    border-left: 2px solid #FFF2B0;
}

.eb-panel-right h3 { color: #FFF2B0; font-size: 18px; margin: 0 0 15px 0; }
.eb-ai-box { font-size: 13px; color: #8C96A8; line-height: 1.6; }

/* Botão de Ação Final */
.eb-btn-submit {
    flex: 2;
    background: linear-gradient(45deg, #FFF2B0, #FFD700);
    color: #04091A;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
}