/* JSON Validation Editor Styles */

.json-validation-editor {
    font-family: monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    overflow: auto;
    max-height: 600px;
}

.json-tree-view {
    padding: 0.5rem;
}

.json-node {
    margin-left: 0.5rem;
    padding: 0.125rem 0;
}

.json-node-header {
    display: flex;
    align-items: center;
    padding: 0.25rem;
    border-radius: 0.25rem;
}

.json-node-header:hover {
    background-color: #f3f4f6;
}

.json-node-content {
    margin-left: 1rem;
    border-left: 1px dashed #e2e8f0;
    padding-left: 0.5rem;
}

.expand-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.expand-btn:hover {
    color: #4b5563;
}

.expand-spacer {
    width: 20px;
    display: inline-block;
}

.json-key {
    color: #2e7d32; /* Certainli green */
    font-weight: 600;
    margin-right: 0.5rem;
}

.json-type {
    color: #6b7280;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    padding: 0.125rem 0.375rem;
    background-color: #f3f4f6;
    border-radius: 0.25rem;
}

.json-value {
    color: #1e40af;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.validation-select {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.75rem;
    color: #374151;
}

.validation-select option[value="critical"] {
    background-color: #fee2e2;
    color: #991b1b;
}

.validation-select option[value="optional"] {
    background-color: #fef3c7;
    color: #92400e;
}

.validation-select option[value="not_important"] {
    background-color: #e5e7eb;
    color: #4b5563;
}

.timestamp-badge {
    font-size: 0.7rem;
    padding: 0.125rem 0.25rem;
    background-color: #e0f2fe;
    color: #0369a1;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
}

.hidden {
    display: none;
}

/* Controls for expand/collapse all */
.json-editor-controls {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f9fafb;
}

.json-editor-controls button {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    margin-left: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.json-editor-controls button:hover {
    background-color: #f3f4f6;
}

.json-editor-controls button svg {
    width: 0.75rem;
    height: 0.75rem;
    margin-right: 0.25rem;
}

/* Path display for better navigation */
.json-path-display {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background-color: #f9fafb;
    border-bottom: 1px solid #e2e8f0;
    color: #6b7280;
    font-family: monospace;
}

.json-path-segment {
    color: #2e7d32;
    cursor: pointer;
}

.json-path-segment:hover {
    text-decoration: underline;
}
