/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #ffffff;
    --secondary-bg: #f8f9fa;
    --accent-bg: #eaecf0;
    --hover-bg: #f0f2f5;
    --text-primary: #202122;
    --text-secondary: #54595d;
    --text-muted: #72777d;
    --accent-blue: #3366cc;
    --accent-blue-dark: #2a4b8d;
    --accent-blue-light: #6699ff;
    --border-color: #c8ccd1;
    --table-header: #eaecf0;
    --code-bg: #f8f9fa;
    --code-text: #a33;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-md: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.1);
    --link-color: #3366cc;
    --link-hover: #5a7ebf;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Liberation Sans', 'Helvetica Neue', 'Arial', sans-serif;
    background: #f0f2f5;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    font-size: 14px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: none;
    pointer-events: none;
    z-index: 0;
}

/* Sidebar Navigation - Modern Floating Design */
.sidebar {
    width: 240px;
    min-width: 240px;
    background: #ffffff;
    border-right: none;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 2px solid #e8eaed;
    background: #3366cc;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
    letter-spacing: 0.5px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 12px;
}

.nav-divider {
    height: 2px;
    background: #e8eaed;
    margin: 8px 0;
}

.nav-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 12px 16px 6px;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.tab-btn {
    background: transparent;
    color: #5f6368;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    text-align: left;
    position: relative;
    overflow: visible;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-icon {
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    transition: transform 0.25s ease;
}

.tab-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tab-btn:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.06) 0%, rgba(6, 214, 160, 0.06) 100%);
    color: #4facfe;
    transform: translateX(4px);
    text-decoration: none;
    box-shadow: 0 1px 6px rgba(79, 172, 254, 0.1);
}

.tab-btn:hover .tab-icon {
    transform: scale(1.15);
}

.tab-btn:hover::before {
    opacity: 1;
}

