/* JSON View CSS - Styling for the JSON viewer */

.json-view {
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    max-height: 700px;
    overflow-y: auto;
}

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

.json-node:first-child {
    margin-left: 0;
}

.json-key {
    color: #0066cc;
    font-weight: bold;
}

.json-bracket {
    color: #666;
    font-weight: bold;
}

.json-toggle {
    cursor: pointer;
    color: #999;
    font-weight: bold;
    margin-left: 5px;
    user-select: none;
    display: inline-block;
    width: 12px;
    text-align: center;
}

.json-toggle:hover {
    color: #333;
    background-color: #e9ecef;
    border-radius: 2px;
}

.json-value {
    margin-left: 5px;
}

.json-string {
    color: #008000;
}

.json-number {
    color: #0066cc;
}

.json-boolean {
    color: #cc6600;
    font-weight: bold;
}

.json-null {
    color: #999;
    font-style: italic;
}

.json-children {
    margin-left: 15px;
    border-left: 1px dotted #ccc;
    padding-left: 10px;
}

/* Hover effects */
.json-node:hover > .json-key {
    background-color: #e3f2fd;
    border-radius: 2px;
    padding: 1px 2px;
}

/* Compact view for arrays and objects */
.json-node.collapsed .json-children {
    display: none;
}

/* Animation for expand/collapse */
.json-children {
    transition: all 0.2s ease-in-out;
}

/* Better spacing for root level */
.json-view > .json-node {
    margin-left: 0;
}

/* Scrollbar styling */
.json-view::-webkit-scrollbar {
    width: 8px;
}

.json-view::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.json-view::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.json-view::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}
