/* Estilos gerais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Layout principal */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1000;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-link {
    color: #ecf0f1;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

.sub-menu {
    list-style: none;
    padding-left: 20px;
    display: none;
}

.nav-item:hover .sub-menu, .nav-link.active + .sub-menu {
    display: block;
}

.sub-menu a {
    color: #bdc3c7;
    text-decoration: none;
    padding: 5px 10px;
    display: block;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.sub-menu a:hover {
    color: #3498db;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    transition: all 0.3s ease;
}

.toggle-sidebar {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #2c3e50;
    color: #ecf0f1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    display: none;
}

/* Capa do ebook */
.cover-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: #fff;
    padding: 20px;
    margin: -30px;
    margin-bottom: 30px;
}

.cover-content {
    max-width: 800px;
}

.cover-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.cover-content h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 400;
}

.cover-image {
    margin: 40px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cover-subtitle {
    font-style: italic;
    margin-top: 30px;
    font-size: 1.1rem;
}

/* Seções e capítulos */
section {
    margin-bottom: 60px;
    padding-top: 20px;
}

section h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

section h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin: 40px 0 20px;
}

/* Elementos interativos */
.interactive-element {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 30px 0;
}

.interactive-element h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Caixas específicas */
.definition-box {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
}

.reflection-box {
    background-color: #f8f5e8;
    border-left: 4px solid #f39c12;
}

.reflection-box textarea {
    width: 100%;
    min-height: 100px;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
}

.comparison-table th {
    background-color: #3498db;
    color: #fff;
}

/* Quiz */
.quiz-box {
    background-color: #f0f7ff;
    border-left: 4px solid #2980b9;
}

/* Pilares */
.pillars-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.pillar {
    text-align: center;
    width: 150px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateY(-5px);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 2rem;
}

.pillar h5 {
    font-size: 1.1rem;
    margin: 0;
}

.pillar-info {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Sinais de alerta */
.warning-signs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.warning-sign {
    background-color: #fff3cd;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    width: calc(50% - 15px);
}

.warning-sign i {
    color: #f39c12;
    font-size: 1.5rem;
    margin-right: 10px;
}

.warning-sign p {
    margin: 0;
}

/* Exercício de transformação */
.transformation-exercise input {
    margin-bottom: 10px;
}

/* Recursos */
.resources-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.resource-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1;
    min-width: 250px;
}

.resource-icon {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: #fff;
    font-size: 1.5rem;
}

.resource-card h5 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.resource-card ul {
    padding-left: 20px;
}

.resource-card li {
    margin-bottom: 5px;
}

/* Imagens */
.image-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.centered-image {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mensagem final */
.final-message {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 50px;
    padding: 30px;
    background-color: #e8f4f8;
    border-radius: 8px;
}

/* Responsividade */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .toggle-sidebar {
        display: flex;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .warning-sign {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cover-content h1 {
        font-size: 2.5rem;
    }
    
    .cover-content h2 {
        font-size: 1.5rem;
    }
    
    .pillars-container {
        flex-direction: column;
        align-items: center;
    }
    
    .resources-container {
        flex-direction: column;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

