@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@300;400;500;600;700&display=swap');

body {
            font-family: 'Fira Sans', Arial, sans-serif;
            font-size: 16px;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
            background: linear-gradient(135deg, #1e40af, #06b6d4);
            min-height: 100vh;
        }
        .menu-container {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            margin-bottom: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        h1 {
            text-align: start;
            color: #ffffff;
            margin-bottom: 30px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        .chapter-list {
            list-style: none;
            padding: 0;
        }
        .chapter-list li {
            margin: 10px 0;
        }
        .chapter-list a {
            display: block;
            padding: 15px 20px;
            background: linear-gradient(135deg, #1e40af, #0ea5e9);
            color: white;
            text-decoration: none;
            border-radius: 5px;
            transition: all 0.3s;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
            text-align: left;
        }
        .chapter-list a:hover {
            background: linear-gradient(135deg, #1d4ed8, #06b6d4);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }
        .content-preview {
            background: rgba(255, 255, 255, 0.95);
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .content-preview h2 {
            color: #1e40af;
            margin-bottom: 15px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }
        
        /* Estilos para navegação entre capítulos */
        .navigation {
            margin-top: 40px;
            padding: 20px 0;
            text-align: center;
            border-top: 2px solid rgba(30, 64, 175, 0.2);
        }
        
        .navigation a {
            display: inline-block;
            padding: 12px 25px;
            margin: 0 10px;
            background: linear-gradient(135deg, #1e40af, #0ea5e9);
            color: white;
            text-decoration: none;
            border-radius: 8px;
            font-weight: bold;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }
        
        .navigation a:hover {
            background: linear-gradient(135deg, #1d4ed8, #06b6d4);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        }
        
        .prev-chapter::before {
            content: "← ";
        }
        
        .next-chapter::after {
            content: " →";
        }
        
        /* Estilo especial para o link do menu */
        .menu-link {
            background: linear-gradient(135deg, #059669, #10b981) !important;
            margin-right: 15px;
        }
        
        .menu-link:hover {
            background: linear-gradient(135deg, #047857, #059669) !important;
        }
        
        /* Estilos para conteúdo dos capítulos */
        .chapter-content {
            background: rgba(255, 255, 255, 0.98);
            padding: 30px;
            margin: 20px 0;
            border-radius: 15px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.2);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: #1f2937;
            line-height: 1.8;
            font-size: 17px;
            transition: all 0.3s ease;
        }
        
        .chapter-content h1 {
            color: #1e40af;
            text-align: start;
            margin-bottom: 30px;
            padding-bottom: 15px;
            border-bottom: 2px solid rgba(30, 64, 175, 0.2);
            text-shadow: none;
        }
        
        /* Estilo para avisos/notas */
        .note {
            color: #dc2626;
            font-weight: 600;
            background: rgba(254, 226, 226, 0.8);
            border-left: 4px solid #dc2626;
            padding: 12px 16px;
            margin: 20px 0;
            border-radius: 6px;
            font-style: italic;
            box-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
        }
        
        /* Estilo para avisos amarelos */
        .note-warning {
            color: #d97706;
            font-weight: 600;
            background: rgba(254, 243, 199, 0.8);
            border-left: 4px solid #f59e0b;
            padding: 12px 16px;
            margin: 20px 0;
            border-radius: 6px;
            font-style: italic;
            box-shadow: 0 2px 4px rgba(245, 158, 11, 0.1);
        }
        
        /* Botão de alternância de tema */
        .theme-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #374151, #4b5563);
            color: white;
            border: none;
            border-radius: 50px;
            padding: 12px 20px;
            cursor: pointer;
            font-weight: bold;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
            z-index: 1000;
            font-size: 15px;
        }
        
        .theme-toggle:hover {
            background: linear-gradient(135deg, #4b5563, #6b7280);
            transform: translateY(-2px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.4);
        }
        
        /* Modo escuro */
        body.dark-mode {
            background: linear-gradient(135deg, #0f172a, #1e293b);
        }
        
        body.dark-mode .chapter-content {
            background: rgba(15, 23, 42, 0.95);
            color: #e2e8f0;
            border: 1px solid rgba(71, 85, 105, 0.3);
        }
        
        body.dark-mode .chapter-content h1 {
            color: #60a5fa;
            border-bottom-color: rgba(96, 165, 250, 0.3);
        }
        
        body.dark-mode .navigation {
            border-top-color: rgba(96, 165, 250, 0.3);
        }
        
        body.dark-mode .note {
            color: #fca5a5;
            background: rgba(127, 29, 29, 0.3);
            border-left-color: #ef4444;
        }
        
        body.dark-mode .note-warning {
            color: #fcd34d;
            background: rgba(120, 53, 15, 0.3);
            border-left-color: #f59e0b;
        }
        
        body.dark-mode .theme-toggle {
            background: linear-gradient(135deg, #fbbf24, #f59e0b);
            color: #0f172a;
        }
        
        body.dark-mode .theme-toggle:hover {
            background: linear-gradient(135deg, #f59e0b, #d97706);
        }
        
        /* Estilos responsivos para dispositivos móveis */
        @media (max-width: 768px) {
            body {
                padding: 10px;
                font-size: 16px;
            }
            
            .menu-container {
                padding: 20px;
                margin-bottom: 15px;
            }
            
            .chapter-content {
                padding: 20px;
                margin: 15px 0;
                font-size: 16px;
                line-height: 1.7;
            }
            
            .chapter-content h1 {
                font-size: 1.5em;
                margin-bottom: 20px;
                padding-bottom: 10px;
            }
            
            .navigation {
                margin-top: 30px;
                padding: 15px 0;
                flex-wrap: wrap;
                gap: 10px;
            }
            
            .navigation a {
                padding: 10px 15px;
                margin: 5px;
                font-size: 13px;
                min-width: 120px;
                text-align: center;
            }
            
            .theme-toggle {
                top: 10px;
                right: 10px;
                padding: 8px 15px;
                font-size: 12px;
            }
            
            .chapter-list a {
                padding: 12px 15px;
                font-size: 15px;
                text-align: left;
            }
            
            .content-preview {
                padding: 15px;
                font-size: 15px;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 5px;
            }
            
            .menu-container {
                padding: 15px;
            }
            
            .chapter-content {
                padding: 15px;
                font-size: 17px;
                line-height: 1.6;
            }
            
            .chapter-content h1 {
                font-size: 1.3em;
                word-wrap: break-word;
            }
            
            .navigation {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 8px;
            }
            
            .navigation a {
                width: 100%;
                max-width: 200px;
                margin: 0;
                padding: 12px 20px;
            }
            
            .theme-toggle {
                padding: 6px 12px;
                font-size: 12px;
            }
            
            .chapter-list a {
                padding: 10px 12px;
                font-size: 14px;
                line-height: 1.4;
                text-align: left;
            }
            
            h1 {
                font-size: 1.5em;
            }
            
            h2 {
                font-size: 1.2em;
            }
        }
        
        /* Melhorias gerais para touch devices */
        @media (hover: none) and (pointer: coarse) {
            .navigation a,
            .theme-toggle {
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            .chapter-list a {
                min-height: 44px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
            }
            
            .theme-toggle {
                min-height: 40px;
            }
        }
        
        /* Footer Styles */
.footer {
    margin-top: 3rem;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 248, 255, 0.95));
    border-top: 3px solid #1e90ff;
    backdrop-filter: blur(10px);
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 15px rgba(30, 144, 255, 0.2);
}

.footer-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer h3 {
    color: #0066cc;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin: 0.8rem 0;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
}

.contact-info a:hover {
    color: #004499;
    background-color: rgba(30, 144, 255, 0.1);
    text-decoration: underline;
}

/* Dark mode footer styles */
.dark-mode .footer {
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.95), rgba(25, 35, 55, 0.95));
    border-top-color: #4a9eff;
    box-shadow: 0 -4px 15px rgba(74, 158, 255, 0.3);
}

.dark-mode .footer h3 {
    color: #66b3ff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.dark-mode .contact-info p {
    color: #f0f8ff;
}

.dark-mode .contact-info a {
    color: #66b3ff;
}

.dark-mode .contact-info a:hover {
    color: #99ccff;
    background-color: rgba(74, 158, 255, 0.2);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 1rem;
    }
    
    .footer h3 {
        font-size: 1.2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
}

/* Imagens dentro do capítulo */
.chapter-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

/* Estilos para prevenir cliques múltiplos */
.navigation a.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

.navigation a.disabled::after {
    content: "⏳";
    position: absolute;
    right: 10px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (max-width: 480px) {
    .chapter-content img {
        max-width: 100%;
        height: auto;
        margin: 12px auto;
        border-radius: 8px;
    }
}