@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Mobile Responsive Fix for VPDoc */
@media (max-width: 768px) {
    .VPDoc {
        flex: 1 !important;
        min-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .VPDoc .vp-doc {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }

    .container.mx-auto {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    .flex.gap-6 {
        flex-direction: column !important;
        gap: 1rem !important;
    }
}

/* ── Enhanced Code Block Styles ── */
pre[class*="language-"] {
    position: relative;
    background: #1e1e2e !important;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 1rem;
    margin: 1rem 0;
    overflow: auto;
    box-shadow: none;
    transition: all 0.2s ease;
}

pre[class*="language-"]:hover {
    border-color: #4c5062;
    box-shadow: none;
}

.dark pre[class*="language-"] {
    background: #0d1117 !important;
    border-color: #30363d;
}

.dark pre[class*="language-"]:hover {
    border-color: #4c5062;
}

/* Code block header with language indicator - HIDDEN */
pre[class*="language-"]::before {
    display: none;
}

/* Inline code styling */
:not(pre)>code[class*="language-"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.875em;
    font-weight: 500;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

:not(pre)>code[class*="language-"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Enhanced syntax highlighting - GitHub/Laravel style */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
    color: #6e7681;
    font-style: italic;
}

.token.punctuation {
    color: #24292f;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
    color: #d73a49;
}

.token.boolean,
.token.number {
    color: #005cc5;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
    color: #032f62;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
    color: #d73a49;
}

.token.atrule,
.token.attr-value,
.token.class-name,
.token.function {
    color: #6f42c1;
}

.token.keyword {
    color: #d73a49;
    font-weight: 600;
}

.token.regex,
.token.important,
.token.variable {
    color: #e36209;
}

/* Line numbers styling - Dark theme style */
pre[class*="language-"].line-numbers {
    padding-left: 3.8rem;
    position: relative;
}

.line-numbers .line-numbers-rows {
    border-right: 1px solid #30363d;
    background: #1e1e2e;
    border-radius: 6px 0 0 6px;
    padding: 1rem 0;
}

.line-numbers-rows>span:before {
    color: #7d8590;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 1.45;
    padding-right: 1rem;
}

.dark .line-numbers .line-numbers-rows {
    border-right-color: #30363d;
    background: #0d1117;
}

.dark .line-numbers-rows>span:before {
    color: #7d8590;
}

/* Toolbar styling - Minimal copy icon */
div.code-toolbar>.toolbar {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    padding: 0;
    opacity: 1;
    transition: all 0.2s ease;
}

div.code-toolbar>.toolbar>.toolbar-item>button,
div.code-toolbar>.toolbar>.toolbar-item>a {
    background: transparent;
    color: #d1d5db;
    border: none;
    padding: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: auto;
    min-height: auto;
}

div.code-toolbar>.toolbar>.toolbar-item>button:hover,
div.code-toolbar>.toolbar>.toolbar-item>a:hover {
    background: transparent;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Copy button with icon only */
div.code-toolbar>.toolbar>.toolbar-item>button[title*="Copy"] {
    background: transparent;
    color: #d1d5db;
    border: none;
    padding: 4px;
}

div.code-toolbar>.toolbar>.toolbar-item>button[title*="Copy"]:hover {
    background: transparent;
    color: #ffffff;
}

/* Hide all toolbar items except copy */
div.code-toolbar>.toolbar>.toolbar-item:not(:has(button[title*="Copy"])) {
    display: none;
}

/* Code block focus effect */
pre[class*="language-"]:focus-within {
    outline: 2px solid #374151;
    border-color: #4b5563;
}

/* Responsive code blocks */
@media (max-width: 768px) {
    pre[class*="language-"] {
        border-radius: 8px;
        padding: 1rem;
        margin: 1rem 0;
    }

    pre[class*="language-"]::before {
        font-size: 10px;
        padding: 3px 8px;
        border-radius: 0 8px 0 6px;
    }

    :not(pre)>code[class*="language-"] {
        font-size: 0.8em;
        padding: 0.2rem 0.4rem;
    }
}

/* Scrollbar styling for code blocks */
pre[class*="language-"]::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

pre[class*="language-"]::-webkit-scrollbar-track {
    background: #1f2937;
    border-radius: 4px;
}

pre[class*="language-"]::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

pre[class*="language-"]::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Dark mode scrollbar adjustments */
.dark pre[class*="language-"]::-webkit-scrollbar-track {
    background: #0d1117;
}

.dark pre[class*="language-"]::-webkit-scrollbar-thumb {
    background: #30363d;
}

.dark pre[class*="language-"]::-webkit-scrollbar-thumb:hover {
    background: #4c5062;
}

/* ── Search Modal Styles ── */
#search-modal-overlay {
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.2s ease-out;
}

#search-modal-overlay.flex {
    display: flex;
}

.search-modal-content {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.3s ease-out;
}

.dark .search-modal-content {
    background: #1c2333;
    border-color: rgba(255, 255, 255, 0.1);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #e5e7eb;
    min-height: 60px;
}

.dark .search-input-wrapper {
    border-color: #374151;
}

.search-input-wrapper svg {
    color: #6b7280;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

#search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.dark #search-input {
    color: white;
}

#search-input::placeholder {
    color: #9ca3af;
}

.dark #search-input::placeholder {
    color: #6b7280;
}

