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

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #0a0a0a;
    color: #ccc;
    line-height: 1.6;
}

a {
    color: #0f0;
    text-decoration: none;
}

a:hover {
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
}

code {
    font-family: "Consolas", "Courier New", monospace;
    background: #1a1a1a;
    color: #0f0;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid #333;
}

.wiki-layout {
    display: flex;
    min-height: 100vh;
}

.wiki-sidebar {
    width: 220px;
    min-width: 220px;
    background: #111;
    border-right: 1px solid #222;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.wiki-version {
    padding: 0 15px 15px;
    border-bottom: 1px solid #222;
    margin-bottom: 10px;
    font-size: 0.85em;
}

.wiki-version a {
    color: #0f0;
    font-weight: bold;
}

.wiki-nav {
    display: flex;
    flex-direction: column;
}

.wiki-nav-link {
    padding: 6px 15px;
    color: #999;
    font-size: 0.9em;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.wiki-nav-link:hover {
    color: #0f0;
    background: rgba(0, 255, 0, 0.05);
    border-left-color: #0f0;
}

.wiki-nav-link.active {
    color: #0f0;
    background: rgba(0, 255, 0, 0.08);
    border-left-color: #0f0;
    font-weight: bold;
}

.wiki-content {
    flex: 1;
    padding: 30px 40px;
    max-width: 820px;
}

.wiki-class-name {
    font-size: 2em;
    color: #0f0;
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.wiki-class-desc {
    color: #888;
    margin-bottom: 25px;
    font-size: 1.05em;
}

.wiki-toc {
    background: #111;
    border: 1px solid #222;
    border-radius: 5px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.wiki-toc h3 {
    color: #0f0;
    font-size: 1em;
    margin-bottom: 10px;
}

.wiki-toc ul {
    list-style: none;
}

.wiki-toc li {
    margin: 4px 0;
}

.wiki-toc a {
    color: #0f0;
    font-size: 0.9em;
    opacity: 0.8;
}

.wiki-toc a:hover {
    opacity: 1;
}

.wiki-section-header {
    color: #0f0;
    font-size: 1.4em;
    margin: 30px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.wiki-entry {
    margin: 15px 0;
    padding: 15px 20px;
    background: #111;
    border: 1px solid #222;
    border-radius: 5px;
    transition: border-color 0.2s ease;
}

.wiki-entry:hover {
    border-color: #333;
}

.wiki-entry-name {
    color: #0f0;
    font-size: 1.1em;
    margin-bottom: 10px;
    font-family: "Consolas", "Courier New", monospace;
}

.wiki-syntax {
    margin: 5px 0;
    font-size: 0.95em;
}

.wiki-syntax code {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 2px 8px;
    font-size: 0.95em;
}

.wiki-returns {
    margin: 5px 0;
    font-size: 0.95em;
}

.wiki-returns-section {
    margin: 5px 0;
    font-size: 0.95em;
}

.wiki-desc {
    margin: 8px 0 0;
    color: #aaa;
    font-size: 0.95em;
}

.wiki-label {
    color: #666;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wiki-param-list {
    margin: 8px 0;
}

.wiki-param-list ul {
    list-style: none;
    margin: 5px 0 0 15px;
}

.wiki-param-list li {
    margin: 3px 0;
    font-size: 0.93em;
}

.wiki-param-name {
    font-size: 0.95em;
}

.wiki-param-type {
    color: #888;
    font-size: 0.9em;
}

.wiki-version-text {
    color: #666;
    margin-bottom: 20px;
}

h2 {
    color: #0f0;
    font-size: 1.3em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.wiki-class-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.wiki-class-list li {
    margin: 0;
}

.wiki-class-list a {
    display: block;
    padding: 10px 15px;
    background: #111;
    border: 1px solid #222;
    border-radius: 4px;
    color: #0f0;
    transition: all 0.2s ease;
}

.wiki-class-list a:hover {
    background: rgba(0, 255, 0, 0.08);
    border-color: #0f0;
}

.wiki-index {
    width: 200px;
    min-width: 200px;
    background: #111;
    border-left: 1px solid #222;
    padding: 20px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.wiki-index-header {
    padding: 0 15px 10px;
    border-bottom: 1px solid #222;
    margin-bottom: 8px;
    color: #0f0;
    font-weight: bold;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wiki-index-list {
    list-style: none;
}

.wiki-index-list li {
    margin: 0;
}

.wiki-index-list a {
    display: block;
    padding: 3px 15px;
    color: #777;
    font-size: 0.78em;
    font-family: "Consolas", "Courier New", monospace;
    border-left: 2px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wiki-index-list a:hover {
    color: #0f0;
    background: rgba(0, 255, 0, 0.04);
    border-left-color: #0f0;
}

@media (max-width: 1100px) {
    .wiki-index {
        display: none;
    }
}

@media (max-width: 768px) {
    .wiki-layout {
        flex-direction: column;
    }

    .wiki-sidebar {
        width: 100%;
        min-width: auto;
        height: auto;
        position: static;
        padding: 10px 0;
    }

    .wiki-content {
        padding: 20px;
    }

    .wiki-class-list {
        grid-template-columns: 1fr;
    }
}