:root {
    --onyx-dark: #1a1c1f;
    --onyx-darker: #121416;
    --onyx-primary: #2b2d31;
    --onyx-secondary: #36393f;
    --onyx-accent: #5865f2;
    --onyx-text: #dbdee1;
    --onyx-text-muted: #72767d;
    --onyx-border: #1e2023;
    --onyx-code-bg: #1e2124;
    --onyx-warning-bg: rgba(250, 166, 26, 0.15);
    --onyx-card-bg: rgba(32, 34, 37, 0.6);
    --onyx-code-header: #232428;
    --onyx-code-green: #7fe48b;
    --onyx-code-purple: #d68cfa;
    --onyx-code-blue: #6fb1fc;
    --onyx-code-yellow: #f8d775;
    --onyx-code-red: #f87d7d;
    --onyx-code-orange: #faa356;
    --onyx-code-gray: #7d818a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--onyx-dark);
    color: var(--onyx-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.docs-header {
    background-color: var(--onyx-darker);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--onyx-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo i {
    color: var(--onyx-accent);
    font-size: 1.6rem;
}

.header-nav {
    display: flex;
    gap: 1.5rem;
}

.header-nav a {
    color: var(--onyx-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.header-nav a:hover {
    color: var(--onyx-text);
}

.header-nav a.active {
    color: var(--onyx-accent);
}

.docs-container {
    display: flex;
    min-height: calc(100vh - 56px);
}

.docs-sidebar {
    width: 260px;
    background-color: var(--onyx-darker);
    padding: 1.2rem;
    border-right: 1px solid var(--onyx-border);
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.docs-search {
    display: flex;
    margin-bottom: 1.2rem;
    position: relative;
}

.docs-search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    background-color: var(--onyx-primary);
    border: 1px solid var(--onyx-border);
    border-radius: 4px;
    color: var(--onyx-text);
    padding-right: 2.5rem;
    font-size: 0.9rem;
}

.docs-search-button {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--onyx-text-muted);
    cursor: pointer;
    font-size: 0.95rem;
}

.docs-nav {
    margin-top: 0.8rem;
}

.docs-nav-section {
    margin-bottom: 1.2rem;
}

.docs-nav-title {
    color: var(--onyx-text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
    padding-left: 0.6rem;
}

.docs-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-nav li {
    margin-bottom: 0.2rem;
}

.docs-nav a {
    display: block;
    padding: 0.5rem 0.8rem;
    color: var(--onyx-text-muted);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.86rem;
}

.docs-nav a:hover {
    background-color: var(--onyx-primary);
    color: var(--onyx-text);
}

.docs-nav a.active {
    background-color: var(--onyx-primary);
    color: var(--onyx-accent);
    font-weight: 500;
}

.docs-content {
    flex: 1;
    padding: 1.8rem 2.5rem;
    max-width: 900px;
    background-color: var(--onyx-dark);
}

.docs-content-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--onyx-border);
}

.docs-content-header h1 {
    color: white;
    margin-bottom: 0.4rem;
    font-size: 1.8rem;
}

.docs-description {
    color: var(--onyx-text-muted);
    font-size: 1rem;
}

.docs-section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 20px;
}

.docs-section h2 {
    color: white;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--onyx-border);
    font-size: 1.4rem;
}

.docs-section h3 {
    color: white;
    margin: 1.6rem 0 0.8rem 0;
    font-size: 1.15rem;
}

.docs-section h4 {
    color: var(--onyx-text);
    margin: 1.2rem 0 0.6rem 0;
    font-size: 1.05rem;
}

.docs-section p,
.docs-section ul,
.docs-section ol {
    line-height: 1.7;
    color: var(--onyx-text);
    margin-bottom: 1.1rem;
    font-size: 0.93rem;
}

.docs-section ul,
.docs-section ol {
    padding-left: 1.5rem;
}

.docs-section li {
    margin-bottom: 0.4rem;
}

.docs-section a {
    color: var(--onyx-accent);
    text-decoration: none;
}

.docs-section a:hover {
    text-decoration: underline;
}

.docs-warning {
    display: flex;
    background-color: var(--onyx-warning-bg);
    border-left: 3px solid #faa61a;
    padding: 0.9rem;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

.docs-warning-icon {
    color: #faa61a;
    margin-right: 0.9rem;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.docs-warning-content {
    flex: 1;
    font-size: 0.92rem;
}

.docs-warning-content strong {
    color: #faa61a;
}

.docs-code-block {
    background-color: var(--onyx-code-bg);
    border-radius: 6px;
    margin: 1.5rem 0;
    overflow: hidden;
    border: 1px solid var(--onyx-border);
}

.docs-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--onyx-code-header);
    border-bottom: 1px solid var(--onyx-border);
    color: var(--onyx-text-muted);
    font-size: 0.78rem;
}

.docs-copy-button {
    background: none;
    border: none;
    color: var(--onyx-text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.docs-copy-button:hover {
    color: var(--onyx-text);
}

.docs-code-block pre {
    margin: 0;
    padding: 1.1rem;
    overflow-x: auto;
}

.docs-code-block code {
    font-family: 'Consolas', 'Monaco', 'Andale Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.5;
    display: block;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: var(--onyx-code-gray);
}

.token.punctuation {
    color: var(--onyx-text);
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
    color: var(--onyx-code-purple);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: var(--onyx-code-green);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: var(--onyx-code-orange);
}

.token.atrule,
.token.attr-value,
.token.keyword {
    color: var(--onyx-code-blue);
}

.token.function,
.token.class-name {
    color: var(--onyx-code-yellow);
}

.token.regex,
.token.important,
.token.variable {
    color: var(--onyx-code-red);
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.3rem 0;
    font-size: 0.88rem;
}

.docs-table th {
    background-color: var(--onyx-primary);
    color: white;
    text-align: left;
    padding: 0.7rem 1rem;
    font-weight: 500;
}

.docs-table td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--onyx-border);
    color: var(--onyx-text);
}

.docs-table tr:nth-child(even) {
    background-color: rgba(32, 34, 37, 0.3);
}

.docs-table tr:hover {
    background-color: var(--onyx-primary);
}

.docs-footer {
    margin-top: 3rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--onyx-border);
    text-align: center;
    color: var(--onyx-text-muted);
    font-size: 0.88rem;
}