.search-results {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.search-result-item {
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    margin-bottom: 0.25rem;
}

.search-result-item:hover,
.search-result-item.selected {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.dark .search-result-item:hover,
.dark .search-result-item.selected {
    background: #374151;
    border-color: #4b5563;
}

.result-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.result-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.dark .result-title {
    color: white;
}

.result-badges {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.version-badge {
    padding: 0.125rem 0.5rem;
    font-size: 10px;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 9999px;
}

.dark .version-badge {
    background: #1e3a8a;
    color: #93c5fd;
}

.match-badge {
    padding: 0.125rem 0.5rem;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
}

.match-badge.exact {
    background: #d1fae5;
    color: #065f46;
}

.match-badge.heading {
    background: #dbeafe;
    color: #1e40af;
}

.match-badge.partial,
.match-badge.strong {
    background: #fed7aa;
    color: #92400e;
}

.match-badge.content {
    background: #f3f4f6;
    color: #6b7280;
}

.dark .match-badge.exact {
    background: #064e3b;
    color: #6ee7b7;
}

.dark .match-badge.heading {
    background: #1e3a8a;
    color: #93c5fd;
}

.dark .match-badge.partial,
.dark .match-badge.strong {
    background: #92400e;
    color: #fbbf24;
}

.dark .match-badge.content {
    background: #374151;
    color: #9ca3af;
}

.matched-headings {
    margin-bottom: 0.5rem;
}

.headings-label {
    font-size: 11px;
    color: #6b7280;
    margin-right: 0.5rem;
}

.dark .headings-label {
    color: #9ca3af;
}

.heading-tag {
    display: inline-block;
    padding: 0.125rem 0.375rem;
    font-size: 10px;
    background: #f3f4f6;
    color: #374151;
    border-radius: 4px;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

.dark .heading-tag {
    background: #374151;
    color: #d1d5db;
}

.more-headings {
    font-size: 10px;
    color: #6b7280;
}

.dark .more-headings {
    color: #9ca3af;
}

.result-snippet {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.dark .result-snippet {
    color: #9ca3af;
}

.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
}

.result-url {
    font-family: 'JetBrains Mono', monospace;
}

.result-score {
    opacity: 0.7;
}

/* Popular Pages */
.popular-pages {
    padding: 1rem;
}

.popular-header {
    margin-bottom: 1rem;
}

.popular-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.dark .popular-header h3 {
    color: white;
}

.popular-header p {
    font-size: 13px;
    color: #6b7280;
}

.dark .popular-header p {
    color: #9ca3af;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.popular-item {
    display: block;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.popular-item:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

.dark .popular-item {
    border-color: #374151;
    background: #1f2937;
}

.dark .popular-item:hover {
    border-color: #3b82f6;
    background: #374151;
}

.popular-title {
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    margin-bottom: 0.25rem;
}

.dark .popular-title {
    color: white;
}

.popular-description {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.dark .popular-description {
    color: #9ca3af;
}

.popular-version {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.125rem 0.375rem;
    font-size: 9px;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
}

.dark .popular-version {
    background: #1e3a8a;
    color: #93c5fd;
}

/* Loading State */
.search-loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

.no-results-icon {
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-icon svg {
    width: 48px;
    height: 48px;
    margin: 0 auto;
}

.no-results h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.dark .no-results h3 {
    color: white;
}

.no-results p {
    font-size: 14px;
    margin-bottom: 1rem;
}

.search-tips {
    text-align: left;
    background: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.dark .search-tips {
    background: #374151;
}

.search-tips p {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.search-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-tips li {
    padding: 0.25rem 0;
    font-size: 13px;
}

.search-tips li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Error State */
.search-error {
    text-align: center;
    padding: 2rem;
    color: #dc2626;
}

.error-icon {
    font-size: 24px;
    margin-bottom: 1rem;
}

.search-error h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Highlighting */
mark {
    background-color: #fef3c7;
    color: #92400e;
    padding: 1px 2px;
    border-radius: 2px;
    font-weight: 500;
}

.dark mark {
    background-color: #92400e;
    color: #fef3c7;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 640px) {
    #search-modal-overlay {
        padding: 1rem;
    }

    .search-modal-content {
        max-width: 100%;
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .result-badges {
        align-self: flex-end;
    }
}

/* ── Unique Design Tokens (Light) ── */
:root {
    /* Primary Brand Colors */
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-300: #7dd3fc;
    --primary-400: #38bdf8;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --primary-900: #0c4a6e;

    /* Accent Colors */
    --accent-50: #fdf4ff;
    --accent-100: #fae8ff;
    --accent-200: #f5d0fe;
    --accent-300: #f0abfc;
    --accent-400: #e879f9;
    --accent-500: #d946ef;
    --accent-600: #c026d3;
    --accent-700: #a21caf;
    --accent-800: #86198f;
    --accent-900: #701a75;

    /* Neutral Colors */
    --neutral-0: #ffffff;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-400: #a3a3a3;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --neutral-950: #0a0a0a;

    /* Semantic Colors */
    --success-50: #f0fdf4;
    --success-500: #22c55e;
    --success-600: #16a34a;

    --warning-50: #fffbeb;
    --warning-500: #f59e0b;
    --warning-600: #d97706;

    --error-50: #fef2f2;
    --error-500: #ef4444;
    --error-600: #dc2626;

    /* Code Colors */
    --code-bg: #1e1e1e;
    --code-border: #333333;
    --code-comment: #6b7280;
    --code-keyword: #f59e0b;
    --code-string: #10b981;
    --code-function: #3b82f6;
    --code-variable: #e5e7eb;
    --code-class: #8b5cf6;
    --code-number: #ef4444;

    /* Layout */
    --sidebar-width: 280px;
    --toc-width: 240px;
    --header-height: 64px;
    --content-max-width: 1200px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --gradient-neutral: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
}

/* ── Dark Mode Design Tokens ── */
.dark {
    --neutral-0: #0a0a0a;
    --neutral-50: #171717;
    --neutral-100: #262626;
    --neutral-200: #404040;
    --neutral-300: #525252;
    --neutral-400: #737373;
    --neutral-500: #a3a3a3;
    --neutral-600: #d4d4d4;
    --neutral-700: #e5e5e5;
    --neutral-800: #f5f5f5;
    --neutral-900: #fafafa;
    --neutral-950: #ffffff;

    --code-bg: #0a0a0a;
    --code-border: #262626;
    --code-comment: #737373;
    --code-keyword: #fbbf24;
    --code-string: #34d399;
    --code-function: #60a5fa;
    --code-variable: #d4d4d4;
    --code-class: #a78bfa;
    --code-number: #f87171;
}

*, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: unset !important;
}

h1, h2, h3, h4, h5, h6:not(.home) {
    padding: 25px 0px 5px 0px;
}

/* ── Documentation Layout Only ── */
body.docs:not(.home) {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--neutral-900);
    background-color: var(--neutral-0);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dark body.docs:not(.home) {
    color: #e5e5e5;
    background-color: #171717;
}

/* ── Amazing Dark Mode Toggle ── */
.theme-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--gradient-neutral);
    border-radius: 100px;
    border: 2px solid var(--neutral-200);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.theme-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .theme-toggle {
    background: var(--gradient-primary);
    border-color: var(--primary-600);
}

.dark .theme-toggle::before {
    transform: translateX(28px);
    background: var(--neutral-100);
}

.dark .theme-toggle::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Sun/Moon Icons */
.theme-toggle .icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .sun-icon {
    left: 6px;
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

.theme-toggle .moon-icon {
    right: 6px;
    opacity: 0;
    transform: translateY(-50%) rotate(-180deg);
}

.dark .theme-toggle .sun-icon {
    opacity: 0;
    transform: translateY(-50%) rotate(180deg);
}

.dark .theme-toggle .moon-icon {
    opacity: 1;
    transform: translateY(-50%) rotate(0deg);
}

/* ── Unique Header Design ── */
body.docs:not(.home) .VPNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.dark body.docs:not(.home) .VPNav {
    background: rgba(10, 10, 10, 0.8);
    border-bottom-color: var(--neutral-800);
}

body.docs:not(.home) .VPNavBar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.docs:not(.home) .VPNavBarTitle {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-900);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

body.docs:not(.home) .VPNavBarTitle:hover {
    transform: translateY(-1px);
}

.dark body.docs:not(.home) .VPNavBarTitle {
    color: var(--neutral-900);
}

body.docs:not(.home) .VPSidebar {
    position: sticky;
    top: var(--header-height);
    width: 256px;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    z-index: 40;
    margin-top: 35px;
}

.dark body.docs:not(.home) .VPSidebar {
    background: var(--neutral-50);
    border-right-color: var(--374151);
}

body.docs:not(.home) .VPSidebarGroup {
    margin-bottom: 24px;
}

body.docs:not(.home) .VPSidebarGroup.collapsed .VPSidebarGroup-items {
    display: none;
}

body.docs:not(.home) .VPSidebarGroup-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--6b7280);
    padding: 0 24px;
    margin-bottom: 8px;
    cursor: default;
}

body.docs:not(.home) .VPSidebarGroup-title .caret {
    display: none;
}

body.docs:not(.home) .VPSidebarGroup-items {
    padding: 0;
}

body.docs:not(.home) .VPSidebarGroup-items .VPSidebarItem {
    padding-left: 32px;
}

body.docs:not(.home) .VPSidebarItem {
    display: block;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 400;
    color: var(--374151);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

body.docs:not(.home) .VPSidebarItem:hover {
    color: var(--0ea5e9);
    background-color: var(--f3f4f6);
}

body.docs:not(.home) .VPSidebarItem.active {
    color: var(--0ea5e9);
    background-color: var(--eff6ff);
    border-left-color: var(--0ea5e9);

}

.dark body.docs:not(.home) .VPSidebarGroup-title {
    color: var(--9ca3af);
}

.dark body.docs:not(.home) .VPSidebarItem {
    color: var(--d1d5db);
}

.dark body.docs:not(.home) .VPSidebarItem:hover {
    color: var(--60a5fa);
    background-color: var(--1f2937);
}

.dark body.docs:not(.home) .VPSidebarItem.active {
    color: var(--60a5fa);
    background-color: var(--1e3a8a);
    border-left-color: var(--60a5fa);
}

/* ── Unique TOC Design ── */
body.docs:not(.home) .VPDocAside {
    position: sticky;
    top: var(--header-height);
    background: var(--neutral-0);
    border-left: none;
    overflow-y: auto;
    padding: 12px 8px;
    flex-shrink: 0;
    height: calc(100vh - var(--header-height));
    width: 180px;
    max-width: 180px;
    min-width: 160px;
}

.dark body.docs:not(.home) .VPDocAside {
    background: var(--neutral-50);
    border-left: none;
}

body.docs:not(.home) .VPDocAside-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--6b7280);
    margin-bottom: 16px;
}

body.docs:not(.home) .VPDocAside-link {
    display: block;
    padding: 6px 0;
    font-size: 13px;
    font-weight: 400;
    color: var(--6b7280);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.4;
}

body.docs:not(.home) .VPDocAside-link:hover {
    color: var(--0ea5e9);
}

body.docs:not(.home) .VPDocAside-link.active {
    color: var(--0ea5e9);
    font-weight: 600;
    border-left: 3px solid #807CFB;
    padding-left: 13px;
    /* Compensate for border width */
}

.dark body.docs:not(.home) .VPDocAside-title {
    color: var(--9ca3af);
}

.dark body.docs:not(.home) .VPDocAside-link {
    color: var(--9ca3af);
}

.dark body.docs:not(.home) .VPDocAside-link:hover {
    color: var(--60a5fa);
}

.dark body.docs:not(.home) .VPDocAside-link.active {
    color: var(--60a5fa);
    border-left-color: var(--60a5fa);
}

body.docs:not(.home) .VPDocAside-link.level-2 {
    font-size: 12px;
}

body.docs:not(.home) .VPDocAside-link.level-3 {
    padding-left: 22px;
    font-size: 11px;
}

/* ── Content Layout ── */
body.docs:not(.home) .VPContent {
    padding-top: var(--header-height);
    min-height: 100vh;
}

body.docs:not(.home) .VPDoc {
    padding: 48px 32px 64px;
}

/* ── Typography & Content ── */
body.docs:not(.home) .vp-doc {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.8;
    color: var(--neutral-900);
    font-weight: 400;
}

.dark body.docs:not(.home) .vp-doc {
    color: var(--neutral-900);
}

body.docs:not(.home) .vp-doc h1 {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 32px 0;
    color: var(--neutral-900);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dark body.docs:not(.home) .vp-doc h1 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--neutral-900);
    text-align: left;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.docs:not(.home) .vp-doc h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--neutral-900);
    text-align: left;
}

body.docs:not(.home) .vp-doc h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.dark body.docs:not(.home) .vp-doc h2 {
    color: var(--neutral-900);
}

body.docs:not(.home) .vp-doc h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--neutral-900);
    text-align: left;
}

.dark body.docs:not(.home) .vp-doc h3 {
    color: var(--neutral-900);
}

body.docs:not(.home) .vp-doc h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--neutral-900);
    text-align: left;
}

