/* ==========================================================================
   Syntax Highlighting Theme for REST API Explorer & Code Blocks
   Clean modern dark theme for cURL, JSON, Node.js, PHP, Python
   ========================================================================== */

.code-wrapper {
    position: relative;
    background: #0D1424;
    border: 1px solid #1E293B;
    border-radius: 14px;
    overflow: hidden;
    margin: 12px 0;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #131D33;
    border-bottom: 1px solid #1E293B;
    font-size: 12px;
    color: #94A3B8;
    font-weight: 600;
}

.code-lang-tag {
    text-transform: uppercase;
    color: #38BDF8;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #E2E8F0;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: #00AED6;
    color: #FFFFFF;
    border-color: #00AED6;
}

.code-pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, Monaco, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #F8FAFC;
}

/* Syntax Colored Tokens */
.syn-cmd { color: #38BDF8; font-weight: bold; } /* curl, node, python */
.syn-method { color: #4ADE80; font-weight: bold; } /* POST, GET */
.syn-url { color: #FCD34D; } /* URL endpoints */
.syn-flag { color: #A78BFA; } /* -X, -H, -d */
.syn-header { color: #F472B6; } /* Content-Type:, x-api-key: */
.syn-key { color: #60A5FA; } /* JSON object keys */
.syn-str { color: #34D399; } /* JSON string values */
.syn-num { color: #FB923C; } /* Numbers */
.syn-bool { color: #C084FC; font-weight: bold; } /* true, false */
.syn-null { color: #94A3B8; font-style: italic; }
.syn-comment { color: #64748B; font-style: italic; }
.syn-bracket { color: #E2E8F0; }

/* Status Response Badges */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    font-family: monospace;
}
.status-pill-200 { background: rgba(16, 185, 129, 0.2); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-pill-400 { background: rgba(245, 158, 11, 0.2); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.4); }
.status-pill-500 { background: rgba(239, 68, 68, 0.2); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.4); }
