/* Documentation Page Styles */
:root {
    --section-spacing: 3rem;
    --max-content-width: 1200px;
    --content-padding: 2rem;
    --sidebar-width: 320px;
}

.docs-container {
    display: flex;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    background: var(--background);
    padding-bottom: 4rem;
    position: relative;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Sidebar Styles */
.docs-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(192, 192, 192, 0.03) 100%);
    border-right: 1px solid rgba(192, 192, 192, 0.08);
    position: fixed;
    height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 0;
    z-index: 10;
    left: calc(-1 * var(--sidebar-width));
    top: 80px;
    bottom: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 0 8px 8px 0;
    scroll-behavior: smooth;
    opacity: 0;
    transform: translateX(-20px);
    transform-origin: left center;
}

/* Show sidebar on hover */
.docs-sidebar:hover {
    left: 0;
    transform: translateX(0) scale(1);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    filter: drop-shadow(0 0 15px rgba(192, 192, 192, 0.05));
    opacity: 1;
}

/* Trigger zone for sidebar */
.docs-container::before {
    content: '';
    position: fixed;
    left: 0;
    top: 80px;
    width: 120px;
    height: calc(100vh - 80px);
    z-index: 4;
    background: transparent;
    transition: all 0.3s ease;
    opacity: 0;
    cursor: pointer;
}

/* Sidebar trigger indicator */
.docs-container::after {
    content: '☰';
    position: fixed;
    left: 15px;
    top: 95px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--accent) 0%, #5A5ACF 100%);
    color: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    z-index: 6;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: subtle-pulse 2s ease-in-out infinite;
    opacity: 0.8;
    border: 2px solid transparent;
}

/* Sidebar buffer zone */
.docs-sidebar::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: transparent;
    z-index: 7;
}

/* Sidebar header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
    flex-shrink: 0;
    border-radius: 0 8px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.4s ease;
}

.docs-container:hover .sidebar-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.05s;
}

.sidebar-header h3 {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Search box */
.search-box {
    position: relative;
    transition: all 0.3s ease;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 2.5rem 0.8rem 1rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(192, 192, 192, 0.1);
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.search-box i {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.search-box input:focus + i {
    color: var(--accent);
}

/* Sidebar content */
.sidebar-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(10px);
}

.docs-container:hover .sidebar-content {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
.docs-nav {
    padding: 1rem 0;
    flex: 1;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(192, 192, 192, 0.3) transparent;
}

.docs-nav::-webkit-scrollbar {
    width: 6px;
}

.docs-nav::-webkit-scrollbar-track {
    background: transparent;
}

.docs-nav::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.docs-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 192, 0.5);
}

/* Navigation sections */
.nav-section {
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(-10px);
}

/* Staggered animation for nav sections */
.docs-container:hover .nav-section:nth-child(1) { opacity: 1; transform: translateX(0); transition-delay: 0.1s; }
.docs-container:hover .nav-section:nth-child(2) { opacity: 1; transform: translateX(0); transition-delay: 0.15s; }
.docs-container:hover .nav-section:nth-child(3) { opacity: 1; transform: translateX(0); transition-delay: 0.2s; }
.docs-container:hover .nav-section:nth-child(4) { opacity: 1; transform: translateX(0); transition-delay: 0.25s; }
.docs-container:hover .nav-section:nth-child(5) { opacity: 1; transform: translateX(0); transition-delay: 0.3s; }
.docs-container:hover .nav-section:nth-child(6) { opacity: 1; transform: translateX(0); transition-delay: 0.35s; }
.docs-container:hover .nav-section:nth-child(7) { opacity: 1; transform: translateX(0); transition-delay: 0.4s; }

.nav-section:hover {
    transform: translateX(5px);
}

.nav-section h4 {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 1.5rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.nav-section:hover h4 {
    color: var(--text);
    transform: translateX(3px);
}

.nav-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-section li {
    margin: 0;
    transition: all 0.3s ease;
}

.nav-section li:hover {
    transform: translateX(3px);
}

/* Enhanced Navigation Links */
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.85rem 1.75rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
    border-radius: 0 8px 8px 0;
    margin: 0.3rem 0;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.4;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.08) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid var(--text-secondary);
    opacity: 0;
    transition: all 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.05) 0%, rgba(192, 192, 192, 0.02) 100%);
    border-left-color: var(--accent);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.nav-link:hover::after {
    opacity: 1;
    border-top-color: var(--accent);
    transform: translateY(-50%) translateX(3px);
}

