/* Cores principais */
.color1 {
    color: #120e1e;
}

/* Cor de fundo principal */
.color2 {
    color: #122b44;
}

/* Barra lateral */
.color3 {
    color: #125274;
}

/* Destaques secundários */
.color4 {
    color: #177eaa;
}

/* Links e botões */
.color5 {
    color: #20b4d8;
}

/* Reset de margens e preenchimento para garantir consistência */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fonte geral */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Tema Claro (padrão) */
:root[data-theme="light"] {
    --background-color: #ffffff;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --primary-color: #122b44;
    --light-text: #ffffff;
    --accent-color: #20b4d8;
    --transition-speed: 0.3s;
}

/* Tema Escuro */
:root[data-theme="dark"] {
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --border-color: #404040;
    --primary-color: #0a1825;
    --light-text: #ffffff;
    --accent-color: #177eaa;
    --transition-speed: 0.3s;
}

/* Estilos gerais */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white-color: #ffffff;
    --black-color: #000000;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--light-color);
}

/* Navbar */
.navbar {
    background-color: var(--white-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
}

.navbar-brand,
.navbar-nav .nav-link {
    color: var(--light-text);
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color);
}

/* Wrapper do conteúdo */
.content-wrapper {
    position: relative;
    padding: 20px 20px 20px 0;
    display: flex;
}

/* Sidebar */
.sidebar-container {
    position: sticky;
    top: 140px;
    left: 0;
    background-color: var(--primary-color);
    color: var(--light-text);
    transition: all var(--transition-speed) ease;
    width: 280px;
    z-index: 1000;
    height: fit-content;
    align-self: flex-start;
    border-radius: 0 10px 10px 0;
}

.sidebar-container.collapsed {
    width: 15px;
}

.sidebar-content {
    width: 280px;
    padding: 20px;
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
    overflow-y: auto;
}

.sidebar-content h5 {
    margin-top: 0;
}

.sidebar-container.collapsed .sidebar-content {
    opacity: 0;
    pointer-events: none;
}

/* Botão Toggle */
.sidebar-toggle {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    color: var(--light-text);
    width: 25px;
    height: 25px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 4px 4px 0;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1);
}

.sidebar-toggle:hover {
    color: var(--accent-color);
}

.sidebar-toggle i {
    font-size: 1rem;
    transition: transform var(--transition-speed) ease;
}

.sidebar-container.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Conteúdo Principal */
.main-content {
    flex: 1;
    padding-left: 15px;
    transition: padding-left var(--transition-speed) ease;
    min-height: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 20px;
    background: var(--background-color);
}

.main-content.collapsed {
    padding-left: 30px;
}

#content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Ajuste do conteúdo principal */
#content {
    padding: 20px;
}

/* Estilo da lista de tópicos */
.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    margin-bottom: 10px;
}

