.docs-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    margin-top: 40px;
}

.docs-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
    background: var(--bg-primary);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

.docs-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.docs-sidebar ul {
    list-style: none;
}

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

.docs-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.docs-sidebar a:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    transform: translateX(3px);
}

.docs-sidebar a.active {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.docs-main {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow);
}

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

.docs-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.docs-section h3 {
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.docs-section h4 {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.docs-section p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-box.warning {
    border-left-color: #ffa500;
}

.info-box i {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.info-box.warning i {
    color: #ffa500;
}

.info-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.info-box p {
    margin: 0;
    font-size: 0.95rem;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.95rem;
}

.feature-list i {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.endpoint-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    border: 2px solid var(--border);
}

.method {
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
}

.endpoint-url {
    flex: 1;
    background: var(--bg-tertiary);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    overflow-x: auto;
}

.param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.param-table thead {
    background: var(--bg-tertiary);
}

.param-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border);
}

.param-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

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

.param-table code {
    background: var(--bg-tertiary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-primary);
}

.code-block {
    margin: 25px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.code-header {
    background: #282c34;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header span {
    color: #abb2bf;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy-code {
    background: rgba(255, 255, 255, 0.1);
    color: #abb2bf;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-copy-code i {
    width: 14px;
    height: 14px;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background: #282c34 !important;
}

.code-block code {
    font-family: 'Courier New', Monaco, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.tip-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 10px;
    margin: 15px 0;
    display: flex;
    gap: 15px;
    border-left: 4px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px var(--shadow);
}

.tip-card i {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.tip-card h4 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.tip-card p {
    margin: 0;
    font-size: 0.95rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.cta-box .btn-primary {
    background: white;
    color: var(--accent-primary);
}

.cta-box .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.header-actions {
    margin-top: 20px;
}

@media (max-width: 968px) {
    .docs-content {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: static;
        order: 2;
        margin-top: 40px;
    }

    .docs-main {
        padding: 25px;
    }

    .docs-section h2 {
        font-size: 1.6rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .endpoint-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .endpoint-url {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .docs-main {
        padding: 20px;
    }

    .docs-section h2 {
        font-size: 1.4rem;
    }

    .code-block pre {
        padding: 15px;
        font-size: 0.85rem;
    }

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

    .param-table th,
    .param-table td {
        padding: 10px;
    }
}
