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

body {
    font-family: "Segoe UI", sans-serif;
    background-color: #1e1e1e;
    color: #ffffff;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #252525;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 1000;
    border-bottom: 1px solid #444;
}

.top-nav .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-nav img {
    height: 36px;
}

.top-nav input[type="search"] {
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #555;
    background: transparent;
    color: white;
    width: 200px;
}

.top-nav button {
    margin-left: 10px;
    background-color: #2a51ff;
    border: none;
    border-radius: 10px;
    padding: 10px 40px;
    color: white;
    cursor: pointer;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 20px;
    padding: 80px 24px 24px;
    height: 100vh;
}

.doc-content {
    background: #2b2b2b;
    padding: 32px;
    border-radius: 8px;
    overflow-y: auto;
}

.doc-content h1,
.doc-content h2 {
    margin-bottom: 16px;
}

.doc-content p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.right-toc {
    background: #2e2e2e;
    padding: 20px;
    border-radius: 8px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.right-toc h4 {
    margin-bottom: 10px;
}

.right-toc ul {
    list-style: none;
    padding: 0;
}

.right-toc li {
    margin-bottom: 10px;
}

.right-toc a {
    color: #93a5ff;
    text-decoration: none;
}

.right-toc a:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .right-toc {
        display: none;
    }

    .top-nav {
        align-items: stretch;
        padding: 12px;
        gap: 10px;
    }

    .top-nav .actions {
        display: flex;
        justify-content: space-between;
    }

    .top-nav input[type="search"] {
        display: none;
        flex: 1;
        margin-right: 10px;
        /* Show if needed */
    }

    .top-nav button {
        white-space: nowrap;
    }
}