/* API Documentation Specific Styles */

/* Code block styles for guides */
.guide-content pre {
    background: #f4f4f4 !important;
    color: #333 !important;
    padding: 20px !important;
    border-radius: 8px !important;
    overflow-x: auto !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.guide-content pre code {
    color: #333 !important;
    background: transparent !important;
    font-family: 'Courier New', Consolas, Monaco, monospace !important;
}

.guide-content code {
    background: var(--light);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
}

.breadcrumb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.api-breadcrumb {
    font-size: 0.9rem;
    color: var(--gray);
}

.api-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.api-breadcrumb a:hover {
    text-decoration: underline;
}

.api-breadcrumb span {
    color: var(--gray);
}

/* Hide last breadcrumb item on small screens for detail pages */
@media (max-width: 768px) {
    .breadcrumb-last::before {
        content: none;
    }

    .breadcrumb-last {
        display: none;
    }
}

.openapi-download-link {
    font-size: 0.85rem;
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.openapi-download-link:hover {
    background: var(--primary);
    color: white;
}

/* Tabbed navigation */
.docs-tabs {
    display: flex;
    gap: 0;
    margin: 30px 0 20px 0;
    border-bottom: 2px solid #e9ecef;
    justify-content: center;
}

.docs-tab {
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
    position: relative;
}

.docs-tab:hover {
    color: var(--primary);
    border-bottom-color: var(--green);
}

.docs-tab.active {
    color: var(--primary);
    border-bottom-color: var(--green);
}

.operation-header {
    margin-bottom: 40px;
}

.operation-header h1 {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.operation-header .operation-description {
    margin-top: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray);
}

.operation-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.method-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

.method-get {
    background: #61affe;
    color: white;
}

.method-post {
    background: #49cc90;
    color: white;
}

.method-put {
    background: #fca130;
    color: white;
}

.method-delete {
    background: #f93e3e;
    color: white;
}

.method-patch {
    background: #50e3c2;
    color: white;
}

.endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--primary);
    word-break: break-all;
    overflow-wrap: break-word;
}

/* Two-column layout for parameters and responses */
.operation-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.operation-column {
    min-width: 0;
}

.operation-section {
    margin-bottom: 30px;
}

.operation-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green);
}

.operation-section h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    margin-top: 20px;
}

.operation-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--gray);
    margin-bottom: 15px;
}

.operation-description p {
    margin-bottom: 15px;
}

.operation-description code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--primary);
}

.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.params-table thead {
    background: var(--primary);
    color: white;
}

.params-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
}

.params-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.875rem;
    color: var(--gray);
}

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

.params-table td p {
    color: var(--gray);
    margin: 0;
}

.param-name {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary);
}

.param-required {
    color: #f93e3e;
    font-weight: 700;
    margin-left: 4px;
    font-size: 1.2em;
}

.param-type {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--purple);
}

