/* Frontend Styles */
.json-response-block {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    box-sizing: border-box;
}

.json-response-block__tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0;
}

.json-response-block__tab {
    background: none !important;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-weight: 500;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    margin: 0;
    position: relative;
    outline: none !important;
    box-shadow: none !important;
}

.json-response-block__tab:hover {
    color: rgba(255, 255, 255, 0.8);
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.json-response-block__tab:focus {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.json-response-block__tab:active {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
}

.json-response-block__tab.active {
    color: #007acc !important;
    border-bottom-color: #007acc !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.json-response-block__controls {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.json-response-block__copy-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.json-response-block__copy-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.json-response-block__copy-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.json-response-block__copy-btn:hover svg {
    opacity: 1;
}

.json-response-block__content {
    position: relative;
    overflow: hidden;
}

.json-response-block__response {
    display: none;
}

.json-response-block__response.active {
    display: block;
}

.json-response-block__response pre {
    margin: 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.7);
    overflow: hidden;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
    width: 100%;
    box-sizing: border-box;
}

.json-response-block__response pre code {
    background: none !important;
    color: #f8f8f2 !important;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* Prism.js override for JSON syntax highlighting */
.json-response-block code[class*="language-"],
.json-response-block pre[class*="language-"] {
    color: #f8f8f2 !important;
    background: none !important;
    text-shadow: 0 1px rgba(0, 0, 0, 0.3) !important;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap !important;
    word-spacing: normal;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    line-height: 1.4;
    tab-size: 2;
    hyphens: none;
}

/* JSON specific syntax highlighting */
.json-response-block .token.property {
    color: #79b6f2 !important;
}

.json-response-block .token.string {
    color: #a5d6a7 !important;
}

.json-response-block .token.number {
    color: #ffb74d !important;
}

.json-response-block .token.boolean {
    color: #f48fb1 !important;
}

.json-response-block .token.null {
    color: #90a4ae !important;
}

.json-response-block .token.punctuation {
    color: #f8f8f2 !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .json-response-block__tabs {
        padding: 0 12px;
    }
    
    .json-response-block__tab {
        padding: 10px 12px;
        font-size: 0.85em;
    }
    
    .json-response-block__response pre {
        padding: 12px;
        font-size: 13px;
    }
}