:root {
    --accent: #8756e2;
    --accent-soft: #1e1535;
    --accent-hover: #9575cd;
    --neon-glow: rgba(179, 157, 219, 0.15);
    --bg: #09090b;
    --surface: #0d0d0f;
    --surface2: #09090b;
    --border: #2e2e2e;
    --text: #e0e0e0;
    --muted: #888;
    --sidebar-w: 240px;
}

::selection {
    background: var(--accent);
    color: #111;
}

hr
{
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

#rodapebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--surface2);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    gap: 16px;
    z-index: 100;
    font-size: 13px;
    color: var(--muted);
}

.rodape-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.color-picker-wrapper::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--neon-glow);
    filter: blur(8px);
    z-index: -1;
    transition: background .2s;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}



#rodapebar input[type=color] {
    width: 0;
    height: 0;
    opacity: 0;
    cursor: pointer;
    position: absolute;
}

.color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 8px rgba(179, 157, 219, 0.3);
    transition: background .2s, box-shadow .2s;
}

.rodape-right {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--muted);
}

.github-link {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: color .2s, transform .2s;
}

.github-link:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

#sidebar {
    width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding-top: 16px;
    padding-bottom: 40px;
    overflow-y: auto;
    flex-shrink: 0;
    height: calc(100vh - 40px);
}

.importante
{
    padding: 3px 4px;
    margin: 6px 8px;
    background-color: var(--accent);
    color: #000;
}


iframe {
    width: 100%;
    height: 825px;
    border: 1px solid #1f2328;
    margin: 18px 0;
    border-radius: 14px;
    background: #0d1117;
    overflow: hidden;

    transition: 0.2s ease;
}



.sidebar-section {
    padding: 12px 16px;
    font-family: monospace;
    font-size: 12px;
    color: var(--border);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: 24px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.title-section {
    padding: 12px 16px;
    font-family: monospace;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .1em;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    gap: 12px;
}

.nav-item {
    display: block;
    padding: 2px 16px 10px 20px;
    margin: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #676b74;
    border-left: 3px solid transparent;
    transition: all .15s;
    user-select: none;
    position: relative;
}



.nav-subitems {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 2px;
}

.nav-item.expanded .nav-subitems {
    display: flex;
}

.nav-subitem {
    padding: 6px 16px 6px 44px;
    font-size: 12px;
    color: #676b74;
    cursor: pointer;
    transition: all .15s;
    position: relative;
}

.nav-subitem::before {
    content: '├─';
    position: absolute;
    left: 20px;
    color: var(--border);
    width: 16px;
}

.nav-subitem:hover {
    color: var(--accent);
    background: rgba(41, 41, 41, 0.12);
    border-radius: 3px;
}

.nav-item:hover {
    color: var(--text);
    transform: translateX(4px);
}

.nav-item.active {
    color: var(--accent);
}

#main {
    flex: 1;
    padding: 48px 48px 48px;
    overflow-y: auto;
    height: calc(100vh - 40px);
}

.topic {
    display: none;
}

.topic.active {
    display: block;
}

.topic h1 {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.concepts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 8px 0;
}

.concept-item {
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;    position: relative;}

.concept-item:hover {
    border-color: var(--accent);
    background: rgba(179, 157, 219, 0.05);
}



.concept-item h2 {
    margin-top: 0;
}

.topic h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
    opacity: 0.7;
    flex-shrink: 0;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    padding: 2px;
    position: absolute;
    top: 12px;
    right: 12px;
}

.doc-link:hover {
    color: var(--accent);
    opacity: 1;
    transform: translateY(-2px);
}

.doc-link::before {
    content: '';
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'%3E%3C/path%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.topic .subtitle {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.topic p {
    color: #bbb;
    line-height: 1.75;
    margin-bottom: 14px;
    font-size: 14px;
}


.tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 9px;
    border-radius: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-right: 4px;
    margin-bottom: 8px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.citacao {
    width: fit-content;
    margin: 40px auto;
    text-align: center;
    font-style: italic;
}

.citacao p {
    margin: 0;
    font-size: 24px;
}

.citacao span {
    display: block;
    text-align: right;
    margin-top: 5px;
    font-size: 16px;
}

h1
{
    margin-top: 50px;
}