/* Scoped styles for JSON Editor */
        .json-editor-wrapper * {
            box-sizing: border-box;
        }
        
        .json-editor-wrapper {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f5f5f5;
            transition: all 0.3s ease;
        }
        
        .json-editor-wrapper.fullscreen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 9999;
            background: white;
        }
        
        .json-editor-wrapper.fullscreen .json-main-container {
            height: calc(100vh - 56px);
        }
        
        .json-header {
            background: #2c3e50;
            color: white;
            padding: 12px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .json-header h1 {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
        }
        
        .json-header-actions button {
            background: #7b9a62;
            border: none;
            color: white;
            padding: 8px 16px;
            margin-left: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 14px;
            transition: all 0.3s;
        }
        
        .json-header-actions button:hover {
            background: #6a8555;
        }
        
        .json-main-container {
            display: flex;
            height: 600px;
            background: white;
            overflow: hidden; 
        }
        
        .json-panel {
            flex: 1;
            display: flex;
            flex-direction: column;
            border-right: 1px solid #ddd;
            background: white;
            min-width: 0;        /* ADDED - Allows flex shrinking */
            overflow: hidden; 
        }
        
        .json-panel:last-of-type {
            border-right: none;
        }
        
        .json-panel-header {
            background: #7b9a62;
            color: white;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            min-height: 45px;
            flex-shrink: 0;
        }
        
        .json-panel-title {
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .json-panel-title i {
            cursor: pointer;
            opacity: 0.8;
        }
        
        .json-panel-title i:hover {
            opacity: 1;
        }
        
        .json-view-tabs {
            display: flex;
            background: #f8f9fa;
            border-bottom: 1px solid #ddd;
            flex-shrink: 0;
        }
        
        .json-view-tab {
            padding: 10px 20px;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 13px;
            color: #666;
            border-bottom: 3px solid transparent;
            transition: all 0.3s;
        }
        
        .json-view-tab:hover {
            background: #e9ecef;
            color: #333;
        }
        
        .json-view-tab.active {
            color: #7b9a62;
            border-bottom-color: #7b9a62;
            font-weight: 600;
        }
        
        .json-toolbar {
            background: #f8f9fa;
            padding: 8px 12px;
            border-bottom: 1px solid #ddd;
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            flex-shrink: 0; 
        }
        
        .json-toolbar button {
            background: white;
            border: 1px solid #ddd;
            padding: 6px 12px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 13px;
            color: #555;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .json-toolbar button:hover {
            background: #7b9a62;
            color: white;
            border-color: #7b9a62;
        }
        
        .json-toolbar button i {
            font-size: 12px;
        }
        
        .json-editor-area {
            flex: 1;
            overflow: hidden;
            position: relative;
            min-height: 0; 
        }
        
        .CodeMirror-scroll {
            overflow-x: auto !important;
            overflow-y: auto !important;
        }
        
        .CodeMirror-lines {
            padding: 4px 0;
        }
        
        .CodeMirror pre {
            padding: 0 4px;
        }
        
        .CodeMirror-line {
            word-wrap: break-word !important;
            word-break: break-all !important;
        }
        
        .CodeMirror {
            height: 100% !important;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace !important;
            font-size: 13px !important;
            line-height: 1.6 !important;
        }
        
        .CodeMirror-gutters {
            background: #f5f5f5 !important;
            border-right: 1px solid #ddd !important;
        }
        
        .CodeMirror-linenumber {
            color: #999 !important;
            padding: 0 8px !important;
        }
        
        .json-tree-container {
            padding: 15px;
            overflow: auto;
            height: 100%;
            font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
            font-size: 13px;
            background: #fafafa;
            word-wrap: break-word;     /* ADDED */
        }
        
        .json-tree-node {
            margin-left: 20px;
            line-height: 1.8;
            word-wrap: break-word;     /* ADDED */
            overflow-wrap: break-word; /* ADDED */
        }
        
        .json-tree-key {
            color: #7b9a62;
            font-weight: 600;
        }
        
        .json-tree-string {
            color: #0086b3;
            word-break: break-all;     /* ADDED */
        }
        
        .json-tree-number {
            color: #0086b3;
        }
        
        .json-tree-boolean {
            color: #0086b3;
            font-weight: 600;
        }
        
        .json-tree-null {
            color: #999;
            font-style: italic;
        }
        
        .json-tree-toggle {
            cursor: pointer;
            user-select: none;
            color: #666;
            margin-right: 5px;
        }
        
        .json-tree-collapsed {
            display: none;
        }
        
        .json-table-container {
            padding: 15px;
            overflow: auto;
            height: 100%;
            background: #fafafa;
        }
        
        .json-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            font-size: 13px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            table-layout: auto;        /* ADDED */
        }
        
        .json-table th {
            background: #7b9a62;
            color: white;
            padding: 10px;
            text-align: left;
            font-weight: 600;
            border: 1px solid #6a8555;
            white-space: nowrap;       /* ADDED */
        }
        
        .json-table td {
            padding: 8px 10px;
            border: 1px solid #ddd;
            word-wrap: break-word;     /* ADDED */
            word-break: break-all;     /* ADDED */
            max-width: 400px;          /* ADDED */
        }
        
        .json-table tr:nth-child(even) {
            background: #f9f9f9;
        }
        
        .json-table tr:hover {
            background: #f0f8f0;
        }
        
       .json-middle-panel {
            width: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: #f8f9fa;
            padding: 20px 10px;
            gap: 15px;
            border-right: 1px solid #ddd;
            position: relative;
            flex-shrink: 0;            /* ADDED */
        }
        
        .json-middle-expand-icon {
            position: absolute;
            top: 10px;
            right: 10px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 4px;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 14px;
            color: #666;
            transition: all 0.3s;
        }
        
        .json-middle-expand-icon:hover {
            background: #7b9a62;
            color: white;
            border-color: #7b9a62;
        }
        
        .json-middle-label {
            font-size: 12px;
            color: #666;
            font-weight: 600;
            text-transform: uppercase;
        }
        
        .json-middle-btn {
            width: 50px;
            height: 45px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            color: #666;
            transition: all 0.3s;
        }
        
        .json-middle-btn:hover {
            background: #7b9a62;
            color: white;
            border-color: #7b9a62;
            transform: scale(1.05);
        }
        
        .json-error-bar {
            background: #fee;
            color: #c00;
            padding: 10px 15px;
            border-top: 1px solid #fcc;
            font-size: 12px;
            display: none;
            flex-shrink: 0;
        }
        
        .json-error-bar.show {
            display: block;
        }
        
        .json-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100%;
            color: #999;
            text-align: center;
            padding: 40px;
        }
        
        .json-empty-state h4 {
            color: #666;
            margin-bottom: 15px;
            font-size: 18px;
        }
        
        .json-empty-state p {
            margin-bottom: 20px;
            font-size: 14px;
        }
        
        .json-empty-state .btn {
            margin: 5px;
            background: #7b9a62;
            color: white;
            border: none;
            padding: 8px 20px;
            border-radius: 4px;
            cursor: pointer;
        }
        
        .json-empty-state .btn:hover {
            background: #6a8555;
        }
        
        .json-format-prompt {
            position: absolute;
            bottom: 20px;
            left: 20px;
            right: 20px;
            background: #7b9a62;
            color: white;
            padding: 15px 20px;
            border-radius: 6px;
            display: none;
            align-items: center;
            justify-content: space-between;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            z-index: 100;
        }
        
        .json-format-prompt.show {
            display: flex;
        }
        
        .json-format-prompt button {
            background: white;
            color: #7b9a62;
            border: none;
            padding: 8px 20px;
            margin-left: 10px;
            border-radius: 4px;
            cursor: pointer;
            font-weight: 600;
        }
        
        .json-format-prompt button.btn-dismiss {
            background: transparent;
            color: white;
            border: 1px solid white;
        }
        
        @media (max-width: 992px) {
            .json-main-container {
                flex-direction: column;
                height: auto;
                min-height: 600px;     /* ADDED */
            }
            
            .json-panel {
                min-height: 400px;
                border-right: none;
                border-bottom: 2px solid #ddd;
            }
            
            .json-middle-panel {
                width: 100%;
                flex-direction: row;
                padding: 15px;
                border-right: none;
                border-bottom: 1px solid #ddd;
            }
        }

        .cm-s-default .cm-string { color: #0086b3 !important; }
        .cm-s-default .cm-number { color: #0086b3 !important; }
        .cm-s-default .cm-atom { color: #0086b3 !important; }
        .cm-s-default .cm-property { color: #7b9a62 !important; }
        .cm-s-default .cm-keyword { color: #0086b3 !important; }
        
        /* About, How to Use, FAQ Section Styles */
        .json-info-section {
            max-width: 1400px;
            margin: 40px auto;
            padding: 0 20px;
        }
        
        .json-info-card {
            background: white;
            border-radius: 8px;
            padding: 40px;
            margin-bottom: 30px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .json-info-card h2 {
            color: #7b9a62;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .json-info-card h3 {
            color: #7b9a62;
            font-size: 24px;
            font-weight: 600;
            margin-top: 30px;
            margin-bottom: 15px;
        }
        
        .json-info-card p {
            color: #555;
            font-size: 16px;
            line-height: 1.8;
            margin-bottom: 15px;
        }
        
        .json-info-card ul {
            color: #555;
            font-size: 16px;
            line-height: 1.8;
            margin-left: 20px;
            margin-bottom: 20px;
        }
        
        .json-info-card ul li {
            margin-bottom: 10px;
        }
        
        .json-feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .json-feature-item {
            background: #f8f9fa;
            padding: 25px;
            border-radius: 8px;
            border-left: 4px solid #7b9a62;
            transition: all 0.3s;
        }
        
        .json-feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(123, 154, 98, 0.2);
        }
        
        .json-feature-item h4 {
            color: #7b9a62;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .json-feature-item p {
            color: #666;
            font-size: 14px;
            margin: 0;
        }
        
        .json-step-container {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #7b9a62;
        }
        
        .json-step-container h4 {
            color: #7b9a62;
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 10px;
        }
        
        .json-step-container p {
            margin: 0;
        }
        
        .json-faq-item {
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            margin-bottom: 15px;
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .json-faq-item:hover {
            border-color: #7b9a62;
            box-shadow: 0 2px 8px rgba(123, 154, 98, 0.1);
        }
        
        .json-faq-question {
            background: #f8f9fa;
            padding: 20px;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 600;
            color: #333;
            font-size: 16px;
            transition: all 0.3s;
        }
        
        .json-faq-question:hover {
            background: #7b9a62;
            color: white;
        }
        
        .json-faq-question.active {
            background: #7b9a62;
            color: white;
        }
        
        .json-faq-icon {
            font-size: 14px;
            transition: transform 0.3s;
        }
        
        .json-faq-question.active .json-faq-icon {
            transform: rotate(180deg);
        }
        
        .json-faq-answer {
            padding: 0 20px;
            max-height: 0;
            overflow: hidden;
            transition: all 0.3s;
        }
        
        .json-faq-answer.active {
            padding: 20px;
            max-height: 500px;
        }
        
        .json-faq-answer p {
            margin: 0;
        }
        
        .json-highlight-box {
            background: #f0f8f0;
            border-left: 4px solid #7b9a62;
            padding: 20px;
            border-radius: 4px;
            margin: 20px 0;
        }
        
        .json-highlight-box p {
            margin: 0;
            color: #555;
        }
        
        .json-highlight-box strong {
            color: #7b9a62;
        }
        
        @media (max-width: 768px) {
            .json-info-card {
                padding: 25px;
            }
            
            .json-info-card h2 {
                font-size: 24px;
            }
            
            .json-feature-grid {
                grid-template-columns: 1fr;
            }
        }