
                /* --- INI INDEX --- */

        /* --- Estilos Globais --- */
        body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f8f9fa; color: #333; overflow-x: hidden; }
        .container { background-color: #fff; max-width: 1000px; margin: 0 auto; padding: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-radius: 8px; }
        h1 { text-align: center; color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 15px; margin-bottom: 30px; }
        p, li { font-size: 16px; line-height: 1.7; margin-bottom: 10px; color: #444; }
        ul { background: #fdfdfd; padding: 20px 40px; border: 1px solid #eee; border-radius: 5px; margin-bottom: 25px; }
        .image-wrapper { text-align: center; margin: 30px 0; background: #fdfbfc; border: 1px dashed #ced4da; padding: 15px; border-radius: 6px; }


        .app-layout { display: flex; min-height: 100vh; }

        /* --- Sidebar Lateral --- */
        .sidebar { width: 280px; background-color: #232529; color: #d1d5db; flex-shrink: 0; display: flex; flex-direction: column; height: 100vh; position: sticky; top: 0; transition: transform 0.3s ease; z-index: 1000; }
        .sidebar-header { padding: 24px 20px; font-size: 20px; font-weight: 700; color: #fff; border-bottom: 1px solid #343a40; letter-spacing: 0.5px; }
        .sidebar-nav { flex-grow: 1; overflow-y: auto; padding: 15px 0; }
        .sidebar-nav::-webkit-scrollbar { width: 6px; }
        .sidebar-nav::-webkit-scrollbar-thumb { background: #495057; border-radius: 4px; }

        /* Itens da Sidebar */
        .menu-item { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 14.5px; transition: color 0.2s, background-color 0.2s; user-select: none; }
        .menu-item:hover { color: #fff; background-color: #2c2f34; }
        .menu-item.active { color: #2ecc71; border-left: 4px solid #2ecc71; padding-left: 16px; background-color: #2c2f34; }
        
        .chevron { width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.3s ease; margin-right: 5px; }
        .menu-item.open .chevron { transform: rotate(-135deg); }

        .submenu { display: none; background-color: #1a1c20; padding: 5px 0; }
        .submenu.open { display: block; animation: slideDown 0.3s ease; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        
        .submenu-link { display: block; padding: 10px 20px 10px 40px; color: #adb5bd; text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
        .submenu-link:hover, .submenu-link.active { color: #fff; font-weight: 600; }

        /* --- Área Principal Central --- */
        .main-content { flex-grow: 1; display: flex; flex-direction: column; width: calc(100% - 280px); }
        .mobile-header { display: none; background-color: #fff; padding: 15px 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); align-items: center; gap: 15px; position: sticky; top: 0; z-index: 900; }
        .btn-menu { background: none; border: none; font-size: 24px; color: #2c3e50; cursor: pointer; padding: 0; }
        .mobile-title { font-weight: 700; font-size: 18px; color: #2c3e50; }
        .sidebar-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; }
        .content-wrapper { padding: 40px 0%; max-width: 1300px; margin: 0 auto; width: 100%; box-sizing: border-box; }

        /* --- Estilos da Home (Cards) --- */
        .page-header { margin-bottom: 40px; }
        .page-header h1 { font-size: 32px; color: #2c3e50; margin: 0 0 10px 0; }
        .page-header p { color: #6c757d; font-size: 16px; margin: 0; }
        .grid-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
        .card { background-color: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); border: 1px solid #eaeaea; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; color: inherit; cursor: pointer; }
        .card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); border-color: #d1d5db; }
        .card-dept { font-size: 12px; font-weight: 700; color: #3498db; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
        .card-title { font-size: 18px; font-weight: 600; color: #2c3e50; margin: 0 0 10px 0; }
        .card-desc { font-size: 14px; color: #6c757d; line-height: 1.6; margin: 0; }

        /* --- Estilos Globais para as Páginas Injetadas (DUIMP, etc) --- */
        #conteudo-principal .container { background-color: #fff; max-width: 1000px; margin: 0 auto; padding: 40px; box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 12px; border: 1px solid #eaeaea; }
        #conteudo-principal h1 { text-align: center; color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 15px; margin-bottom: 30px; font-size: 28px; }
        #conteudo-principal p, #conteudo-principal li { font-size: 16px; line-height: 1.7; margin-bottom: 10px; color: #444; }
        #conteudo-principal ul { background: #fdfdfd; padding: 20px 40px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 25px; }
        #conteudo-principal .image-wrapper { text-align: center; margin: 30px 0; background: #fdfbfc; border: 1px dashed #ced4da; padding: 15px; border-radius: 8px; }
        #conteudo-principal .image-wrapper img { max-width: 100%; height: auto; box-shadow: 0 3px 6px rgba(0,0,0,0.15); border-radius: 6px; border: 1px solid #e1e4e8; cursor: zoom-in; transition: transform 0.2s, opacity 0.2s; }
        #conteudo-principal .image-wrapper img:hover { opacity: 0.85; transform: scale(1.02); }
        #conteudo-principal .action-step { display: inline-block; background-color: #e9ecef; padding: 3px 8px; border-radius: 6px; font-weight: bold; color: #495057; border: 1px solid #ced4da; font-size: 14px; }

        /* --- Estilos do Modal (Zoom da Imagem Global) --- */
        .modal { display: none; position: fixed; z-index: 2000; padding-top: 60px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.85); }
        .modal-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 6px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: zoom 0.3s ease-in-out; }
        @keyframes zoom { from {transform:scale(0.8); opacity: 0;} to {transform:scale(1); opacity: 1;} }
        .close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
        .close:hover { color: #bbb; text-decoration: none; }

        /* --- Responsividade --- */
        @media (max-width: 768px) {
            .sidebar { position: fixed; left: -280px; }
            .sidebar.active { left: 0; }
            .sidebar-overlay.active { display: block; }
            .main-content { width: 100%; }
            .mobile-header { display: flex; }
            .content-wrapper { padding: 20px; }
            #conteudo-principal .container { padding: 20px; }
            .grid-container { grid-template-columns: 1fr; }
        }

                /* --- FIM INDEX --- */

                /* --- INI DUIMP --- */
        
        
        /* Estilo da imagem para mostrar que é clicável */
        .image-wrapper img { 
            max-width: 100%; 
            height: auto; 
            box-shadow: 0 3px 6px rgba(0,0,0,0.15); 
            border-radius: 4px; 
            border: 1px solid #e1e4e8; 
            cursor: pointer; 
            transition: transform 0.2s, opacity 0.2s;
        }
        .image-wrapper img:hover { opacity: 0.85; transform: scale(1.02); }
        
        /* Estilo para teclas, botões e ações */
        .action-step { display: inline-block; background-color: #e9ecef; padding: 3px 8px; border-radius: 4px; font-weight: bold; color: #495057; border: 1px solid #ced4da; font-size: 14px; }

        #grid-do-caos {     
                display: flex !important;
                align-content: center;
                justify-content: space-around;
                flex-wrap: wrap;
        } 

        /* --- Estilos do Modal (Zoom da Imagem) --- */
        .modal { 
            display: none; 
            position: fixed; 
            z-index: 1000; 
            padding-top: 100px; 
            left: 0; top: 0; 
            width: 100%; 
            height: 100%; 
            overflow: auto; 
            background-color: rgba(0,0,0,0.85);
        }
        .modal-content { 
            margin: auto; display: block; 
            width: 50%; 
            max-height: 85vh; 
            border-radius: 6px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.3); 
            animation: zoom 0.3s ease-in-out;
            image-rendering: high-quality;
        }
        @keyframes zoom { from {transform:scale(0.8); opacity: 0;} to {transform:scale(1); opacity: 1;} }
        .close { position: absolute; top: 20px; right: 40px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: 0.3s; }
        .close:hover, .close:focus { color: #bbb; text-decoration: none; }

/* ==============================================================
   LAYOUT DE ÍNDICE LATERAL (TOC) PARA AS PÁGINAS DE DOCUMENTAÇÃO
   ============================================================== */

.content-layout { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start; 
    width: 100%; 
    max-width: 1300px; 
    margin: 0 auto; 
}

/* Ajusta o container do artigo para caber ao lado do índice */
.page-content { 
    flex-grow: 1; 
    max-width: calc(100% - 280px); /* Desconta o tamanho do Índice */
    width: 100%; 
}

/* Remove margens e limites antigos da classe .container para ele fluir livre na direita */
.page-content .container { 
    margin: 0 !important; 
    max-width: 100% !important; 
}

/* O quadrado fixo com os links (Índice) */
.toc-sidebar {
    width: 250px;
    flex-shrink: 0;
    position: sticky;
    top: 20px; /* A distância que vai ficar "grudado" no teto quando rolar a tela */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #eaeaea;
    max-height: calc(100vh - 40px); /* Previne estourar a tela para baixo */
    overflow-y: auto; /* Adiciona scroll se tiver muuuuitos H1 */
}

/* Customiza a barra de rolagem do índice, caso fique muito longo */
.toc-sidebar::-webkit-scrollbar { width: 4px; }
.toc-sidebar::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

/* Estilização dos Links do Índice */
.toc-sidebar h3 { 
    margin-top: 0; 
    font-size: 12px; 
    text-transform: uppercase; 
    color: #95a5a6; 
    letter-spacing: 1px; 
    margin-bottom: 15px; 
    border-bottom: 1px solid #f0f0f0; 
    padding-bottom: 10px; 
    font-weight: 700;
}

.toc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.toc-sidebar li { margin-bottom: 10px; }

.toc-sidebar a { 
    text-decoration: none; 
    color: #6c757d; 
    font-size: 14px; 
    font-weight: 500; 
    transition: color 0.2s; 
    display: block; 
    line-height: 1.4; 
}

.toc-sidebar a:hover { color: #3498db; }

/* Em telas de tablet/celular o índice quebra e fica no topo antes do artigo */
@media (max-width: 1100px) {
    .content-layout { flex-direction: column; }
    .toc-sidebar { width: 100%; position: static; max-height: none; margin-bottom: 20px; box-sizing: border-box; }
    .page-content { max-width: 100%; }
}

        /* --- Responsividade (Telas menores que 768px) --- */
        @media (max-width: 768px) {
            body { padding: 10px; }
            .container { padding: 20px; }
            h1 { font-size: 24px; }
            p, li { font-size: 15px; }
            ul { padding: 15px 20px; }
            .image-wrapper { padding: 10px; margin: 20px 0; }
            
            /* Ajustes do Modal para Mobile */
            .modal { padding-top: 60px; }
            .modal-content { width: 95%; max-height: 80vh; image-rendering: high-quality; }
            .close { right: 20px; top: 10px; font-size: 35px; }
        }


/* --- FIM DUIMP --- */