.nav-link.active {
    color: var(--accent);
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-left-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.nav-link.active::before {
    width: 100%;
}

.nav-link.active::after {
    opacity: 1;
    border-top-color: var(--accent);
    transform: translateY(-50%) translateX(3px);
}

/* Main content area */
.docs-content {
    flex: 1;
    margin-left: 0;
    padding: 0;
    max-width: var(--max-content-width);
    padding-bottom: 2rem;
    overflow-y: auto;
    scroll-behavior: smooth;
    min-height: calc(100vh - 80px - 4rem);
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
    transition: all 0.3s ease;
    margin: 0 auto;
}

/* Content header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    background: var(--secondary);
    position: sticky;
    top: 0;
    z-index: 3;
    margin-bottom: 1.5rem;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.content-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(192, 192, 192, 0.2);
    background: var(--background);
    color: var(--text);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(192, 192, 192, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--accent);
    color: var(--background);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.3);
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Markdown content */
#markdown-content {
    color: var(--text);
    line-height: 1.6;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    min-height: calc(100vh - 80px - 8rem);
    max-width: 100%;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.loading p {
    font-size: 1.1rem;
}

#markdown-content h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-weight: 700;
    border-bottom: 2px solid rgba(192, 192, 192, 0.1);
    padding-bottom: 1rem;
    line-height: 1.2;
}

#markdown-content h2 {
    font-size: 2rem;
    color: var(--accent);
    margin: 2.5rem 0 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
    padding-bottom: 0.5rem;
    line-height: 1.3;
}

#markdown-content h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 2rem 0 1rem;
    font-weight: 600;
    line-height: 1.4;
}

#markdown-content h4 {
    font-size: 1.25rem;
    color: var(--accent);
    margin: 1.5rem 0 0.75rem;
    font-weight: 600;
    line-height: 1.4;
}

#markdown-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

#markdown-content ul, #markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

#markdown-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

#markdown-content code {
    background: rgba(192, 192, 192, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
    color: var(--accent);
}

#markdown-content pre {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(192, 192, 192, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#markdown-content pre code {
    background: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text);
}

/* Enhanced Markdown Content Links */
#markdown-content a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    font-weight: 500;
    padding: 0.15rem 0.3rem;
    border-radius: 6px;
    background: linear-gradient(120deg, transparent 0%, transparent 50%, rgba(192, 192, 192, 0.1) 50%, transparent 100%);
    background-size: 200% 100%;
    background-position: 100% 0;
}

#markdown-content a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, #5A5ACF 100%);
    transition: width 0.3s ease;
    border-radius: 1px;
}

#markdown-content a:hover {
    color: var(--text);
    background-position: 0 0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.2);
}

#markdown-content a:hover::before {
    width: 100%;
}

/* External link indicator */
#markdown-content a[href^="http"]::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 0.3rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#markdown-content a[href^="http"]:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Enhanced Breadcrumb Links */
.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    position: relative;
    font-weight: 500;
}

.breadcrumb a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--text);
    background: rgba(192, 192, 192, 0.1);
    transform: translateY(-1px);
}

.breadcrumb a:hover::before {
    width: 100%;
}

/* Mermaid diagrams */
.mermaid {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid rgba(192, 192, 192, 0.1);
    text-align: center;
    overflow: visible;
    min-height: 120px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mermaid:empty::before {
    content: 'Loading diagram...';
    color: var(--text-secondary);
    font-style: italic;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mermaid svg {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
    overflow: visible !important;
    font-size: 14px !important;
}

/* Tables */
#markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(192, 192, 192, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#markdown-content th {
    background: rgba(192, 192, 192, 0.1);
    color: var(--accent);
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

#markdown-content td {
    padding: 1rem;
    border-bottom: 1px solid rgba(192, 192, 192, 0.05);
}

#markdown-content tr:hover {
    background: rgba(192, 192, 192, 0.02);
}

/* Blockquotes */
#markdown-content blockquote {
    border-left: 4px solid var(--accent);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table of contents */
.table-of-contents {
    background: var(--secondary);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.table-of-contents h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 0.5rem;
}

/* Enhanced Table of Contents Links */
.table-of-contents a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    position: relative;
    font-weight: 400;
    border-left: 3px solid transparent;
}

.table-of-contents a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, transparent 100%);
    transition: width 0.3s ease;
    border-radius: 6px;
}

.table-of-contents a:hover {
    color: var(--accent);
    background: rgba(192, 192, 192, 0.05);
    border-left-color: var(--accent);
    transform: translateX(3px);
    font-weight: 500;
}

.table-of-contents a:hover::before {
    width: 100%;
}

.toc-h1 {
    font-weight: 600;
    font-size: 1rem;
}

.toc-h2 {
    font-weight: 500;
    font-size: 0.95rem;
    padding-left: 1rem;
}

.toc-h3 {
    font-weight: 400;
    font-size: 0.9rem;
    padding-left: 2rem;
}