.param-location {
    display: inline-block;
    background: var(--light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

.enum-badge {
    display: inline-block;
    background: #e9ecef;
    color: var(--gray);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 500;
    margin: 2px;
    white-space: nowrap;
}

.response-status {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    margin-right: 10px;
}

.response-200 { color: #49cc90; }
.response-201 { color: #49cc90; }
.response-400 { color: #fca130; }
.response-401 { color: #f93e3e; }
.response-403 { color: #f93e3e; }
.response-404 { color: #fca130; }
.response-500 { color: #f93e3e; }

.response-item {
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid var(--purple);
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.response-item strong {
    color: var(--primary);
    font-weight: normal;
}

.response-item p {
    color: var(--gray);
}

.request-body-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    border-left: 3px solid var(--purple);
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--gray);
}

.request-body-info strong {
    color: var(--primary);
}

.content-type {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: white;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 10px;
}

.try-it-section {
    margin-top: 0;
}

.try-it-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--green);
}

#swagger-ui {
    margin-top: 20px;
}

/* Override Swagger UI styles to match our theme */
#swagger-ui .swagger-ui .topbar {
    display: none !important;
}

#swagger-ui .swagger-ui .info {
    margin: 0;
}

/* Hide Swagger UI elements we don't need */
.swagger-ui .information-container {
    display: none !important;
}

.swagger-ui .scheme-container {
    display: none !important;
}

.swagger-ui .opblock-tag {
    display: none !important;
}

.swagger-ui .auth-wrapper {
    display: none !important;
}

/* Also hide the authorize button directly */
.swagger-ui .authorization__btn {
    display: none !important;
}

/* Hide any authorization-related elements */
.swagger-ui .auth-container {
    display: none !important;
}

/* Remove wrapper margin in Try it section */
.swagger-ui .wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove text shadow from code blocks in Try It section */
.swagger-ui .responses-inner pre,
.swagger-ui .responses-inner code {
    text-shadow: none !important;
}

/* Hide copy to clipboard buttons */
.swagger-ui .copy-to-clipboard {
    display: none !important;
}

/* Improve text contrast in Swagger UI forms */
.swagger-ui input[type="text"],
.swagger-ui input[type="password"],
.swagger-ui textarea,
.swagger-ui select,
.swagger-ui .body-param__text {
    color: #333 !important;
    background: white !important;
}

.swagger-ui .parameters-col_description input[type="text"] {
    color: #333 !important;
}

.swagger-ui .response-col_description {
    color: #333 !important;
}

/* Fix all code/pre blocks to have light text on dark background */
.swagger-ui pre,
.swagger-ui code,
.swagger-ui .microlight {
    color: #f8f8f2 !important;
    background: #2d2d2d !important;
}

/* Fix curl command text */
.swagger-ui .curl-command {
    color: #f8f8f2 !important;
}

/* Fix request URL text */
.swagger-ui .request-url pre {
    color: #f8f8f2 !important;
}

/* Fix response body text */
.swagger-ui .responses-inner .response-col_description,
.swagger-ui .responses-inner .response-col_status {
    color: white !important;
}

/* Fix headers in response tables */
.swagger-ui .responses-table thead tr td,
.swagger-ui .responses-table thead tr th {
    color: white !important;
}

/* Fix all text in response areas */
.swagger-ui .responses-wrapper {
    color: white !important;
}

.swagger-ui .response .response-col_description {
    color: white !important;
}

/* Fix all table text in Swagger UI */
.swagger-ui table thead tr td,
.swagger-ui table thead tr th {
    color: #333 !important;
}

/* Fix response headers and body labels */
.swagger-ui .responses-inner h4,
.swagger-ui .responses-inner h5 {
    color: #333 !important;
}

/* Fix live responses content */
.swagger-ui .live-responses-table {
    color: #333 !important;
}

/* Hide the static responses documentation in Try it section */
/* The responses are already shown in the main documentation above */
/* Target the table with ID that contains "_responses" - this is the static responses table */
.swagger-ui .responses-wrapper .responses-inner > table[id$="_responses"] {
    display: none !important;
}

/* Hide the entire "Responses" section header in the Try It section */
.swagger-ui .responses-wrapper .opblock-section-header {
    display: none !important;
}

/* Also hide the "Responses" h4 that comes after execution */
.swagger-ui .responses-wrapper .responses-inner > div > h4:last-child {
    display: none !important;
}

/* Update responses-inner padding */
.swagger-ui .responses-inner {
    padding: 0 20px !important;
}

/* Add bottom padding to first immediate div in responses-inner */
.swagger-ui .responses-inner > div:first-child {
    padding-bottom: 20px !important;
}

/* Hide the opblock-summary-description in Try It form */
.swagger-ui .opblock-summary-description {
    display: none !important;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag-item {
    background: var(--light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--green);
    color: white;
    transform: translateY(-2px);
}

.operations-list {
    list-style: none;
    padding: 0;
    margin: 0 0 60px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.operation-item {
    /* No margin needed with grid gap */
}

.operation-link {
    display: block;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.operation-link:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.operation-link-method {
    display: inline;
}

.operation-link-info {
    /* No special styling needed */
}

.operation-link-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    display: block;
}

.operation-link-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 10px;
    display: block;
}

.operation-link-path {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--gray);
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 4px;
    display: block;
    word-break: break-all;
    overflow-wrap: break-word;
}

.api-index-header {
    text-align: center;
    padding: 30px 0 20px;
}

.api-index-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.api-index-header p {
    font-size: 1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Ensure content pushes footer to bottom */
main {
    min-height: calc(100vh - 200px);
}

/* Override for API docs pages to ensure white background fills */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.tag-sections-container {
    column-count: 3;
    column-gap: 20px;
}

.tag-section {
    break-inside: avoid;
    margin-bottom: 20px;
}

.tag-section-header {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--purple);
}

@media (max-width: 1200px) {
    .tag-sections-container {
        column-count: 2;
    }
}

/* Sidebar layout for operation pages */
.docs-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 120px;
    height: fit-content;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.sidebar-content {
    /* Container for sidebar content */
}

.sidebar-title {
    font-size: 0.95rem;
    color: var(--primary);
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-description {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    color: var(--gray);
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #f8f9fa;
    color: var(--primary);
}

.sidebar-link.active {
    background: var(--green);
    color: white;
    font-weight: 600;
}

.sidebar-link .method-badge {
    flex-shrink: 0;
    min-width: 52px;
    text-align: center;
}

.sidebar-link-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* Tag cards for main index */
.tag-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.tag-card {
    display: block;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tag-card:hover {
    border-color: var(--green);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.tag-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tag-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.tag-card p {
    font-size: 0.95rem;
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

.tag-card-count {
    display: inline-block;
    background: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

/* Tag page header */
.tag-page-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--green);
}

.tag-page-header h1 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.tag-page-header p {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.6;
}

/* Mobile dropdown styles */
.sidebar-mobile-toggle {
    display: none;
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    text-align: left;
    position: relative;
    margin-bottom: 20px;
    transition: border-radius 0.3s ease, border-bottom-color 0.3s ease, margin-bottom 0.3s ease;
}

.sidebar-mobile-toggle.open {
    border-bottom-color: transparent;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.sidebar-mobile-toggle::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-mobile-toggle.open::after {
    transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 1024px) {
    .docs-layout {
        flex-direction: column;
        gap: 0;
    }

    .sidebar {
        width: 100%;
        position: static;
    }

    /* Show mobile toggle, hide sidebar by default */
    .sidebar-mobile-toggle {
        display: block;
    }

    .sidebar {
        border: none;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out, margin-bottom 0.3s ease-out;
    }

    .sidebar.open {
        max-height: 2000px;
        opacity: 1;
        padding: 20px;
        margin-bottom: 20px;
        border: 2px solid #e9ecef;
        border-top: none;
        transition: max-height 0.5s ease-in, opacity 0.4s ease-in, padding 0.3s ease-in, margin-bottom 0.3s ease-in;
    }

    .tag-cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Schema link styling */
.schema-link {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}

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

/* Schema page styling */
.schema-header {
    margin-bottom: 40px;
}

.schema-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.schema-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray) !important;
    margin-top: 15px;
}

.schema-description p {
    color: var(--gray) !important;
    margin: 0;
}

.schema-description * {
    color: var(--gray) !important;
}

.schema-section {
    margin-bottom: 40px;
}

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

/* Schema list styling */
.schema-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.schema-list-item {
    /* Grid item */
}

.schema-list-link {
    display: block;
    padding: 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
}

.schema-list-link:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.schema-list-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.schema-list-description {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.5;
    display: block;
}

.schema-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.schema-usage-count {
    display: inline-block;
    background: rgba(103, 58, 183, 0.1);
    color: #673ab7;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

/* Related Schemas section on operation pages */
.related-schemas-section {
    margin-top: 0;
}

.related-schemas-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--purple);
}

.schema-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schema-card {
    display: block;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.schema-card:hover {
    border-color: var(--purple);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.schema-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 8px 0;
}

/* Remove bottom margin from h3 when there's no description */
.schema-card h3:last-child {
    margin-bottom: 0;
}

.schema-card p {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.4;
    margin: 0;
}

/* Request Body Section */
.request-body-section {
    margin-top: 0;
}

.request-body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
}

.request-body-header h3 {
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0;
}

.request-body-header h3 .param-required {
    font-size: 0.85em;
    vertical-align: super;
    line-height: 0;
}

.request-body-meta {
    font-size: 0.85rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-type-inline {
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.schema-link-button {
    display: inline-block;
    background: var(--purple);
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.schema-link-button:hover {
    opacity: 0.8;
}

.request-body-description {
    margin-bottom: 15px;
}

/* JSON Example Styling */
.json-example {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.json-example-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    padding: 10px 14px;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.json-example pre {
    margin: 0;
    padding: 14px;
    overflow-x: auto;
    background: #f8f9fa;
}

.json-example code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--primary);
    display: block;
}

/* JSON Syntax Highlighting */
.json-code .json-key {
    color: #0066CC;
    font-weight: 600;
}

.json-code .json-string {
    color: #22863a;
}

.json-code .json-number {
    color: #005cc5;
}

.json-code .json-boolean {
    color: #d73a49;
    font-weight: 600;
}

.json-code .json-null {
    color: #6f42c1;
    font-weight: 600;
}

.json-code .json-punctuation {
    color: var(--gray);
}

@media (max-width: 768px) {
    .operation-header h1 {
        font-size: 1.5rem;
    }

    .operation-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .endpoint-path {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .operation-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .params-table {
        font-size: 0.8rem;
    }

    .params-table th,
    .params-table td {
        padding: 8px;
    }

    /* Responsive table for schema properties - hide description column, show description rows */
    .params-table th:nth-child(3),
    .params-table .description-desktop {
        display: none;
    }

    .description-mobile {
        display: table-row;
    }

    .description-mobile td {
        padding: 8px 12px;
        background: #f8f9fa;
        border-top: none;
        color: var(--gray);
    }

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

    .tag-sections-container {
        column-count: 1;
    }

    .api-index-header h1 {
        font-size: 1.5rem;
    }

    .tag-section-header {
        font-size: 1rem;
    }

    .tag-cards {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }

    .tag-card {
        padding: 20px;
    }

    .tag-card-name {
        font-size: 1.1rem;
    }

    .tag-page-header h1 {
        font-size: 1.6rem;
    }

    .tag-page-header p {
        font-size: 0.95rem;
    }
}

/* Desktop - hide mobile description rows */
@media (min-width: 769px) {
    .description-mobile {
        display: none;
    }
}

/* Custom Authorization Controls */
.custom-auth-controls {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
}

.custom-auth-button {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--gray);
    border: 2px solid var(--gray);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.custom-auth-button:hover {
    background: var(--gray);
    color: white;
    transform: translateY(-1px);
}

/* Style for Remove API Key button */
#removeAuthBtn {
    background: var(--yellow);
    color: white;
    border: 2px solid var(--yellow);
}

#removeAuthBtn:hover {
    background: #f93e3e;
    border-color: #f93e3e;
}

.custom-auth-button svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    flex-shrink: 0;
}

.custom-auth-button:active {
    transform: translateY(0);
}

#authStatus {
    font-size: 0.75rem;
    margin-left: 8px;
}

/* Hide parameter_in divs in Swagger UI */
.swagger-ui .parameter__in {
    display: none !important;
}

/* Guide pages padding */
.guide-content {
    padding-top: 10px;
}
