:root {
    --accent-color: #19bc9c;
    --accent-hover: #128f76;
    --accent-light: #e8f8f5;
    --accent-glow: rgba(25, 188, 156, 0.2);
    --bs-heading-color: #0a0a0a;
    --bs-body-color: #262626;
    --text-muted: #737373;
    --bs-body-bg: #ffffff;
    --surface-bg: #f5f5f5;
    --border-color: #e5e5e5;
    --bs-body-font-family: 'Inter', sans-serif;
    --font-monospace: 'JetBrains Mono', monospace;
}

body, html {
    height: 100%;
    overflow: hidden;
    background-color: var(--bs-body-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bs-heading-color);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.7;
    font-size: 1rem;
    color: var(--bs-body-color);
    margin-bottom: 1.25rem;
}

.m-t-30 {
    margin-top: 30px !important;
}

.m-t-45 {
    margin-top: 45px !important;
}

.m-t-60 {
    margin-top: 60px !important;
}

.m-t-90 {
    margin-top: 90px !important;
}

.m-b-30 {
    margin-bottom: 30px !important;
}

.m-b-45 {
    margin-bottom: 45px !important;
}

.m-b-60 {
    margin-bottom: 60px !important;
}

.m-b-90 {
    margin-bottom: 90px !important;
}

.text-gradient {
    background: linear-gradient(135deg, #19bc9c 0%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-accent-color {
    color: var(--accent-color) !important;
}

.btn-brand {
    background-color: var(--accent-color);
    color: white;
    border: none;
    transition: all 0.2s ease;
    padding: 10px 20px;
}

.btn-brand:hover {
    background-color: var(--accent-hover);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.code-inline {
    background: #f1f5f9;
    color: #ef4444;
    font-family: var(--font-monospace);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid #e2e8f0;
}

#layout-wrapper {
    display: flex;
    height: 100%;
}

#sidebar-wrapper {
    width: 300px;
    flex-shrink: 0;
    background-color: #fafafa;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 1040;
}

.sidebar-brand {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
    flex-shrink: 0;
}

.sidebar-nav-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem 0;
}

.sidebar-heading-text {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
    margin: 1.5rem 1.5rem 0.5rem 1.5rem;
}

.sidebar-link {
    display: block;
    padding: 0.5rem 1.5rem 0.5rem 1.25rem;
    color: #334155;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    color: var(--bs-heading-color);
    background-color: #f1f5f9;
}

.sidebar-link.active {
    color: var(--accent-hover);
    border-left-color: var(--accent-color);
    background-color: var(--accent-light);
}

#main-content {
    flex-grow: 1;
    overflow-y: auto;
    background-color: var(--bs-body-bg);
    scroll-behavior: smooth;
}

.content-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem 6rem 2rem;
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: #475569;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: 1.5rem;
}

.premium-badge span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    margin-right: 8px;
}

.hero-card {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.hero-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: var(--accent-light);
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.premium-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.feature-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

.feature-icon {
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
}

.feature-text {
    color: var(--bs-heading-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.tech-card {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    background: #ffffff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.tech-icon-wrapper {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

.file-tree-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.file-tree-header {
    background: #fafafa;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-monospace);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bs-heading-color);
}

.file-tree-body {
    padding: 0;
    margin: 0;
    list-style: none;
}

.file-tree-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.15s ease;
}

.file-tree-item:last-child {
    border-bottom: none;
}

.file-tree-item:hover {
    background-color: #fafafa;
}

.file-tree-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 220px;
    flex-shrink: 0;
    color: var(--bs-heading-color);
    font-family: var(--font-monospace);
    font-size: 0.85rem;
}

.file-tree-desc {
    color: #64748b;
    font-size: 0.9rem;
}

.nested-section {
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
    margin-left: 0.5rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.nested-section::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    border: 2px solid white;
}

.callout {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid transparent;
}

.callout-icon {
    flex-shrink: 0;
}

.callout h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.callout p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.callout-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
}

.callout-info .callout-icon {
    color: #3b82f6;
}

.callout-info h4 {
    color: #1e3a8a;
}

.callout-info p {
    color: #1e40af;
}

.callout-warning {
    background-color: #fffbeb;
    border-color: #fde68a;
}

.callout-warning .callout-icon {
    color: #f59e0b;
}

.callout-warning h4 {
    color: #92400e;
}

.callout-warning p, .callout-warning ul {
    color: #b45309;
}

.callout-success {
    background-color: var(--accent-light);
    border-color: #a7f3d0;
}

.callout-success .callout-icon {
    color: var(--accent-color);
}

.callout-success h4 {
    color: #064e3b;
}

.callout-success p {
    color: #047857;
}

.callout-danger {
    background-color: #fef2f2;
    border-color: #fecaca;
}

.callout-danger .callout-icon {
    color: #ef4444;
}

.callout-danger h4 {
    color: #7f1d1d;
}

.callout-danger p {
    color: #b91c1c;
}

.premium-table-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.premium-table {
    width: 100%;
    margin-bottom: 0;
    background-color: #fff;
    border-collapse: collapse;
}

.premium-table th {
    background-color: #fafafa;
    color: #64748b;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.premium-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--bs-body-color);
    font-size: 0.95rem;
    vertical-align: top;
}

.premium-table tr:last-child td {
    border-bottom: none;
}

.premium-table tbody tr:hover {
    background-color: #f8fafc;
}

.table-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: block;
}