.tab-btn.active {
    background: linear-gradient(135deg, #6fc5ff 0%, #34d399 100%);
    color: #ffffff;
    border-left: none;
    box-shadow: 0 2px 8px rgba(111, 197, 255, 0.2);
    transform: translateX(4px);
    font-weight: 600;
}

.tab-btn.active .tab-icon {
    transform: scale(1.1);
}

.tab-btn.active::before {
    display: none;
}

/* Language Groups and Sub-buttons */
.language-group {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-left: 12px;
    margin-bottom: 4px;
    animation: slideDown 0.25s ease;
}

.language-group.visible {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.small-btn {
    background: transparent;
    color: #7f8386;
    border: none;
    padding: 8px 12px;
    font-size: 0.85rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 400;
    text-align: left;
    display: block;
    width: 100%;
    margin: 2px 0;
}

.small-btn:hover {
    background: rgba(79, 172, 254, 0.1);
    color: #4facfe;
    transform: translateX(4px);
}

.small-btn.active {
    background: rgba(79, 172, 254, 0.2);
    color: #3366cc;
    font-weight: 600;
}

/* Main Container */
.main-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Header - Subtle Gradient Theme */
.header {
    text-align: center;
    padding: 40px 48px 36px;
    background: #3366cc;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

/* Search Container */
.search-container {
    max-width: 100%;
    margin: 0;
    position: relative;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.search-input:focus {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #999;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(79, 172, 254, 0.08);
}

.search-result-lang {
    font-size: 0.75rem;
    color: #3366cc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.search-result-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Content Sections */
.content {
    background: var(--primary-bg);
    padding: 32px 48px;
    min-height: calc(100vh - 200px);
    flex: 1;
    max-width: 100%;
}

.lang-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.lang-section.active {
    display: block;
}

.lang-section .section-title {
    margin-top: -24px;
    padding-top: 24px;
    margin-bottom: 20px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    color: #3366cc;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8eaed;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.section-title::after {
    display: none;
}

/* Category Sections */
.category {
    margin-bottom: 40px;
}

.category h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #3366cc;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin-bottom: 12px;
    padding-left: 0;
    border-left: none;
    position: relative;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

/* Tables - Modern Design */
.ref-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 32px;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8eaed;
    font-size: 0.95rem;
}

.ref-table thead {
    background: #f5f6f8;
    border-bottom: 2px solid #e8eaed;
}

.ref-table thead th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ref-table tbody tr {
    border-bottom: 1px solid #f0f2f5;
    transition: all 0.2s ease;
}

.ref-table tbody tr:hover {
    background: rgba(79, 172, 254, 0.04);
    transform: none;
    box-shadow: none;
}

.ref-table tbody tr:last-child {
    border-bottom: none;
}

.ref-table td {
    padding: 12px 16px;
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.6;
}

.ref-table td:first-child {
    font-weight: 500;
    width: 40%;
    color: var(--text-primary);
}

.ref-table td:last-child {
    color: var(--text-secondary);
}

/* Code Elements - Modern Styling */
code {
    background: #f8f9fa;
    color: #4facfe;
    padding: 3px 8px;
    border-radius: 6px;
    font-family: 'Consolas', 'Monaco', 'SF Mono', 'Courier New', monospace;
    font-size: 0.92em;
    border: 1px solid #e8eaed;
    white-space: nowrap;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

code:hover {
    background: #4facfe;
    color: #ffffff;
    border-color: #4facfe;
    cursor: pointer;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.2);
}

/* Welcome Page Styles */
.welcome-container {
    max-width: 100%;
    margin: 0;
}

.welcome-hero {
    text-align: center;
    padding: 44px 32px 36px;
    background: var(--secondary-bg);
    border-radius: 0;
    margin-bottom: 40px;
    box-shadow: none;
    border: 1px solid var(--border-color);
}

.welcome-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3366cc;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 100%;
    margin: 0;
    line-height: 1.7;
    font-weight: 400;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.feature-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e8eaed;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(79, 172, 254, 0.05);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.15);
    border-color: #6fc5ff;
    background: #ffffff;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    animation: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-card:hover .feature-icon {
    animation: none;
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3366cc;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.getting-started {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 2px solid #e8eaed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.tech-stacks-section {
    margin-bottom: 40px;
}

.tech-stacks-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4facfe;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.tech-stacks-section p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.getting-started h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3366cc;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.guide-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: 'Linux Libertine', 'Georgia', 'Times', serif;
}

.guide-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.shortcuts-list {
    list-style: none;
    padding: 0;
    margin-top: 12px;
}

.shortcuts-list li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

kbd {
    background: var(--secondary-bg);
    color: var(--text-primary);
    padding: 2px 6px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
    font-family: 'Consolas', monospace;
    font-size: 0.85em;
    font-weight: 400;
    box-shadow: none;
}

.about-section {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    margin-bottom: 32px;
    border: 2px solid #e8eaed;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #3366cc;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 8px;
}

.features-list li {
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--secondary-bg);
    border-radius: 0;
    font-weight: 400;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

.cta-section {
    text-align: center;
    padding: 48px 32px;
    background: #3366cc;
    border-radius: 12px;
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 6px 20px rgba(51, 102, 204, 0.25);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.quick-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.quick-link-btn {
    background: #ffffff;
    color: #3366cc;
    border: 2px solid #ffffff;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.25s ease;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.quick-link-btn:hover {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    background: var(--secondary-bg);
    font-size: 0.9rem;
}

/* 16:9 Widescreen Optimization (1440px+) */
@media (min-width: 1440px) {
    .content {
        padding: 40px 56px;
    }

    .header {
        padding: 44px 56px 40px;
    }

    .header h1 {
        font-size: 2.8rem;
        margin-bottom: 14px;
    }

    .header h2 {
        font-size: 1.2rem;
        margin-bottom: 24px;
    }

    .welcome-container {
        max-width: 1320px;
    }

    .welcome-hero {
        padding: 48px 40px 40px;
        margin-bottom: 44px;
    }

    .welcome-title {
        font-size: 2.8rem;
        margin-bottom: 18px;
    }

    .welcome-subtitle {
        font-size: 1.15rem;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 24px;
        margin-bottom: 44px;
    }

    .feature-card {
        padding: 28px;
    }

    .feature-card h3 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .feature-card p {
        font-size: 0.95rem;
    }

    .guide-content {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 36px;
    }

    .section-title {
        font-size: 2.1rem;
        margin-bottom: 28px;
        padding-bottom: 16px;
    }

    .category {
        margin-bottom: 44px;
    }

    .category h3 {
        font-size: 1.35rem;
        margin-bottom: 14px;
    }

    .ref-table {
        margin-bottom: 36px;
        font-size: 0.96rem;
    }

    .ref-table thead th {
        padding: 16px 14px;
        font-size: 0.92rem;
    }

    .ref-table td {
        padding: 14px;
    }

    .getting-started, .about-section, .cta-section {
        padding: 36px 40px;
    }

    .quick-links {
        gap: 20px;
    }

    .quick-link-btn {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .tech-stacks-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Ultra-wide 4K Optimization (1920px+) */
@media (min-width: 1920px) {
    .content {
        padding: 44px 64px;
    }

    .header {
        padding: 48px 64px 44px;
    }

    .welcome-container {
        max-width: 1400px;
    }

    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .guide-content {
        grid-template-columns: repeat(3, 1fr);
    }

    .welcome-hero {
        padding: 52px 48px 44px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .sidebar-header {
        padding: 24px;
    }

    .sidebar-header h2 {
        font-size: 1.25rem;
    }

    .nav-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .tab-btn {
        flex: 0 1 auto;
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .tab-btn:hover {
        transform: translateX(0) scale(1.02);
    }

    .tab-btn.active {
        transform: translateX(0) scale(1.02);
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    }

    .content {
        margin-left: 0;
        padding: 20px 16px;
    }

    .nav-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .tab-btn {
        flex: 0 1 auto;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .welcome-hero {
        padding: 32px 16px;
    }

    .welcome-title {
        font-size: 1.8rem;
    }

    .welcome-subtitle {
        font-size: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guide-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .getting-started, .about-section {
        padding: 24px 16px;
    }

    .cta-section {
        padding: 32px 16px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-link-btn {
        width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .category h3 {
        font-size: 1.2rem;
    }

    .cheatsheet-table {
        font-size: 0.9rem;
    }

    .cheatsheet-table td, .cheatsheet-table th {
        padding: 8px;
    }

    .ref-table {
        font-size: 0.85rem;
    }

    .ref-table thead th {
        padding: 14px 12px;
        font-size: 0.8rem;
    }

    .ref-table td {
        padding: 12px;
    }

    .ref-table td:first-child {
        width: auto;
    }

    /* Make table scrollable on mobile */
    .category {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.5rem;
    }

    .welcome-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .category h3 {
        font-size: 1.1rem;
    }

    .cheatsheet-table {
        font-size: 0.85rem;
    }

    .cheatsheet-table td, .cheatsheet-table th {
        padding: 6px;
        display: block;
        width: 100%;
    }

    .cheatsheet-table tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
    }

    .quick-links {
        flex-direction: column;
    }

    .quick-link-btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .getting-started, .about-section {
        padding: 20px 12px;
    }

    .cta-section {
        padding: 24px 12px;
    }

    .cta-section h2 {
        font-size: 1.3rem;
    }

    /* Make table scrollable on mobile */
    .category {
        overflow-x: auto;
    }
}

/* Scrollbar Styling - Modern Gradient Theme */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #4facfe;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #2a5fb3;
}

/* Function Detail Styles */
.function-detail-container {
    max-width: 100%;
    margin: 0;
    padding: 40px;
    background: #ffffff;
}

.detail-back {
    margin-bottom: 24px;
}

.back-btn {
    background: #3366cc;
    color: #ffffff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.back-btn:hover {
    background: #2a4b8d;
    transform: translateX(-4px);
}

.function-detail {
    line-height: 1.8;
    color: #202122;
}

.function-detail h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3366cc;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid #e8eaed;
}

.function-detail h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #3366cc;
    margin-top: 28px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8eaed;
}

.function-detail h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #54595d;
    margin-top: 20px;
    margin-bottom: 12px;
}

.function-detail p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.function-detail ul {
    margin-left: 20px;
    margin-bottom: 16px;
}

.function-detail ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.function-detail pre {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-left: 4px solid #3366cc;
    padding: 16px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 16px 0;
    font-size: 0.9rem;
}

.function-detail code {
    font-family: 'Monaco', 'Courier New', monospace;
    color: #a33;
}

pre code {
    white-space: pre;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
}
