.docs-hero {
    background: linear-gradient(135deg, #177B35 0%, #0d5023 100%);
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .docs-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.docs-sidebar {
    position: relative;
}

.docs-nav-wrapper {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .docs-nav-wrapper {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

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

.docs-nav-list li {
    margin-bottom: 0.5rem;
}

.docs-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    font-weight: 500;
}

.docs-nav-link:hover {
    background-color: #f3f4f6;
    color: #177B35;
    padding-left: 1.25rem;
}

.docs-nav-link.active {
    background-color: #177B35;
    color: #ffffff;
    font-weight: 600;
}

.docs-nav-link.active:hover {
    background-color: #0d5023;
    padding-left: 1rem;
}

.docs-content {
    min-width: 0;
}

.docs-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #e5e7eb;
}

.docs-section:last-child {
    border-bottom: none;
}

.docs-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.docs-subsection {
    margin-top: 2rem;
}

.method-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.method-get {
    background-color: #dbeafe;
    color: #1e40af;
}

.method-post {
    background-color: #dcfce7;
    color: #166534;
}

.method-put {
    background-color: #fef3c7;
    color: #92400e;
}

.method-delete {
    background-color: #fee2e2;
    color: #991b1b;
}

.param-item {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.param-name {
    background-color: #1f2937;
    color: #10b981;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9375rem;
    font-weight: 600;
}

.param-type {
    display: inline-block;
    margin-left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background-color: #dbeafe;
    color: #1e40af;
    border-radius: 4px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.param-desc {
    margin-top: 0.5rem;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 0.9375rem;
}

.code-block {
    background-color: #1f2937;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    overflow-x: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.code-block pre {
    margin: 0;
    padding: 0;
    background: transparent;
    overflow-x: auto;
}

.code-block code {
    display: block;
    color: #e5e7eb;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    line-height: 1.7;
    white-space: pre;
}

code:not(.code-block code):not(.param-name) {
    background-color: #f3f4f6;
    color: #ef4444;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
}

.code-block code {

}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

@media (max-width: 768px) {
    .docs-section {
        margin-bottom: 2.5rem;
        padding-bottom: 2rem;
    }

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

    .code-block {
        padding: 1rem;
    }

    .code-block code {
        font-size: 0.8125rem;
    }
}

@media print {
    .docs-sidebar {
        display: none;
    }

    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-section {
        page-break-inside: avoid;
    }

    .code-block {
        background-color: #f3f4f6;
        border: 1px solid #d1d5db;
    }

    .code-block code {
        color: #1f2937;
    }
}

.docs-nav-link:focus,
.method-badge:focus {
    outline: 2px solid #177B35;
    outline-offset: 2px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #177B35;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

.docs-content.loading {
    opacity: 0.5;
    pointer-events: none;
}

.code-block {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background-color: #374151;
    color: #e5e7eb;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0;
}

.code-block:hover .copy-button {
    opacity: 1;
}

.copy-button:hover {
    background-color: #177B35;
    color: #ffffff;
}

.copy-button:active {
    transform: scale(0.95);
}

.copy-button.copied {
    background-color: #10b981;
    color: #ffffff;
}

.docs-sla-notice {
    margin-top: 2.5rem;
    padding: 1.5rem 2rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    font-size: 1.125rem;
    color: #374151;
    line-height: 1.7;
}

.docs-sla-notice p {
    margin: 0;
}

.sla-link {
    color: #177B35;
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.2s ease-in-out;
}

.sla-link:hover {
    text-decoration: underline;
}