.tl-json-formatter {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.tl-json-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.tl-json-tab-group {
    display: flex;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}

.tl-tab-btn {
    padding: 10px 18px;
    border: none;
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    border-right: 1px solid #d1d5db;
}

.tl-tab-btn:last-child { border-right: none; }
.tl-tab-btn.active, .tl-tab-btn:hover {
    background: var(--primary-color, #072d6e);
    color: #fff;
}

.tl-indent-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-label-inline { font-size: 14px; font-weight: 600; color: #374151; }

.tl-select-sm {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.tl-json-editor-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .tl-json-editor-grid { grid-template-columns: 1fr 1fr; }
}

.tl-editor-pane {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.tl-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f3f4f6;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
}

.tl-small-btn {
    padding: 4px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.tl-small-btn:hover { background: #e5e7eb; }

.tl-code-area, .tl-code-output {
    flex-grow: 1;
    min-height: 300px;
    padding: 14px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    background: #1e1e2e;
    color: #cdd6f4;
    border: none;
    outline: none;
    resize: none;
    overflow-y: auto;
    white-space: pre;
    margin: 0;
}

.tl-code-area { color: #cdd6f4; }

/* JSON syntax highlighting */
.tl-json-string  { color: #a6e3a1; }
.tl-json-number  { color: #fab387; }
.tl-json-boolean { color: #89b4fa; }
.tl-json-null    { color: #f38ba8; }
.tl-json-key     { color: #cba6f7; }

.tl-json-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.tl-json-status.valid {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.tl-json-status.invalid {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.tl-tool-actions { display: flex; gap: 12px; }

.button {
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.button-primary {
    background: var(--primary-color, #072d6e);
    color: #fff;
}
.button-primary:hover { opacity: 0.88; }