body.docs:not(.home) .vp-doc h5 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--neutral-900);
    text-align: left;
}

body.docs:not(.home) .vp-doc h6 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--neutral-900);
    text-align: left;
}

body.docs:not(.home) .vp-doc p {
    margin: 20px 0;
}

body.docs:not(.home) .vp-doc a {
    color: #8486FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

body.docs:not(.home) .vp-doc a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #8486FF;
    transition: width 0.3s ease;
}

body.docs:not(.home) .vp-doc a:hover {
    color: #6B6ADF;
}

body.docs:not(.home) .vp-doc a:hover::after {
    width: 100%;
}

body.docs:not(.home) .vp-doc p,
body.docs:not(.home) .vp-doc ul,
body.docs:not(.home) .vp-doc ol,
body.docs:not(.home) .vp-doc li,
body.docs:not(.home) .vp-doc blockquote,
body.docs:not(.home) .vp-doc td,
body.docs:not(.home) .vp-doc th {
    font-weight: 400;
}

body.docs:not(.home) .vp-doc ul, body.docs:not(.home) .vp-doc ol {
    margin: 16px 0;
    padding-left: 24px;
    list-style: revert;
    font-weight: 400;
}

.vp-doc ul li {
    list-style-type: disc;
    margin: 8px 0;
    line-height: 1.6;
}

