:root {
    --bg-main: #111112;
    --bg-surface: #161619;
    --bg-surface-elevated: #1c1c20;
    --bg-hover: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-hover: rgba(255, 255, 255, 0.18);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.45);
    --accent-mint: #00f59b;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Google Sans Code', ui-monospace, SFMono-Regular, monospace;
}

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

html {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-ui);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 16px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    vertical-align: middle;
}

.docs-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #111112;
    border-bottom: 1px solid var(--border-subtle);
}

.docs-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 2rem;
    max-width: 1540px;
    margin: 0 auto;
    width: 100%;
}

.docs-logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
}

.docs-logo-title {
    font-family: var(--font-code);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.docs-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 6px 14px;
    width: 280px;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.docs-search-bar:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-elevated);
}

.docs-search-bar kbd {
    font-family: var(--font-code);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    color: var(--text-muted);
}

.docs-header-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.docs-nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.docs-nav-link:hover {
    color: #ffffff;
}

.companyLogoImg {
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.docs-subnav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 0 2rem;
    max-width: 1540px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.docs-subnav-item {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 500;
    padding: 10px 2px 11px 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    transition: color 0.15s ease;
}

.docs-subnav-item:hover {
    color: var(--text-primary);
}

.docs-subnav-item.active {
    color: #ffffff;
}

.docs-subnav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-sidebar-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px;
    color: var(--text-secondary);
    cursor: pointer;
}

.docs-container {
    display: flex;
    max-width: 1540px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem 2rem;
    gap: 2.5rem;
    flex: 1;
}

.docs-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
    padding-right: 12px;
}

.docs-sidebar-section {
    margin-bottom: 1.8rem;
}

.docs-sidebar-heading {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    padding-left: 10px;
}

.docs-sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.docs-sidebar-link:hover {
    color: var(--text-primary);
    background-color: var(--bg-hover);
}

.docs-sidebar-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.09);
    font-weight: 500;
}

.docs-content {
    flex: 1;
    min-width: 0;
    max-width: 820px;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.docs-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.docs-breadcrumb a:hover {
    color: var(--text-secondary);
}

.docs-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.docs-main-title {
    font-family: var(--font-code);
    font-size: 2.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.docs-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 9999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    user-select: none;
}

.docs-action-btn:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--border-hover);
    color: #ffffff;
}

.docs-action-btn .material-symbols-outlined {
    font-size: 15px;
}

.docs-action-btn.copied {
    border-color: rgba(0, 245, 155, 0.4);
    color: var(--accent-mint);
}

.docs-subtitle {
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.docs-body h2 {
    font-family: var(--font-code);
    font-size: 1.45rem;
    font-weight: 500;
    color: #ffffff;
    margin: 2.2rem 0 0.8rem 0;
    letter-spacing: -0.01em;
}

.docs-body p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.2rem;
}

.docs-body strong {
    color: #ffffff;
    font-weight: 600;
}

.docs-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 18px 20px;
    margin: 1.5rem 0;
    transition: border-color 0.15s ease;
}

.docs-card:hover {
    border-color: var(--border-hover);
}

.docs-callout {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 9px;
    background: #161619;
    border: 1px solid var(--border-subtle);
    margin: 1.5rem 0;
}

.docs-callout-icon {
    display: flex;
    align-items: flex-start;
    color: var(--text-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.docs-callout-text {
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.docMainImage {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 220px;
    background-color: #161619;
    border: 1px dashed var(--border-subtle);
    border-radius: 8px;
    margin: 1.5rem 0;
    object-fit: cover;
}

.docs-code-block {
    background: #111114;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.4rem 0;
}

.docs-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: #151518;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.docs-code-copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    transition: color 0.15s ease;
}

.docs-code-copy-btn:hover {
    color: #ffffff;
}

.docs-code-pre {
    padding: 14px 16px;
    font-family: var(--font-code);
    font-size: 0.86rem;
    line-height: 1.55;
    color: #cbd5e1;
    overflow-x: auto;
}

.docs-page-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 3.5rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--border-subtle);
}

.docs-page-nav-link {
    display: flex;
    flex-direction: column;
    padding: 14px 18px;
    border-radius: 9px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    min-width: 180px;
}

.docs-page-nav-link:hover {
    border-color: var(--border-hover);
    background: var(--bg-surface-elevated);
}

.docs-page-nav-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.docs-page-nav-title {
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 500;
}

.docs-page-nav-link.next {
    margin-left: auto;
    text-align: right;
}

.docs-toc-sidebar {
    width: 220px;
    flex-shrink: 0;
    position: sticky;
    top: 110px;
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.docs-toc-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.docs-toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-left: 1px solid var(--border-subtle);
    padding-left: 10px;
}

.docs-toc-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.83rem;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.docs-toc-link:hover {
    color: var(--text-primary);
}

.docs-toc-link.active {
    color: #ffffff;
    font-weight: 500;
}

@media (max-width: 1160px) {
    .docs-toc-sidebar {
        display: none;
    }
}

@media (max-width: 820px) {
    .docs-sidebar {
        display: none;
    }
    .docs-header-main {
        padding: 0.8rem 1rem;
    }
    .docs-search-bar {
        display: none;
    }
    .mobile-sidebar-toggle {
        display: block;
    }
    .docs-container {
        padding: 1rem 1rem 3rem 1rem;
    }
}

.search-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    box-sizing: border-box;
}

.search-modal-backdrop.open {
    display: flex;
}

.search-modal-panel {
    background: #161619;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    animation: modalSlideIn 0.18s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.search-input-icon {
    color: rgba(255, 255, 255, 0.45);
    font-size: 20px;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-close-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.search-close-btn:hover {
    color: #ffffff;
}

.search-results-list {
    max-height: 340px;
    overflow-y: auto;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.12s ease;
    cursor: pointer;
}

.search-result-item:hover,
.search-result-item.selected {
    background-color: rgba(255, 255, 255, 0.08);
}

.search-result-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-icon {
    color: #00f59b;
    font-size: 18px;
}

.search-result-title {
    font-size: 0.92rem;
    font-weight: 500;
}

.search-result-desc {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.search-result-url {
    font-family: 'Google Sans Code', monospace;
    font-size: 0.74rem;
    color: #00f59b;
    margin-top: 3px;
    letter-spacing: -0.01em;
}

.search-modal-footer {
    padding: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.search-modal-footer kbd {
    font-family: 'Google Sans Code', monospace;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 3px;
    padding: 1px 4px;
    color: rgba(255, 255, 255, 0.6);
}
