:root {
    --sidebar-width: 300px;
    --method-get: #337ab7;
    --method-post: #5cb85c;
    --method-put: #f0ad4e;
    --method-delete: #d9534f;
    --method-patch: #b7b7b7;
}

/* Original styles */
code {
    font-size: 13px !important;
}

code[class*=language-], pre[class*=language-] {
    font-family: Menlo, "Droid Sans", Consolas, monospace !important;
}

.code {
    font-family: Menlo, Consolas, monospace !important;
    font-size: 13px !important;
    line-height: 19px !important;
    padding: 0.5rem 0.5rem 1.5rem 0.5rem !important;
    border-radius: 4px;
    min-height: 64px;
    height: 100%;
    overflow-x: auto !important;
    border: 16px solid transparent;
}

.code::-webkit-scrollbar {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    height: 0.5rem;
    width: 0.5rem;
}

.code::-webkit-scrollbar-track {
    background: rgb(64, 80, 80);
    border-radius: 8px;
}

.code::-webkit-scrollbar-thumb {
    background-color: rgb(32, 40, 40);
    border-radius: 8px;
}

.code::-webkit-scrollbar-corner {
    border-radius: 8px;
}

/* API Documentation Styles */
.docs-container {
    display: flex;
    position: relative;
}

.docs-sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid #e5e7eb;
    height: calc(100vh - 60px);
    position: fixed;
    overflow-y: auto;
    background: #fff;
    padding: 1rem;
}

.docs-content-box {
    width: 100%;
    padding-left: var(--sidebar-width);
    box-sizing: border-box;
}

.docs-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* API Styling */
.docs-api {
    margin-bottom: 3rem;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.docs-api-header {
    margin-bottom: 0.5rem;
}

.method {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: white;
    min-width: 60px;
    text-align: center;
    display: inline-block;
}

.method-get { background: var(--method-get); }
.method-post { background: var(--method-post); }
.method-put { background: var(--method-put); }
.method-delete { background: var(--method-delete); }
.method-patch { background: var(--method-patch); }

/* Navigation */
.docs-app-header {
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
    cursor: pointer;
    user-select: none;
}

.docs-app-header:hover {
    background-color: #f8fafc;
}

.version {
    font-size: 0.875rem;
    color: #64748b;
    margin-left: 0.5rem;
}

.docs-category-header {
    font-weight: 500;
    padding: 0.5rem 1rem;
    color: #4b5563;
}

.docs-api-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #1f2937;
    text-decoration: none;
}

.docs-api-link:hover {
    background: #f3f4f6;
}

.docs-api-link-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.method-col {
    display: flex;
    align-items: center;
}

.name-col {
    overflow: visible;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
}

/* Code tabs */
.docs-code-tabs {
    margin: 1rem 0;
}

.table-parameters {
    margin: 1rem 0;
}

.table-parameters code {
    background: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 4px;
}

/* Example code styling */
.docs-example-tabs {
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.docs-example-tabs .nav-tabs {
    background: #f1f5f9;
    border-bottom: none;
    padding: 0.5rem 1rem 0;
}

.docs-example-tabs .nav-link {
    color: #64748b;
    border: none;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border-radius: 4px 4px 0 0;
}

.docs-example-tabs .nav-link.active {
    background: #fff;
    color: #0f172a;
    border-bottom: 2px solid #2563eb;
}

.example-code {
    position: relative;
    background: #1e293b;
    border-radius: 0 0 8px 8px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #334155;
    color: #e2e8f0;
}

.copy-btn {
    background: transparent;
    border: 1px solid #64748b;
    color: #e2e8f0;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #475569;
    border-color: #94a3b8;
}

/* API Section Separation */
.docs-api-section {
    padding: 1rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.docs-api-section h3 {
    color: #1e293b;
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Icon Rotation based on aria-expanded */
.docs-app-header[aria-expanded="true"] .toggle-icon {
    transform: rotate(90deg);
}

.docs-app-header .toggle-icon {
    transition: transform 0.3s ease;
    font-size: 0.875rem;
    color: #64748b;
    display: inline-block;
    line-height: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .docs-content {
        max-width: 100%;
        padding: 1.5rem;
    }
    
    .docs-api {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 240px;
    }

    .docs-content {
        padding: 1rem;
    }
    
    .docs-api {
        padding: 1rem;
    }

    .docs-api-header h2 {
        font-size: 1.5rem;
    }

    .docs-example-tabs .nav-tabs {
        padding: 0.5rem 0.5rem 0;
    }

    .docs-example-tabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Hide mobile menu by default */
.docs-mobile-header {
    display: none;
}

@media (max-width: 640px) {
    /* Hide both mobile header and menu button */
    .docs-mobile-header,
    .docs-mobile-menu {
        display: none;
    }

    /* Update sidebar for mobile */
    .docs-sidebar {
        display: none; /* Hide sidebar completely on mobile */
    }

    /* Remove container top padding */
    .docs-container {
        padding-top: 0;
    }

    /* Remove the space reserved for menu button */
    .docs-content {
        position: relative;
        padding-top: 1rem; /* Reset padding since we don't need space for the button */
    }

    /* Adjust content box */
    .docs-content-box {
        padding-left: 0;
    }

    /* Rest of the mobile styles */
    .docs-api-meta {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .path {
        word-break: break-all;
    }

    .table-parameters {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Add styles for extra large screens */
@media (min-width: 1600px) {
    .docs-content {
        max-width: 1600px;
        padding: 2rem 6rem;
    }
}

@media (min-width: 1920px) {
    .docs-content {
        max-width: 1800px;
    }
}