.back-link {
    display: inline-block;
    margin-top: 10px;
    color: #4299e1;
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    color: #3182ce;
    text-decoration: underline;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.docs-sidebar {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.docs-sidebar h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1rem;
}

.docs-nav {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 8px;
}

.docs-nav li.section-header {
    margin-top: 20px;
    font-weight: 700;
    color: #4a5568;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.docs-nav a {
    color: #4299e1;
    text-decoration: none;
    display: block;
    padding: 6px 12px;
    border-radius: 5px;
    transition: all 0.2s;
}

.docs-nav a:hover {
    background: #e6f7ff;
    color: #3182ce;
}

.docs-content {
    background: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.docs-content section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.docs-content h2 {
    color: #2d3748;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.docs-content h3 {
    color: #4a5568;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.docs-content p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 15px;
}

.docs-content ul, .docs-content ol {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #4a5568;
}

.docs-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.code-block {
    background: #1a202c;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    color: #e2e8f0;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.api-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.api-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.api-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.api-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.api-table tbody tr:hover {
    background: #f7fafc;
}

.api-table code {
    background: #edf2f7;
    padding: 2px 6px;
    border-radius: 3px;
    color: #e53e3e;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.info-box {
    background: #e6f7ff;
    border-left: 4px solid #4299e1;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.info-box strong {
    color: #2c5282;
}

.info-box a {
    color: #4299e1;
    font-weight: 600;
}

.footer-nav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
    text-align: center;
}

@media (max-width: 968px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        position: static;
        max-height: none;
    }
    
    .docs-content {
        padding: 20px;
    }
}
