.json-viewer-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    background: #1a1a2e;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.json-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #16213e;
    border-bottom: 2px solid #0f3460;
}

.json-viewer-title {
    font-size: 18px;
    font-weight: bold;
    color: #00d4ff;
}

.json-viewer-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.jv-btn {
    padding: 6px 14px;
    background: #0f3460;
    color: #e0e0e0;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.jv-btn:hover {
    background: #1a5490;
    transform: translateY(-1px);
}

.jv-btn-primary {
    background: #00d4ff;
    color: #16213e;
    font-weight: 600;
}

.jv-btn-primary:hover {
    background: #00b8db;
}

.jv-btn-secondary {
    background: #533483;
    color: white;
}

.jv-btn-secondary:hover {
    background: #6b44a8;
}

.jv-status {
    padding: 4px 12px;
    background: #0f3460;
    color: #4ecca3;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.json-viewer-upload {
    padding: 12px 20px;
    background: #16213e;
    border-bottom: 1px solid #0f3460;
    display: flex;
    gap: 10px;
    align-items: center;
}

.json-viewer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: #0f3460;
}

.json-viewer-input-panel,
.json-viewer-output-panel {
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
}

.json-viewer-label {
    padding: 10px 16px;
    background: #16213e;
    color: #00d4ff;
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid #0f3460;
}

.json-viewer-textarea {
    flex: 1;
    padding: 16px;
    background: #1a1a2e;
    color: #e0e0e0;
    border: none;
    outline: none;
    resize: none;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.json-viewer-tree {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #1a1a2e;
    color: #e0e0e0;
    font-size: 13px;
    line-height: 1.8;
}

.json-viewer-placeholder {
    color: #6c757d;
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
}

.jv-tree-node {
    margin: 2px 0;
}

.jv-tree-toggle {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
    color: #00d4ff;
    user-select: none;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
}

.jv-tree-key {
    color: #00d4ff;
    font-weight: 500;
}

.jv-tree-string {
    color: #4ecca3;
}

.jv-tree-number {
    color: #ffd93d;
}

.jv-tree-boolean {
    color: #ff6b9d;
}

.jv-tree-null {
    color: #95a5a6;
    font-style: italic;
}

.jv-tree-bracket {
    color: #00d4ff;
    font-weight: bold;
}

.jv-tree-children {
    margin-left: 20px;
    border-left: 1px solid #0f3460;
    padding-left: 10px;
}

.jv-tree-collapsed {
    display: none;
}

@media (max-width: 768px) {
    .json-viewer-main {
        grid-template-columns: 1fr;
    }
    
    .json-viewer-actions {
        flex-wrap: wrap;
    }
}