.docs-footer a {
    color: var(--onyx-accent);
    text-decoration: none;
}

.docs-footer a:hover {
    text-decoration: underline;
}

.docs-accordion {
    margin: 1.3rem 0;
    border-radius: 6px;
    overflow: hidden;
}

.docs-accordion-item {
    border-bottom: 1px solid var(--onyx-border);
}

.docs-accordion-item:last-child {
    border-bottom: none;
}

.docs-accordion-button {
    width: 100%;
    padding: 0.9rem 1rem;
    background-color: var(--onyx-primary);
    border: none;
    color: var(--onyx-text);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.docs-accordion-button:hover {
    background-color: var(--onyx-secondary);
}

.docs-accordion-button i {
    transition: transform 0.2s ease;
    font-size: 0.8rem;
}

.docs-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--onyx-card-bg);
}

.docs-accordion-content-inner {
    padding: 1rem;
}

.docs-accordion-item.active .docs-accordion-content {
    max-height: 500px;
}

.docs-accordion-item.active .docs-accordion-button i {
    transform: rotate(180deg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 4px;
    border: 1px solid var(--onyx-border);
}

@media (max-width: 1024px) {
    .docs-container {
        flex-direction: column;
    }
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--onyx-border);
        top: 0;
    }
    .docs-content {
        padding: 1.5rem;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .docs-header {
        padding: 0.7rem 1.2rem;
    }
    .header-logo {
        font-size: 1.2rem;
    }
    .header-nav {
        display: none;
    }
    .docs-content {
        padding: 1.2rem;
    }
    .docs-content-header h1 {
        font-size: 1.5rem;
    }
    .docs-section h2 {
        font-size: 1.3rem;
    }
    .docs-code-block pre {
        padding: 1rem;
    }
    .docs-code-block code {
        font-size: 0.78rem;
    }
    .docs-table {
        font-size: 0.82rem;
    }
    .docs-table th,
    .docs-table td {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .docs-content {
        padding: 1rem;
    }
    .docs-code-block pre {
        padding: 0.8rem;
    }
    .docs-code-block code {
        font-size: 0.75rem;
    }
    .docs-warning {
        flex-direction: column;
    }
    .docs-warning-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

.imghead {
    border-radius: 18px;
}