.vp-doc ol li {
    list-style-type: decimal;
    margin: 8px 0;
    line-height: 1.6;
}

body.docs:not(.home) .vp-doc blockquote {
    margin: 24px 0;
    padding: 16px 10px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-left: 4px solid #f16376;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
    line-height: 1.6;
}

body.docs:not(.home) .vp-doc blockquote p {
    margin: 0;
    padding-left: 20px;
}

.dark body.docs:not(.home) .vp-doc blockquote {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    border-left-color: #818cf8;
    color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.dark body.docs:not(.home) .vp-doc blockquote::before {
    color: #818cf8;
}

/* ── Perfect Doppar Tables ── */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

th {
    font-weight: 600;
    background: #f9fafb;
    color: #374151;
}

tr:hover {
    background: #f9fafb;
}

/* Dark mode tables */
.dark table {
    border: 1px solid #374151;
}

.dark th,
.dark td {
    border: 1px solid #374151;
}

.dark th {
    background: #1f2937;
    color: #f9fafb;
}

.dark tr:hover {
    background: #374151;
}

/* ── Minimal Code Blocks ── */
body.docs:not(.home) .code-block {
    position: relative;
    margin: 24px 0;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #ddd;
}

body.docs:not(.home) .code-block-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px 12px;
    background: #ffffff;
}