.premium-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.premium-tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.premium-tab-btn:hover {
    color: var(--bs-heading-color);
}

.premium-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.premium-tab-pane {
    display: none;
}

.premium-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.code-block-wrapper {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #1e293b;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e293b;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #334155;
}

.code-lang {
    font-family: var(--font-monospace);
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-copy {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.2s;
}

.code-copy:hover {
    color: white;
}

.code-content {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-family: var(--font-monospace);
    font-size: 0.875rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.syn-keyword {
    color: #c678dd;
}

.syn-directive {
    color: var(--accent-color);
}

.syn-string {
    color: #98c379;
}

.syn-comment {
    color: #64748b;
    font-style: italic;
}

.syn-var {
    color: #e5c07b;
}

.changelog-container {
    position: relative;
    padding-left: 1.5rem;
}

.changelog-container::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.changelog-item {
    position: relative;
    margin-bottom: 2rem;
}

.changelog-item:last-child {
    margin-bottom: 0;
}

.changelog-marker {
    position: absolute;
    left: -1.5rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid white;
    transform: translateX(-1.5px);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.changelog-version {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bs-heading-color);
    margin: 0;
}

.changelog-date {
    font-size: 0.8rem;
    color: #64748b;
    font-family: var(--font-monospace);
}

.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--bs-body-color);
    line-height: 1.5;
}

.changelog-list li:last-child {
    margin-bottom: 0;
}

.cl-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    width: 50px;
    text-align: center;
    margin-top: 0.15rem;
}

.cl-new {
    background: #eff6ff;
    color: #2563eb;
}

.cl-fix {
    background: #fef2f2;
    color: #dc2626;
}

.cl-update {
    background: #fff7ed;
    color: #ea580c;
}

.search-wrapper {
    position: relative;
}

.premium-search-input {
    padding: 0.6rem 2.5rem 0.6rem 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--surface-bg);
    font-size: 0.875rem;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.premium-search-input:focus {
    background-color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.2s ease;
    pointer-events: none;
}

.premium-search-input:focus ~ .search-icon {
    color: var(--accent-color);
}

.search-shortcut {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    pointer-events: none;
}

.search-shortcut kbd {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #64748b;
    font-family: var(--font-monospace);
    font-size: 0.65rem;
    padding: 2px 5px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.d-none-search {
    display: none !important;
}

mark.search-highlight {
    background-color: #fde047;
    color: #1e293b !important;
    padding: 0;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.text-gradient mark.search-highlight {
    background-color: #fde047;
    -webkit-text-fill-color: #000;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.section-separator {
    height: 1px;
    background: var(--border-color);
    margin: 4rem 0;
}

section {
    scroll-margin-top: 2rem;
}

* {
    scrollbar-width: auto;
    scrollbar-color: #c1c1c1 transparent;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #c1c1c1;
    border-radius: 10px;
    border: 3px solid var(--bs-body-bg);
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #8a8a8a;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

@media (max-width: 991.98px) {
    #sidebar-wrapper {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        transition: left 0.3s ease;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }

    #sidebar-wrapper.show {
        left: 0;
    }

    .content-container {
        padding-top: 2rem;
    }

    .mobile-header {
        display: flex !important;
    }
}

.mobile-header {
    display: none;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1030;
}