body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f5f6fa;
}
.sidebar {
    width: 250px;
    background: #1976d2;
    color: #fff;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    padding-top: 10px;
}
.logo {
    display: flex;
    align-items: center;
    padding: 10px 20px;
}
.logo img {
    width: 32px;
    margin-right: 10px;
}
.main-menu-btn {
    background: #1565c0;
    color: #fff;
    border: none;
    width: 90%;
    margin: 10px auto;
    display: block;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
}
.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu li {
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.menu li i {
    margin-right: 12px;
}
.menu li.active, .menu li:hover {
    background: #1565c0;
}
.main-content {
    margin-left: 250px;
    min-height: 100vh;
}
.topbar {
    background: #222;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar input[type="text"] {
    width: 400px;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    font-size: 16px;
}
.user-icon {
    font-size: 28px;
}
.content {
    display: flex;
    padding: 30px;
}
.toc {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    padding: 20px;
    margin-right: 30px;
    height: fit-content;
}
.toc h4 {
    margin-top: 0;
    font-size: 15px;
    color: #888;
}
.toc ul {
    list-style: none;
    padding: 0;
}
.toc ul li {
    margin: 10px 0;
    color: #1976d2;
    cursor: pointer;
}
.main-section {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px #0001;
    padding: 30px;
}
.alert-success {
    background: #e8f5e9;
    color: #388e3c;
    padding: 12px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.alert-success i {
    margin-right: 10px;
}
.main-section h1 {
    margin-top: 0;
    color: #1976d2;
}
.main-section h2 {
    color: #1976d2;
    margin-top: 30px;
}
.main-section a {
    color: #1976d2;
    text-decoration: underline;
    margin-right: 10px;
}
.main-section ul {
    list-style: none;
    padding: 0;
}
.main-section ul li {
    background: #f5f6fa;
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 4px;
}  

.main-section ol li  ol li,
.main-section ol li ol li ol li{
    line-height: 20px !important;
    padding:0px 0px 0px 20px !important;
}

body {
    background: #f5f6fa;
}
.topbar-fixed {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1040;
    background: #222;
    color: #fff;
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}
.topbar-fixed .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar-fixed .logo img {
    height: 32px;
}
.topbar-fixed .menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    margin-right: 1rem;
    display: inline-block;
}
.topbar-fixed .search-box {
    flex: 1;
    margin: 0 1rem;
    max-width: 400px;
}
.topbar-fixed .user-icon {
    font-size: 1.5rem;
}
/* Sidebar always fixed on desktop */
.drawer {
    background: #2366d1;
    color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    overflow-y: auto;
    z-index: 2000;
}
@media (min-width: 992px) {
    .drawer {
        position: fixed !important;
        top: 56px;
        left: 0;
        width: 280px;
        height: calc(100vh - 56px);
        box-shadow: 2px 0 8px rgba(0,0,0,0.08);
        transition: none;
    }
    .main-content {
        margin-left: 300px;
        padding-top: 80px;
        max-width: 100vw;
        overflow-x: hidden;
    }
    .toc-col {
        display: block;
    }
    .toc-card-mobile {
        display: none;
    }
}
@media (max-width: 991.98px) {
    .drawer {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        transition: left 0.3s;
    }
    .drawer.show {
        left: 0;
    }
    .main-content {
        margin-left: 0;
        padding-top: 60px;
    }
    .toc-col {
        display: none;
    }
    .toc-card-mobile {
        display: block;
    }
}
.drawer .logo {
    padding: 1.2rem 1rem 0.5rem 1rem;
}
.drawer .menu {
    list-style: none;
    padding: 0 0 1rem 0;
    margin: 0;
}
.drawer .menu li a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 15px 15px  15px  15px
}
.drawer .menu li {
    cursor: pointer;
    display: block;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}
.drawer .menu li.active, .drawer .menu li:hover {
    background: #1a4e9b;
    border-left: 3px solid #fff;
}
.drawer-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 1999;
}
.drawer.show ~ .drawer-backdrop {
    display: block;
}
/* TOC as card */
.toc-card, .toc-card-mobile {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 1rem;
    margin-bottom: 1.5rem;
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

.main-section a{
    text-decoration: none;
    color: #1976d2;
}
.main-section a i{
    font-size: 12px;
}
.main-section a:hover{
    text-decoration: underline;
}

.toc-card a,
.toc-card-mobile a{
    text-decoration: none;
    color: #000;
    line-height: 27px;
}
.toc-card a:hover,
.toc-card-mobile a:hover{
    text-decoration: underline;
}

.topicos{
    padding-top: 60px;
}