body.docs:not(.home) .code-block-lang {
    display: none !important;
}

body.docs:not(.home) .code-block-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.docs:not(.home) .copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #586069;
    background: #fafbfc;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
}

body.docs:not(.home) .copy-btn:hover {
    color: #0366d6;
    background: #f3f4f6;
    border-color: #0366d6;
}

body.docs:not(.home) .copy-btn.copied {
    color: #28a745;
    background: #f0fff4;
    border-color: #28a745;
}

body.docs:not(.home) .code-block pre {
    margin: 0;
    padding: 8px 12px;
    overflow-x: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.45;
    color: #24292e;
    background-color: #ffffff;
}

/* ── Dark Mode Code Blocks ── */
.dark body.docs:not(.home) .code-block {
    background: #2d2d2d;
    border-color: #404040;
}

.dark body.docs:not(.home) .code-block-header {
    background: #2d2d2d;
    padding: 2px 12px;
}

.dark body.docs:not(.home) .code-block-lang {
    display: none !important;
}

.dark body.docs:not(.home) .copy-btn {
    color: #a0a0a0;
    background: #333333;
    border-color: #555555;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
}

.dark body.docs:not(.home) .copy-btn:hover {
    color: #58a6ff;
    background: #404040;
    border-color: #58a6ff;
}

