/* Status Code Styling */
.status-code-200,
.status-code-201,
.status-code-202,
.status-code-204 {
    /*color: var(--thredup-green-1);*/
    color: black;
    padding: 8px;
}

.status-code-400,
.status-code-401,
.status-code-403,
.status-code-404,
.status-code-422,
.status-code-429,
.status-code-500,
.status-code-502,
.status-code-503 {
    /*color: var(--thredup-red-1);*/
    color: black;
    padding: 8px;
}

.response-tab-title {
    font-size: 22px !important;
    line-height: 1.5 !important;
}

/* Parameter and Property Styling */
.param-required {
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-left: 12px;
    padding: 4px 12px 8px;
    font-family: 'Graphik Regular Web', sans-serif;
}

.param-optional {
    margin-left: 12px;
    color: #505053 !important;
    font-size: 0.95em;
    font-weight: bold;
    font-family: 'Graphik Regular Web', sans-serif;
}

.param-type {
    margin-left: 12px;
    color: #6b7280 !important;
    font-weight: 500;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Dark mode adjustments for parameter styling */
[data-md-color-scheme="slate"] .param-required {
    color: var(--thredup-green) !important;
}

[data-md-color-scheme="slate"] .param-optional {
    color: #64748b !important;
}

[data-md-color-scheme="slate"] .param-type {
    color: #94a3b8 !important;
}

/* Modern Endpoint Header Styling */
.endpoint-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 24px 0;
    padding: 20px 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease-in-out;
}

.endpoint-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0; /* Allows text truncation */
}

.endpoint-header-right {
    flex-shrink: 0;
}

/* Modern Method Badges */
.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 48px;
    justify-content: center;
}

.method-post {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.method-get {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.method-put {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.method-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.method-patch {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
}

/* Modern Endpoint Path */
.endpoint-path {
    font-family: 'Roboto Mono', monospace !important;
    font-size: 15px;
    font-weight: 500;
    color: #1f2937 !important;
    background: none !important;
    padding: 8px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

/* Modern Try Button */
.endpoint-try-button {
    font-size: 13px;
    color: #fff !important;
    background: #000 !important;
    border-radius: 3px !important;
    text-transform: uppercase;
}

.endpoint-try-button:hover,
.endpoint-try-button:active {
    color: #fff !important;
    background: #000 !important;
    transform: translateY(-1px);
    text-decoration: none;
}


/* Dark mode support */
[data-md-color-scheme="slate"] .endpoint-header {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: #334155;
}

[data-md-color-scheme="slate"] .endpoint-path {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
    border-color: #475569;
    color: #e2e8f0 !important;
}

[data-md-color-scheme="slate"] .endpoint-try-button {
    background: var(--thredup-green) !important;
    color: black !important;
    text-decoration: none;
    outline: none;
}

[data-md-color-scheme="slate"] .endpoint-try-button:hover {
    background: var(--thredup-green) !important;
    color: black !important;
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

/* Status code styling in dark mode */
[data-md-color-scheme="slate"] .status-code-200,
[data-md-color-scheme="slate"] .status-code-201,
[data-md-color-scheme="slate"] .status-code-202,
[data-md-color-scheme="slate"] .status-code-204 {
    /*color: var(--thredup-green) !important;*/
    color: white !important;
}

[data-md-color-scheme="slate"] .status-code-400,
[data-md-color-scheme="slate"] .status-code-401,
[data-md-color-scheme="slate"] .status-code-403,
[data-md-color-scheme="slate"] .status-code-404,
[data-md-color-scheme="slate"] .status-code-422,
[data-md-color-scheme="slate"] .status-code-429,
[data-md-color-scheme="slate"] .status-code-500,
[data-md-color-scheme="slate"] .status-code-502,
[data-md-color-scheme="slate"] .status-code-503 {
    /*color: #f87171 !important;*/
    color: white !important;
}

/* Light theme */
[data-md-color-scheme="default"] {
    .param-required {
        background-color: var(--thredup-green-2);
        color: black;
    }
}

/* Dark theme */
[data-md-color-scheme="slate"] {
    .param-required {
        background-color: black;
        color: white !important;
    }
}