/* Meta Stats Bar */
.meta-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.meta-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.meta-stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.meta-stat-value.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

.result-panel {
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 500px;
    transition: all var(--transition-base);
}

.result-panel:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.panel-icon svg {
    width: 16px;
    height: 16px;
}

.panel-title-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.panel-body {
    flex: 1;
    padding: 20px;
    overflow: auto;
}

.panel-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.panel-body::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 4px;
}

.panel-body::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Tree View Styles */
.tree-container {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
}

.tree-node {
    margin-left: 0;
}

.tree-node .tree-node {
    margin-left: 20px;
    border-left: 1px solid var(--border-subtle);
    padding-left: 16px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.tree-item:hover {
    background: var(--bg-secondary);
}

.tree-item.selected {
    background: var(--accent-glow);
}

.tree-toggle {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: 4px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.tree-toggle:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tree-toggle.expanded {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.tree-toggle svg {
    width: 10px;
    height: 10px;
}

.tree-key {
    color: var(--accent-secondary);
    font-weight: 600;
}

.tree-separator {
    color: var(--text-dim);
}

.tree-type {
    padding: 2px 8px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tree-type.type-string { color: var(--success); border-color: var(--success-muted); background: var(--success-muted); }
.tree-type.type-number { color: var(--info); border-color: var(--info-muted); background: var(--info-muted); }
.tree-type.type-boolean { color: var(--warning); border-color: var(--warning-muted); background: var(--warning-muted); }
.tree-type.type-array { color: var(--cyan); border-color: rgba(6, 182, 212, 0.2); background: rgba(6, 182, 212, 0.2); }
.tree-type.type-object { color: var(--pink); border-color: rgba(236, 72, 153, 0.2); background: rgba(236, 72, 153, 0.2); }
.tree-type.type-null { color: var(--text-dim); }

.tree-optional {
    font-size: 10px;
    color: var(--text-dim);
    font-style: italic;
}

.tree-value {
    color: var(--text-secondary);
    font-size: 12px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-children {
    display: none;
}

.tree-children.visible {
    display: block;
    animation: expandIn 0.2s ease;
}

/* Paths Panel */
.paths-search {
    position: relative;
    margin-bottom: 16px;
}

.paths-search input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.paths-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.paths-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.paths-search-icon svg {
    width: 16px;
    height: 16px;
}

.paths-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.path-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.path-item:hover {
    border-color: var(--border-default);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.path-rank {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.path-text {
    flex: 1;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.path-copy {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 0;
}

.path-item:hover .path-copy {
    opacity: 1;
}

.path-copy:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* JSON Viewer */
.json-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.json-tab {
    flex: 1;
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.json-tab:hover {
    color: var(--text-secondary);
}

.json-tab.active {
    background: var(--surface);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.json-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    max-height: 400px;
    overflow: auto;
}

.json-raw {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
}

.json-key { color: var(--pink); font-weight: 600; }
.json-string { color: var(--success); }
.json-number { color: var(--info); }
.json-boolean { color: var(--warning); font-weight: 600; }
.json-null { color: var(--text-dim); font-style: italic; }

.json-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* History & Collections Items */
.history-item,
.collection-item {
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.history-item:hover,
.collection-item:hover {
    border-color: var(--border-default);
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

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

.history-method,
.collection-method {
    padding: 4px 8px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    font-size: 10px;
    font-weight: 700;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
}

.history-time,
.collection-time {
    font-size: 11px;
    color: var(--text-dim);
}

.history-url,
.collection-url {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 8px;
}

.history-actions,
.collection-actions {
    display: flex;
    gap: 8px;
}

.history-actions button,
.collection-actions button {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.history-actions button:hover,
.collection-actions button:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.empty-history,
.empty-collections {
    text-align: center;
    padding: 60px 20px;
}

.empty-history-icon,
.empty-collections-icon {
    width: 64px;
    height: 64px;
    background: var(--surface);
    border: 2px dashed var(--border-default);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.empty-history-icon svg,
.empty-collections-icon svg {
    width: 32px;
    height: 32px;
    color: var(--text-dim);
}

.empty-history-text,
.empty-collections-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Code Generator */
.code-language-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.code-language-tab {
    flex: 1;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.code-language-tab:hover {
    color: var(--text-secondary);
}

.code-language-tab.active {
    background: var(--surface);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.code-output {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    max-height: 400px;
    overflow: auto;
}

.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

.code-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

/* History Item Styles */
.history-meta {
    display: flex;
    gap: 12px;
    margin: 8px 0;
    font-size: 12px;
}

.history-status {
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.history-status.status-success {
    background: var(--success-muted);
    color: var(--success);
}

.history-status.status-error {
    background: var(--error-muted);
    color: var(--error);
}

.history-timing {
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

.history-view-btn {
    background: var(--accent-primary);
    color: white;
}

.history-view-btn:hover {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: white;
}

/* History Details Modal */
.history-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.history-details-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.history-details-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.history-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.history-detail-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.history-detail-item.full-width {
    grid-column: 1 / -1;
}

.history-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.history-detail-value {
    font-size: 14px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.history-url-value {
    word-break: break-all;
}

.history-headers {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-header-item {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.history-header-key {
    color: var(--accent-secondary);
    font-weight: 600;
    min-width: 150px;
}

.history-header-value {
    color: var(--text-secondary);
    flex: 1;
    word-break: break-all;
}

.history-auth-type {
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.history-code-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    max-height: 400px;
    overflow: auto;
}

.history-code-block pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.history-response-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.response-stat {
    flex: 1;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    text-align: center;
}

.response-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.response-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.history-details-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.history-details-actions .action-btn {
    padding: 12px 20px;
}

/* Collection Folder Design */
.collection-folder {
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}

.collection-folder:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.collection-folder-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
}

.collection-folder-tab svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.collection-folder-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.collection-folder-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.collection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collection-method-badge {
    padding: 4px 12px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.collection-timestamp {
    font-size: 11px;
    color: var(--text-dim);
    font-family: 'Fira Code', monospace;
}

.collection-url-display {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 12px;
}

.collection-url-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.collection-url-value {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--text-primary);
    word-break: break-all;
}

.collection-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.collection-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.collection-meta-icon {
    width: 32px;
    height: 32px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.collection-meta-icon svg {
    width: 16px;
    height: 16px;
}

.collection-meta-text {
    flex: 1;
    min-width: 0;
}

.collection-meta-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: capitalize;
}

.collection-meta-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.collection-actions {
    display: flex;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
}

.collection-view-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.collection-view-btn:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.collection-view-btn svg {
    width: 16px;
    height: 16px;
}

.collection-delete-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.collection-delete-btn:hover {
    background: var(--error-muted);
    border-color: var(--error);
    color: var(--error);
}

.collection-delete-btn svg {
    width: 16px;
    height: 16px;
}

/* Collection Details Modal */
.collection-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.collection-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: var(--radius-lg);
    color: white;
}

.collection-details-folder {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.collection-details-folder svg {
    width: 24px;
    height: 24px;
}

.collection-details-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.collection-details-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.collection-details-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.collection-config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.config-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.config-value {
    font-size: 13px;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    word-break: break-all;
}

.collection-headers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.collection-header-row {
    display: flex;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
    font-size: 12px;
}

.collection-header-key {
    color: var(--accent-secondary);
    font-weight: 600;
    min-width: 150px;
}

.collection-header-value {
    color: var(--text-secondary);
    flex: 1;
    word-break: break-all;
}

.collection-code-block {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    max-height: 400px;
    overflow: auto;
}

.collection-code-block pre {
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.6;
}

.collection-details-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Empty Collections */
.empty-collections-hint {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Collection Response Overview */
.collection-response-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.collection-response-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.response-stat-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.response-stat-icon.status-success {
    background: var(--success-muted);
    color: var(--success);
}

.response-stat-icon.status-error {
    background: var(--error-muted);
    color: var(--error);
}

.response-stat-icon svg {
    width: 20px;
    height: 20px;
}

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

.response-stat-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.response-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
}

.config-item.full-width {
    grid-column: 1 / -1;
}

/* Collection Paths Grid */
.collection-paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

.collection-path-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: 'Fira Code', monospace;
}

.path-rank {
    width: 24px;
    height: 24px;
    background: var(--accent-glow);
    color: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.path-value {
    flex: 1;
    font-size: 11px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Enhanced Collection Details */
.config-item {
    position: relative;
}

.config-url {
    padding-right: 40px;
}

.config-copy-btn {
    position: absolute;
    right: 8px;
    top: 24px;
    width: 32px;
    height: 32px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.config-copy-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.config-copy-btn svg {
    width: 14px;
    height: 14px;
}

.config-masked {
    font-family: monospace;
    letter-spacing: 2px;
}

.collection-header-row {
    position: relative;
    padding-right: 44px;
}

.collection-header-row .config-copy-btn {
    top: 50%;
    transform: translateY(-50%);
}

.auth-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.collection-tree-container {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    max-height: 500px;
    overflow: auto;
}

.collection-paths-search {
    margin-bottom: 16px;
}

.collection-path-item {
    position: relative;
    padding-right: 44px;
}

.path-copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.path-copy-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.path-copy-btn svg {
    width: 12px;
    height: 12px;
}

.response-data-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.response-tab {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.response-tab:hover {
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.response-tab.active {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.copy-code-btn {
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--accent-glow);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.copy-code-btn:hover {
    background: var(--accent-primary);
    color: white;
}

.collection-details-actions .action-btn.primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.collection-details-actions .action-btn.secondary {
    background: var(--bg-secondary);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

/* Mobile Responsive Panels */
@media (max-width: 968px) {
    .results-content {
        padding: 28px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .results-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .meta-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .panel-header {
        padding: 16px 20px;
    }
    
    .panel-body {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .results-content {
        padding: 20px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .meta-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .meta-stat-label {
        font-size: 10px;
    }
    
    .meta-stat-value {
        font-size: 18px;
    }
    
    .results-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .results-actions .action-btn {
        flex: 1;
        min-width: calc(50% - 4px);
        justify-content: center;
    }
    
    .panel-title-text {
        font-size: 14px;
    }
    
    .panel-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    
    .tree-item {
        font-size: 12px;
    }
    
    .path-item {
        padding: 10px 14px;
    }
    
    .path-string {
        font-size: 11px;
    }
    
    .collection-item,
    .history-item {
        padding: 14px 16px;
    }
    
    .collection-name,
    .history-url {
        font-size: 13px;
    }
    
    .collection-desc,
    .history-meta {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .results-content {
        padding: 16px;
    }
    
    .results-title {
        font-size: 20px;
    }
    
    .meta-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .results-actions {
        flex-direction: column;
    }
    
    .results-actions .action-btn {
        width: 100%;
        min-width: 100%;
        font-size: 12px;
        padding: 10px 14px;
        justify-content: center;
    }
    
    .panel-header {
        padding: 12px 16px;
    }
    
    .panel-body {
        padding: 16px;
    }
    
    .empty-illustration svg {
        width: 80px;
        height: 80px;
    }
    
    .empty-title {
        font-size: 16px;
    }
    
    .empty-desc {
        font-size: 13px;
    }
}

/* Schema Tree Styling */
.schema-tree {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
}

.tree-node {
    margin-left: 20px;
    position: relative;
}

.tree-node::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-subtle);
}

.tree-key {
    color: var(--syntax-key);
    font-weight: 600;
}

.tree-type {
    color: var(--syntax-number);
    font-size: 11px;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tree-optional {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 6px;
}

.tree-value {
    color: var(--text-secondary);
    margin-left: 8px;
}

.tree-expand {
    cursor: pointer;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    color: var(--text-muted);
    transition: transform var(--transition-base);
}

.tree-expand.expanded {
    transform: rotate(90deg);
}

/* JSON Viewer Syntax Highlighting */
.json-viewer {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.json-viewer .json-string {
    color: var(--syntax-string);
}

.json-viewer .json-number {
    color: var(--syntax-number);
}

.json-viewer .json-boolean {
    color: var(--syntax-boolean);
    font-weight: 600;
}

.json-viewer .json-null {
    color: var(--syntax-null);
    font-weight: 600;
}

.json-viewer .json-key {
    color: var(--syntax-key);
    font-weight: 600;
}

.json-viewer .json-punctuation {
    color: var(--syntax-punctuation);
}

/* Code Generator Syntax Highlighting */
.code-block {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 0;
    white-space: pre;
    color: var(--text-primary);
}

.code-block .code-comment {
    color: var(--text-muted);
    font-style: italic;
}

.code-block .code-keyword {
    color: var(--accent-tertiary);
    font-weight: 600;
}

.code-block .code-string {
    color: var(--syntax-string);
}

.code-block .code-number {
    color: var(--syntax-number);
}

.code-block .code-function {
    color: var(--accent-primary);
    font-weight: 600;
}

.code-block .code-variable {
    color: var(--syntax-key);
}

.code-block .code-operator {
    color: var(--syntax-punctuation);
}

/* Error Container Styling */
.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    background: var(--error-muted);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--error);
}

.error-icon svg {
    width: 40px;
    height: 40px;
}

.error-content {
    max-width: 400px;
}

.error-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--error);
    margin-bottom: 12px;
}

.error-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Code Language Tabs */
.code-language-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 12px;
}

.code-language-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.code-language-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.code-language-tab.active {
    background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.code-output {
    margin-bottom: 20px;
}

.code-actions {
    display: flex;
    justify-content: flex-end;
}

/* JSON Viewer Tabs */
.json-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 12px;
}

.json-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.json-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.json-tab.active {
    background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.json-content {
    margin-bottom: 16px;
}

.tree-container {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 2;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.json-raw {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 0;
    white-space: pre;
}

.json-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

/* Mock Data Modal Styles */
.mock-data-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mock-data-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.mock-data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.mock-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.mock-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mock-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Fira Code', monospace;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mock-data-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.mock-data-viewer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-data-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 12px;
}

.mock-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.mock-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.mock-tab.active {
    background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.mock-data-display {
    max-height: 400px;
    overflow-y: auto;
}

.mock-formatted,
.mock-raw {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    margin: 0;
    white-space: pre;
    overflow-x: auto;
}

.mock-data-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

/* Comparison Modal Styles */
.comparison-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-endpoint {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.endpoint-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.endpoint-url {
    font-size: 13px;
    font-family: 'Fira Code', monospace;
    color: var(--text-secondary);
    word-break: break-all;
}

.comparison-vs {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-primary);
    text-align: center;
}

.comparison-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comparison-panel .panel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.comparison-code {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
    margin: 0;
    white-space: pre;
}

@media (max-width: 768px) {
    .comparison-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .comparison-vs {
        display: none;
    }
    
    .comparison-panels {
        grid-template-columns: 1fr;
    }
}

/* Mock Data Modal Styles */
.mock-data-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mock-data-header {
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.mock-data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.mock-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mock-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mock-stat-value {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Fira Code', monospace;
}

.mock-data-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    padding: 0 20px;
}

.mock-data-viewer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mock-data-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 12px;
}

.mock-tab {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-base);
}

.mock-tab:hover {
    background: var(--bg-secondary);
    border-color: var(--border-default);
    color: var(--text-secondary);
}

.mock-tab.active {
    background: linear-gradient(135deg, var(--accent-glow) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--accent-primary);
}

.mock-data-display {
    position: relative;
}

.mock-formatted,
.mock-raw {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.8;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 0;
    white-space: pre;
    max-height: 400px;
    overflow-y: auto;
}

.mock-data-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Mobile responsive for action containers */
@media (max-width: 480px) {
    .code-actions,
    .json-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .code-actions .action-btn,
    .json-actions .action-btn {
        width: 100%;
        justify-content: center;
    }
    
    .json-tabs {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .json-tab {
        font-size: 12px;
        padding: 6px 12px;
    }
}