.dark body.docs:not(.home) .copy-btn.copied {
    color: #3fb950;
    background: #1a2f1a;
    border-color: #3fb950;
}

.dark body.docs:not(.home) .code-block pre {
    color: #e5e5e5;
    background-color: #2d2d2d;
}

/* ── Documentation Footer Navigation ── */
.VPDocFooter {
    margin-top: 64px;
    padding-top: 32px;
    border-top: none;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.dark .VPDocFooter {
    border-top: none;
}

.pager-link {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dark .pager-link {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.pager-link:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-1px);
}

.dark .pager-link:hover {
    border-color: #818cf8;
    box-shadow: 0 4px 12px rgba(129, 140, 248, 0.25);
}

.pager-link.prev {
    align-items: flex-start;
}

.pager-link.next {
    align-items: flex-end;
    text-align: right;
}

.pager-link .desc {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 4px;
    transition: color 0.2s ease;
}

.dark .pager-link .desc {
    color: #9ca3af;
}

.pager-link .title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.dark .pager-link .title {
    color: #f9fafb;
}

.pager-link:hover .desc {
    color: #6366f1;
}

.pager-link:hover .title {
    color: #6366f1;
}

.dark .pager-link:hover .desc {
    color: #818cf8;
}

.dark .pager-link:hover .title {
    color: #818cf8;
}

/* ── Mega Menu Dropdown ── */
#docs-mega-menu.open #docs-mega-menu-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#docs-mega-menu.open #docs-mega-menu-button svg {
    transform: rotate(180deg);
}

/* ── Syntax Highlighting ── */
body.docs:not(.home) .code-block .token.comment {
    color: var(--code-comment);
    font-style: italic;
}

body.docs:not(.home) .code-block .token.keyword {
    color: var(--code-keyword);
    font-weight: 700;
}

body.docs:not(.home) .code-block .token.string {
    color: var(--code-string);
}

