/* Layout */
body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.docs-header {
    background-color: #64b7ff;
    color: white;
    padding: 20px 40px;
    border-bottom: 3px solid #3a9ff1;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.docs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.docs-header img {
    width: 48px;
    cursor: pointer;
}

.docs-header h1 {
    color: white;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.docs-search {
    border: none;
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 1rem;
    outline: none;
    min-width: 220px;
    max-width: 300px;
}

.docs-wrapper {
    display: flex;
    flex: 1;
    background-color: #e6f0ff;
    overflow: hidden;
}

/* Sidebar */
.docs-sidebar {
    width: 260px;
    background-color: #f9fcff;
    border-right: 2px solid #cce0ff;
    padding: 30px 20px;
    overflow-y: auto;
    position: sticky;
    height: calc(100vh - 100px);
}

.docs-sidebar h3 {
    margin-top: 20px;
    color: #3a9ff1;
    font-size: 1.1rem;
}

.docs-sidebar ul {
    list-style: none;
    padding-left: 10px;
    margin: 8px 0 20px 0;
}

.docs-sidebar li {
    margin: 6px 0;
}

.docs-sidebar a {
    color: #333;
    display: block;
    padding: 4px 0;
    border-radius: 6px;
    transition: background-color 0.2s, padding-left 0.2s;
}

.docs-sidebar a:hover {
    background-color: #e0f2ff;
    padding-left: 8px;
}

/* Content */
.docs-content {
    flex: 1;
    padding: 50px;
    background-color: #fff;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    overflow-y: auto;
    height: calc(100vh - 100px);
    scroll-behavior: smooth;
}

h1 {
    color: #3a9ff1;
}

.docs-content h2 {
    color: #64b7ff;
    border-bottom: 2px solid #cce0ff;
    padding-bottom: 8px;
    margin-top: 40px;
}

.docs-content p, .docs-content li {
    line-height: 1.7;
}

.docs-content pre {
    background-color: #f5f9ff;
    border: 1px solid #d6e6ff;
    border-radius: 10px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    margin-top: 10px;
}

.docs-content code {
    background-color: #f0f6ff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

mark {
    background-color: #ffec99;
    color: #000;
    border-radius: 3px;
    padding: 0 2px;
}

/* Responsive */
@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .docs-wrapper {
        flex-direction: column;
        overflow: visible;
    }

    .docs-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 2px solid #cce0ff;
        border-radius: 0;
        padding: 20px;
        background-color: #f9fcff;
    }

    .docs-sidebar h3 {
        font-size: 1rem;
        margin-top: 15px;
    }

    .docs-content {
        border-radius: 0;
        padding: 25px 18px;
        height: auto;
        overflow: visible;
    }

    .docs-header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .docs-header h1 {
        font-size: 1.4rem;
    }

    .docs-search {
        width: 100%;
        max-width: none;
        margin-top: 10px;
    }

    .docs-sidebar a {
        padding: 8px 0;
    }

    .docs-content pre {
        font-size: 0.9rem;
    }
}