/* Error messages */
.error-message {
    color: #ff6b6b;
    padding: 2rem;
    text-align: center;
    background: var(--secondary);
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-message button {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: var(--background);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.error-message button:hover {
    background: var(--text);
}

.error-message p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Social media section */
.social-media-section {
    position: relative;
    z-index: 5;
    margin-top: 3rem;
    padding: 3rem 0;
    background: var(--background);
    text-align: center;
    clear: both;
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

.social-media-section h2 {
    color: var(--accent);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Enhanced Social Media Links */
.social-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s cubic-bezier(0.2, 0, 0.1, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.social-icon i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon:hover i {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

.social-label {
    font-weight: 500;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-icon:hover .social-label {
    transform: translateX(4px);
}

/* Animations */
@keyframes subtle-pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.9;
    }
    50% { 
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes trigger-activate {
    0% { opacity: 0; transform: translateX(-10px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Hover effects */
.docs-container:hover::after {
    opacity: 0;
    transform: scale(0.8) translateX(-20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.docs-container:hover::before {
    animation: trigger-activate 0.3s ease forwards;
    box-shadow: 0 0 20px 0 rgba(192, 192, 192, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .docs-sidebar {
        width: 280px;
        left: -280px;
    }
    
    .docs-container::before {
        width: 100px;
    }
    
    .docs-container::after {
        left: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .docs-content {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .content-header {
        padding: 1rem 0;
    }
    
    #markdown-content {
        padding: 1.5rem 0;
    }
    

}

@media (max-width: 768px) {
    .docs-container {
        flex-direction: column;
        padding-bottom: 1rem;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    
    .docs-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid rgba(192, 192, 192, 0.1);
        z-index: auto;
        top: auto;
        bottom: auto;
        left: auto;
        transform: none;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        background: linear-gradient(135deg, var(--secondary) 0%, rgba(192, 192, 192, 0.05) 100%);
        border-radius: 0 0 8px 8px;
        margin-bottom: 1rem;
        opacity: 1;
        transition: none;
    }
    
    .docs-container::before,
    .docs-container::after {
        display: none;
    }
    
    .docs-content {
        margin-left: 0;
        padding-left: 1rem;
        padding-right: 1rem;
        padding-bottom: 1rem;
        min-height: auto;
        max-width: 100%;
    }
    
    .sidebar-header {
        padding: 1.25rem;
        border-radius: 0 0 8px 8px;
        opacity: 1;
        transform: none;
    }
    
    .sidebar-content {
        opacity: 1;
        transform: none;
    }
    
    .nav-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem 0;
        position: relative;
        top: auto;
    }
    
    .content-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    #markdown-content {
        padding: 1.5rem 0;
        margin-bottom: 1rem;
        min-height: auto;
    }
    
    #markdown-content h1 {
        font-size: 2rem;
    }
    
    #markdown-content h2 {
        font-size: 1.75rem;
    }
    
    #markdown-content h3 {
        font-size: 1.25rem;
    }
    
    .nav-section h4 {
        margin: 0 1rem 0.6rem;
    }
    
    .nav-link {
        padding: 0.4rem 1rem;
    }
    
    .social-media-section {
        padding: 1.5rem 0;
    }
    
    .social-media-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .social-icons {
        gap: 1rem;
    }
    
    .social-icon {
        padding: 0.6rem 1rem;
    }
    
    .social-icon i {
        font-size: 1.1rem;
    }
    

}

@media (max-width: 480px) {
    .docs-container {
        padding-bottom: 0.5rem;
    }
    
    #markdown-content {
        padding: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .content-header {
        padding: 0.75rem;
    }
    
    .social-icons {
        gap: 0.75rem;
    }
    
    .social-icon {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
}

/* Scrollbar styling */
.docs-sidebar::-webkit-scrollbar {
    width: 6px;
}

.docs-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: rgba(192, 192, 192, 0.3);
    border-radius: 3px;
}

.docs-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(192, 192, 192, 0.5);
}

/* Print styles */
@media print {
    .docs-sidebar,
    .content-header,
    .social-media-section,
    .site-footer {
        display: none;
    }
    
    .docs-content {
        margin-left: 0;
        padding: 0;
    }
    
    #markdown-content {
        padding: 0;
    }
}

/* Footer optimization for docs page */
body.docs-page .site-footer {
    position: relative;
    z-index: 15;
    margin-top: 4rem;
}

/* Link focus states for accessibility */
.nav-link:focus,
#markdown-content a:focus,
.breadcrumb a:focus,
.table-of-contents a:focus,
.social-icon:focus,
.btn-secondary:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Mobile optimizations for links */
@media (max-width: 768px) {
    .nav-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
    }
    
    #markdown-content a {
        padding: 0.15rem 0.3rem;
    }
    
    .social-icon {
        padding: 0.6rem 1rem;
    }
    
    .btn-secondary {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
} 