body.docs:not(.home) .code-block .token.function {
    color: var(--code-function);
    font-weight: 600;
}

body.docs:not(.home) .code-block .token.class-name {
    color: var(--code-class);
    font-weight: 600;
}

body.docs:not(.home) .code-block .token.number {
    color: var(--code-number);
}

body.docs:not(.home) .code-block .token.variable {
    color: var(--code-variable);
}

body.docs:not(.home) .code-block .token.operator {
    color: var(--code-variable);
}

body.docs:not(.home) .code-block .token.punctuation {
    color: var(--code-variable);
}

/* ── Inline Code ── */
body.docs:not(.home) .vp-doc :not(pre)>code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    padding: 4px 8px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-50) 100%);
    color: var(--primary-700);
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid var(--primary-200);
    transition: all 0.3s ease;
}

body.docs:not(.home) .vp-doc :not(pre)>code:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.dark body.docs:not(.home) .vp-doc :not(pre)>code {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    color: var(--primary-400);
    border-color: var(--neutral-700);
}

/* ── Unique Tabs ── */
body.docs:not(.home) .tabs-container {
    margin: 32px 0;
    border: 1px solid var(--neutral-200);
    border-radius: 16px;
    overflow: hidden;
    background: var(--neutral-0);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

body.docs:not(.home) .tabs-container:hover {
    box-shadow: var(--shadow-lg);
}

.dark body.docs:not(.home) .tabs-container {
    border-color: var(--neutral-700);
    background: var(--neutral-50);
}

body.docs:not(.home) .tabs-header {
    display: flex;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-bottom: 1px solid var(--neutral-200);
    overflow-x: auto;
    padding: 8px;
    gap: 8px;
}

.dark body.docs:not(.home) .tabs-header {
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    border-bottom-color: var(--neutral-700);
}

body.docs:not(.home) .tab-panel {
    display: none;
    padding: 32px;
    background: #ffffff;
}

body.docs:not(.home) .tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

.dark body.docs:not(.home) .tab-panel {
    background: #1f2937;
    color: #f9fafb;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Home Page Tab System ── */
body:not(.docs) .tab-panel {
    display: none;
}

body:not(.docs) .tab-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

/* ── Responsive Design ── */
@media (min-width: 1280px) {
    .VPContent.has-sidebar {
        padding-left: var(--sidebar-width);
        padding-right: var(--toc-width);
    }
}

@media (min-width: 960px) and (max-width: 1279px) {
    .VPContent.has-sidebar {
        padding-left: var(--sidebar-width);
    }
}

@media (max-width: 959px) {
    body.docs:not(.home) .VPSidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    body.docs .VPSidebar.open {
        transform: translateX(0);
    }

    body.docs:not(.home) .VPDocAside {
        display: none;
    }

    body.docs:not(.home) .VPDoc {
        padding: 32px 20px;
    }

    body.docs:not(.home) .vp-doc h1 {
        font-size: 36px;
    }

    body.docs:not(.home) .vp-doc h2 {
        font-size: 28px;
        margin-top: 24px !important;
        margin-bottom: 24px !important;
    }

    body.docs:not(.home) .vp-doc h3 {
        font-size: 22px;
    }

    body.docs:not(.home) .vp-doc h4 {
        font-size: 18px;
    }
}

/* ── Focus Styles ── */
body.docs :focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Animations ── */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.docs:not(.home) .VPSidebar {
    margin-left: -30px;
    animation: slideInLeft 0.6s ease;
}

body.docs:not(.home) .VPDocAside {
    animation: slideInRight 0.6s ease;
    margin-right: 30px;
}

/* ── Enhanced Interactions ── */
body.docs:not(.home) .VPSidebarItem,
body.docs:not(.home) .VPDocAside-link,
body.docs:not(.home) .copy-btn,

body.docs:not(.home) .VPSidebarItem:active,
body.docs:not(.home) .VPDocAside-link:active,
body.docs:not(.home) .copy-btn:active,

/* ── Loading States ── */
body.docs:not(.home) .loading {
    position: relative;
    overflow: hidden;
}

body.docs:not(.home) .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.dark body.docs:not(.home) .loading::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}