.topic-list a {
    color: var(--light-text);
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.topic-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.topic-list ul {
    list-style: none;
    padding-left: 20px;
    margin: 5px 0;
}

/* Estilo para o conteúdo principal */
.content {
    padding: 20px;
    background-color: var(--background-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.content h2 {
    text-align: center;
    color: var(--text-color);
    font-size: 2rem;
    margin-bottom: 30px;
}

.content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-top: 30px;
}

/* Conteúdo específico */
.content-card {
    background: var(--background-color);
    border-radius: 8px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 8px 24px,
                rgba(17, 17, 26, 0.1) 0px 16px 56px,
                rgba(17, 17, 26, 0.1) 0px 24px 80px;
    padding: 30px;
    margin: 0 0 30px 20px;
    transition: box-shadow var(--transition-speed) ease;
}

.content-card:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px,
                rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

.content-header {
    background: var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.content-header .content-title {
    text-align: center;
    color: var(--light-text) !important;
    font-size: 2.5em;
    text-transform: uppercase;
    font-weight: bold;
    margin: 0;
}

.assunto-title {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* classe abaixo não esta sendo usado pois teria que sobrescrever o textrich*/
.tema-descricao{
    font-weight: bold;
    color: #3498db;
    font-size: 1.5em;
}

/* Barra de pesquisa */
.form-control {
    border-radius: 20px;
    border: 2px solid var(--accent-color);
    transition: border-color var(--transition-speed);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(19, 139, 219, 0.5);
}

/* Estilo de Botões */
button {
    background-color: var(--accent-color);
    color: var(--light-text);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color var(--transition-speed) ease;
}

button:hover {
    background-color: var(--primary-color);
}

button:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(19, 139, 219, 0.5);
}

/* Estilo de código */
.code-container {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin: 1rem 0;
    background-color: var(--background-color);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    cursor: pointer;
    user-select: none;
}

.code-content {
    display: none; /* Começa minimizado */
    padding: 1rem;
    overflow-x: auto;
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.code-header:hover {
    background-color: var(--accent-color);
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: transform 0.3s ease;
}

.toggle-btn:hover {
    transform: scale(1.2);
}

.copy-btn {
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.copy-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Personaliza os números das linhas */
.hljs-ln {
    padding: 8px 0;
    border-collapse: collapse;
}

.hljs-ln td {
    padding: 0 8px;
}

.hljs-ln-numbers {
    user-select: none;
    text-align: center;
    color: #cccccc;
    border-right: 1px solid #999;
    vertical-align: top;
    padding-right: 8px !important;
}

.hljs-ln-code {
    padding-left: 8px !important;
}

.hljs-ln tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hljs-ln-numbers {
    color: #aaaaaa;
    /* Cinza para os números */
    padding-right: 10px;
    border-right: 1px solid #333333;
    /* Borda entre números e código */
}

.language-label {
    font-weight: bold;
}

.copy-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color var(--transition-speed) ease;
}

.copy-btn:hover {
    background-color: var(--accent-color);
}

/* Efeito de hover nos itens de lista */
.list-group-item:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    cursor: pointer;
    font-weight: bold;
}

/* Ajustes para blocos de código */
pre {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    max-width: 100%;
    overflow-x: auto;
    padding: 1em;
    border-radius: 4px;
}

code {
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    max-width: 100%;
}

/* Ajuste para tabelas */
table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ajuste para imagens */
img {
    max-width: 100%;
    height: auto;
}

/* Animações */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in {
    transform: translateY(20px);
    opacity: 0;
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Efeito de destaque para âncoras */
@keyframes highlightFade {
    0% {
        background-color: rgba(32, 180, 216, 0.2);
        transform: translateY(-5px);
    }
    100% {
        background-color: transparent;
        transform: translateY(0);
    }
}

.highlight-scroll {
    animation: highlightFade 2s ease-out;
}

/* Responsividade */
@media (max-width: 768px) {
    .sidebar-container {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .sidebar-container.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 992px) {
    .navbar .navbar-nav {
        justify-content: flex-start;
    }

    .sidebar {
        position: relative;
        width: 100%;
        margin-top: 20px;
    }

    .content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar .navbar-toggler {
        display: block;
    }

    .navbar .navbar-nav {
        flex-direction: column;
    }

    .content {
        padding: 15px;
    }

    .sidebar {
        padding: 10px;
    }

    .sidebar h5 {
        font-size: 1rem;
    }

    .sidebar .list-group-item {
        font-size: 0.9rem;
    }

    .sidebar .form-control {
        padding: 8px 10px;
    }
}

/* Estado de carregamento */
.content-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Melhorias de acessibilidade */
:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Estilo para itens completados */
.completed {
    text-decoration: line-through;
    opacity: 0.7;
}

/* Navbar Styles */
.custom-navbar {
    background: var(--primary-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.custom-navbar .navbar-brand {
    color: var(--primary-text);
    font-weight: 600;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-navbar .navbar-brand i {
    color: var(--accent-color);
}

.custom-navbar .nav-link {
    color: var(--primary-text);
    padding: 0.8rem 1.2rem;
    margin: 0 0.3rem;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-navbar .nav-link:hover {
    background: var(--hover-bg);
}

.custom-navbar .nav-link.active {
    background: var(--accent-color);
    color: white;
}

.custom-navbar .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.custom-navbar .category-text {
    font-weight: 500;
}

.custom-navbar .active-indicator {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Category Header Styles */
.category-header {
    background: var(--secondary-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-text);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.category-title i {
    color: var(--accent-color);
    font-size: 1.8rem;
}

.category-description {
    color: var(--secondary-text);
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

/* Welcome Message Styles */
.welcome-message {
    padding: 3rem;
    background: var(--secondary-bg);
    border-radius: 12px;
    margin: 2rem;
}

.welcome-message h2 {
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.welcome-message p {
    color: var(--secondary-text);
    font-size: 1.1rem;
}

/* Main Content */
#mainContent {
    padding: 2rem;
    margin-top: 1rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Code Blocks */
.code-container {
    margin: 1.5rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #138bdb;
    color: white;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
}

.code-title {
    font-weight: bold;
    margin: 0;
}

.code-actions {
    display: flex;
    gap: 0.5rem;
}

.copy-btn, .toggle-btn {
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.copy-btn:hover, .toggle-btn:hover {
    color: var(--primary-color);
}

.code-content {
    padding: 1rem;
    overflow-x: auto;
}

/* Highlight.js customization */
.hljs {
    padding: 1rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Search Bar */
.search-container {
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
    color: var(--text-primary);
}

/* Category Header */
.category-header {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.category-description {
    color: var(--secondary-color);
    margin-bottom: 0;
}

/* Anchor highlight effect */
.highlight-anchor {
    animation: highlight-fade 2s ease-out;
}

@keyframes highlight-fade {
    0% {
        background-color: rgba(0, 123, 255, 0.2);
    }
    100% {
        background-color: transparent;
    }
}

/* Estilo da barra de pesquisa */
.search-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-results .list-group-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-results .list-group-item:hover {
    background-color: #2c64ac;
    color: white;
}

.search-results .list-group-item:hover strong {
    color: #fff;
}

.search-results strong {
    background-color: #20b4d8;
    padding: 2px 4px;
    border-radius: 3px;
    color: #000;
}

.search-results .list-group-item {
    transition: all 0.3s ease;
}

.search-results .codigo-encontrado {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 8px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

.search-results .list-group-item:hover .codigo-encontrado {
    background-color: #5b9bc5;
}

.search-results .codigo-encontrado strong {
    background-color: #20b4d8;
    padding: 2px 4px;
    border-radius: 3px;
    color: #000;
}

.search-results .list-group-item {
    transition: all 0.3s ease;
}

.search-results .codigo-encontrado {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    margin-top: 8px;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
}

.search-results .list-group-item:hover .codigo-encontrado {
    background-color: #5b9bc5;
}

.search-results .codigo-encontrado strong {
    background-color: #20b4d8;
    padding: 2px 4px;
    border-radius: 3px;
    color: #000;
}

/* Estilos para a barra de pesquisa global */
.global-search-container {
    position: relative;
    max-width: 300px;
    margin-left: 20px;
}

.global-search-input {
    background-color: var(--background-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.global-search-input:focus {
    background-color: var(--background-primary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-color-transparent);
    color: var(--text-primary);
}

.global-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 5px;
}

.global-search-results .list-group-item {
    background-color: var(--background-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.global-search-results .list-group-item:hover {
    background-color: var(--background-secondary);
}

@media (max-width: 991.98px) {
    .global-search-container {
        margin: 10px 0;
        max-width: 100%;
    }
}

/* Estilos para referências */
.referencias-section {
    background-color: var(--background-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
}

.referencias-title {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.referencias-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.referencias-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.referencias-list li {
    margin-bottom: 0.5rem;
}

.referencia-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.referencia-link:hover {
    background-color: var(--background-hover);
    color: var(--primary-color-dark);
}

.referencia-link i {
    font-size: 1.2rem;
}

.referencia-link small {
    margin-left: 0.5rem;
}

.referencias-group {
    background-color: var(--background-primary);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Estilos para a seção de referências */
.referencias-section {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.referencias-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.referencias-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.referencia-item {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.referencia-item:hover {
    background-color: var(--primary-color);
    border-color: var(--accent-color);
    color: var(--light-text);
}

/* Estilo para tabelas dentro da descrição do assunto */
.assunto-descricao table {
    width: 90%;
    border-collapse: collapse;
    margin: 1.5rem auto !important;
    background-color: var(--bg-color);
    table-layout: fixed;
}

.assunto-descricao table.tabela-collapse {
    display: table;
    margin: 1.5rem auto !important;
}

.assunto-descricao table th,
.assunto-descricao table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
    word-wrap: break-word;
}

.assunto-descricao table th,
.tabela-collapse thead th {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.tabela-collapse thead {
    display: table-header-group;
}

.tabela-collapse tbody {
    display: table-row-group;
}

.tabela-collapse .tbody-collapse {
    display: none;
}

.tabela-collapse .tbody-collapse.expandido {
    display: table-row-group;
}

.tabela-collapse tfoot {
    display: table-footer-group;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.tabela-collapse tfoot td {
    padding: 0 !important;
}

.botao-collapse {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0d6efd;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.botao-collapse:hover {
    background-color: #e9ecef;
}

/* Animação apenas para assuntos */
.assunto-section:target .assunto-title {
    animation: highlight-fade 2s;
}

@keyframes highlight-fade {
    0% {
        background-color: var(--hover-color);
    }
    100% {
        background-color: transparent;
    }
}

/* Estilo para comandos do terminal */
.terminal-command {
    display: none;
}

/* Estilos para o container de comandos bash */
.bash-wrapper {
    margin: 16px 0;
}

.bash-title {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #24292f;
}

.bash-description {
    margin-bottom: 12px;
    color: #57606a;
    font-size: 14px;
}

.bash-container {
    background-color: #f6f8fa;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    overflow: hidden;
}

.bash-header {
    background-color: #f6f8fa;
    border-bottom: 1px solid #d0d7de;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bash-header span {
    color: #57606a;
    font-size: 12px;
}

.bash-copy-btn {
    background: none;
    border: none;
    color: #0969da;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.bash-copy-btn:hover {
    color: #1a7f37;
    text-decoration: underline;
}

.bash-content {
    background-color: #f6f8fa;
    padding: 16px;
    margin: 0;
    white-space: pre;
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    font-size: 14px;
    line-height: 1.45;
    overflow-x: auto;
    color: #24292f;
}

/* Removendo o pseudo-elemento ::before que adiciona o $ */
/* .bash-content::before {
    content: "$ ";
    color: #57606a;
} */

/* Removendo números de linha e fundo preto do bash */
.bash-content code {
    background: none !important;
}

.bash-content .hljs-ln-numbers {
    display: none !important;
}

.bash-content .hljs {
    background: none !important;
    padding: 0 !important;
}

/* Ajustando cores do highlight.js para bash */
.bash-content .hljs,
.bash-content .hljs-subst {
    color: #24292f !important;
}

.bash-content .hljs-comment,
.bash-content .hljs-quote {
    color: #6a737d !important;
    font-style: italic;
}

.bash-content .hljs-keyword,
.bash-content .hljs-selector-tag,
.bash-content .hljs-subst {
    color: #24292f !important;
}

.bash-content .hljs-number,
.bash-content .hljs-literal,
.bash-content .hljs-variable,
.bash-content .hljs-template-variable,
.bash-content .hljs-tag .hljs-attr {
    color: #005cc5 !important;
}

.bash-content .hljs-string,
.bash-content .hljs-doctag {
    color: #032f62 !important;
}

.bash-content .hljs-title,
.bash-content .hljs-section,
.bash-content .hljs-selector-id {
    color: #24292f !important;
    font-weight: bold;
}

.bash-content .hljs-params {
    color: #24292f !important;
}

.bash-content .hljs-built_in,
.bash-content .hljs-builtin-name {
    color: #005cc5 !important;
}

/* Estilos para informação adicional dos códigos */
.codigo-info-adicional {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.codigo-info-adicional img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.codigo-info-adicional p:last-child {
    margin-bottom: 0;
}

/* Estilos para o collapse de tabelas */
.tabela-collapse .tbody-collapse {
    display: none;
}

.tabela-collapse .tbody-collapse.expandido {
    display: table-row-group;
}

.tabela-collapse tfoot {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.tabela-collapse tfoot td {
    padding: 0 !important;
}

.botao-collapse {
    width: 100%;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: #0d6efd;
    font-size: 0.9em;
    transition: background-color 0.2s;
}

.botao-collapse:hover {
    background-color: #e9ecef;
}

/* Responsividade para tabelas */
@media screen and (max-width: 768px) {
    .assunto-descricao table {
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Remove borda extra da div assunto-descricao */
.assunto-descricao {
    border: none;
    padding: 0;
    margin: 0;
}

/* Estilo para o menu em acordeão */
.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tema-item {
    margin-bottom: 0.5rem;
}

.tema-header {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tema-header:hover {
    background-color: var(--hover-color);
}

.tema-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
}

.tema-toggle.active i {
    transform: rotate(90deg);
}

.tema-link {
    text-decoration: none;
    color: var(--text-color);
    flex-grow: 1;
}

.assuntos-list {
    list-style: none;
    padding-left: 2rem;
    margin-top: 0.25rem;
}

.assuntos-list li {
    margin: 0.25rem 0;
}

.assunto-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.95em;
    display: block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.assunto-link:hover {
    background-color: var(--hover-color);
    color: var(--light-color);
}

/* Ajuste para âncoras com header fixo */
.assunto-section:target {
    scroll-margin-top: 100px; /* Ajuste conforme a altura do seu header */
}

/* Estilos para o botão de seta e wrapper dos assuntos relacionados */
.referencia-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.arrow-btn {
    background: none;
    border: none;
    color: #007bff;
    padding: 0;
    margin: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.arrow-btn:hover {
    color: #0056b3;
    transform: translateX(3px);
}

.referencia-item {
    flex: 1;
}

#relatedModal .modal-content {
    background-color: #fff;
    border-radius: 8px;
}

#relatedModal .modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
}

#relatedModal .modal-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

#relatedModal .modal-dialog {
    max-width: 80%;
    margin: 1.75rem auto;
}