.json-body {
    width: 50%;
    background: transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: var(--transition-theme);
}

.json-editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 24px;
}

.json-toolbar {
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.json-toolbar .json-button {
    width: auto;
    background: var(--surface-variant);
    color: var(--text-primary);
}

.json-toolbar .json-button:hover {
    background: var(--hover-overlay);
    color: var(--primary-color);
}

.json-editor-wrapper {
    position: relative;
    display: flex;
    flex-grow: 1;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: var(--shape-medium);
    background: var(--surface-color);
    box-shadow: var(--shadow-md);
}

.line-numbers {
    width: 48px;
    padding: 12px 8px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--surface-variant);
    text-align: right;
    border-right: 1px solid var(--border-color);
    overflow-y: hidden;
    user-select: none;
}

.json-textarea {
    flex-grow: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: #e0e0e0;
    line-height: 1.6;
    resize: none;
    overflow-y: auto !important;
    font-family: var(--font-code);
    font-size: 0.9rem;
    white-space: pre;
    overflow-x: auto;
}

.json-textarea:focus {
    outline: none;
}

.json-status-bar {
    padding: 8px 16px;
    background: var(--surface-variant);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--shape-pill);
    margin-top: 16px;
    font-family: var(--font-ui);
    display: inline-block;
    align-self: flex-start;
}

.status-error {
    color: #ff5252;
    background: rgba(255, 82, 82, 0.1);
}

.status-info {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
}

.status-success {
    color: var(--primary-color);
    background: var(--active-overlay);
}

.json-textarea.drag-over {
    background-color: var(--active-overlay) !important;
}