 .btn-remove{   padding: 3px 6px;
    font-size: 9px;
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    border: none;
    border-radius: 5px;
}
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: #f8f9fa!important;
            color: #333;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Header Styles */
        .main-header {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border-bottom: 2px solid #e9ecef;
            padding: 15px 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            width: 100%;
        }

        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo-section {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo-title {
            font-size: 24px;
            font-weight: 700;
            color: #2c3e50;
            margin: 0;
        }

        .logo-subtitle {
            font-size: 12px;
            color: #6c757d;
            margin-top: 2px;
        }

        .header-nav {
            display: flex;
            gap: 15px;
            align-items: center;
        }

        .nav-btn {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
        }

        .nav-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
        }

        /* Footer Styles */
        .main-footer {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            text-align: center;
            padding: 20px 0;
            width: 100%;
            margin-top: auto;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            width: 100%;
            padding: 20px 0;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .page-header {
            background: white;
            border-radius: 12px;
            padding: 25px 30px;
            margin-bottom: 25px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            border-left: 4px solid #ff6b35;
        }

        .page-header h1 {
            color: #2c3e50;
            font-size: 28px;
            font-weight: 600;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
#pasteJsonContent:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.3);
}

.modal-content {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
        .page-header p {
            color: #6c757d;
            font-size: 16px;
        }

        .toolbar {
            background: white;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
            justify-content: center;
        }

        .toolbar-left {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            align-items: center;
        }

        .toolbar-right {
            display: flex;
            gap: 10px;
            align-items: center;    flex-wrap: wrap;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            text-decoration: none;
        }

        .btn-primary {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
        }

        .btn-success {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
        }

        .btn-success:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
        }

        .btn-warning {
            background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
        }

        .btn-warning:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
        }

        .btn-danger {
            background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
        }

        .btn-danger:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
        }

        .btn-info {
            background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
        }

        .btn-info:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(23, 162, 184, 0.4);
        }

        .btn-outline {
            background: white;
            color: #6c757d;
            border: 2px solid #e9ecef;
        }

        .btn-outline:hover {
            background: #f8f9fa;
            border-color: #ff6b35;
            color: #ff6b35;
            transform: translateY(-1px);
        }

        .btn-small {
            padding: 8px 16px;
            font-size: 12px;
            border-radius: 6px;
        }

        .field-type-selector {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .field-type-selector label {
            font-weight: 600;
            color: #495057;
            white-space: nowrap;
        }

        .field-type-selector select {
            padding: 10px 15px;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            background: white;
            color: #495057;
            min-width: 140px;
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 25px;
        }

        .stat-item {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: all 0.3s ease;
        }

        .stat-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }

        .stat-number {
            font-size: 32px;
            font-weight: 700;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            display: block;
        }

        .stat-label {
            font-size: 14px;
            color: #6c757d;
            margin-top: 8px;
            font-weight: 500;
        }

        .main-editor {
            background: white;
            border-radius: 12px;
            padding: 30px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            margin-bottom: 25px;
        }

        .section {
            border: 2px solid #e9ecef;
            border-radius: 12px;
            margin-bottom: 20px;
            overflow: hidden;
            transition: all 0.3s ease;
            background: white;
        }

        .section:hover {
            border-color: #ff6b35;
            box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
        }

        .instance-section {
            border-left: 4px solid #ff6b35;
            box-shadow: 0 4px 20px rgba(255, 107, 53, 0.1);
        }

        .metadata-section {
            border-left: 4px solid #17a2b8;
            box-shadow: 0 4px 20px rgba(23, 162, 184, 0.1);
        }

        .global-metadata-section {
            border-left: 4px solid #6f42c1;
            box-shadow: 0 4px 20px rgba(111, 66, 193, 0.1);
        }

        .instance-section .section-header,
        .metadata-section .section-header {
            background: linear-gradient(135deg, #fff8f5, #fdf2ec);
        }

        .global-metadata-section .section-header {
            background: linear-gradient(135deg, #f8f6ff, #f0ebff);
        }

        .section-header {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 20px 25px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .section-header:hover {
            background: linear-gradient(135deg, #e9ecef, #dee2e6);
        }

        .section-title {
            font-size: 20px;
            font-weight: 600;
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-meta {
            font-size: 12px;
            color: #6c757d;
            margin-top: 4px;
        }

        .section-actions {
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .section-content {
            padding: 25px;
            display: none;
            transition: all 0.3s ease;
        }

        .section-content.active {
            display: block;
        }

        .section-content.collapsed {
            display: none;
        }

        .field {
            background: #f8f9fa;
            border: 1px solid #e9ecef;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 15px;
            transition: all 0.3s ease;
        }

        .field:hover {
            border-color: #ff6b35;
            background: #ffffff;
            box-shadow: 0 2px 10px rgba(255, 107, 53, 0.1);
        }

        .field-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #e9ecef;
        }

        .field-info h4 {
            color: #2c3e50;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .field-meta {
            color: #6c757d;
            font-size: 12px;
            line-height: 1.4;
        }

        .field-actions {
            display: flex;
            gap: 6px;
        }

        .field-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 20px;
            align-items: start;
        }

        .field-config {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
        }

        .field-config h5 {
            color: #495057;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e9ecef;
        }

        .field-config-item {
            margin-bottom: 8px;
            font-size: 12px;
            color: #6c757d;
        }

        .field-instances {
            background: white;
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
        }

        .field-instances h5 {
            color: #495057;
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .instance {
            border: 1px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 10px;
            background: #fdfdfe;
        }

        .instance-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }

        .instance-key {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #495057;
            font-size: 14px;
        }

        .form-control {
            width: 100%;
            border: 2px solid #e9ecef;
            border-radius: 8px;
            font-size: 14px;
            transition: all 0.3s ease;
            background: white;
        }

        .form-control:focus {
            outline: none;
            border-color: #ff6b35;
            box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
        }

        .textarea {
            min-height: 100px;
            resize: vertical;
        }
code {
    background: none!important;
}
        .list-container {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            background: white;
        }

        .list-item {
            display: flex;
            gap: 10px;
            margin-bottom: 10px;
            align-items: center;
        }

        .list-item input {
            flex: 1;
            padding: 8px 12px;
            border: 1px solid #dee2e6;
            border-radius: 6px;
            font-size: 13px;
        }

        .list-item .btn-remove {
            background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
            color: white;
            border: none;
            padding: 8px 12px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 11px;
        }

        .btn-add-item {
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 12px;
            margin-top: 8px;
        }

        .object-fields {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 15px;
            background: #f8f9fa;
        }

        .object-field {
            margin-bottom: 15px;
        }

        .object-field label {
            font-size: 12px;
            font-weight: 600;
            color: #6c757d;
            margin-bottom: 6px;
        }

        .object-field input,
        .object-field textarea {
            padding: 8px 12px;
            font-size: 12px;
        }

        .empty-state {
            text-align: center;
            color: #6c757d;
            padding: 80px 20px;
            border: 2px dashed #dee2e6;
            border-radius: 12px;
            margin: 20px 0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        }

        .empty-state i {
            font-size: 64px;
            margin-bottom: 25px;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .empty-state h3 {
            color: #495057;
            margin-bottom: 15px;
            font-weight: 600;
            font-size: 24px;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            box-shadow: 0 5px 25px rgba(0,0,0,0.2);
            transform: translateX(100%);
            transition: transform 0.3s ease;
            z-index: 1001;
            font-weight: 500;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.error {
            background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
        }

        .notification.warning {
            background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
            color: white;
        }

        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
        }

        .modal-content {
            background-color: white;
            margin: 3% auto;
            padding: 0;
            border-radius: 12px;
            width: 90%;
            max-width: 700px;
            max-height: 85vh;
            overflow: hidden;
            box-shadow: 0 10px 40px rgba(0,0,0,0.3);
        }

        .modal-header {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 25px 30px;
            border-bottom: 1px solid #e9ecef;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .modal-header h2 {
            color: #2c3e50;
            font-size: 22px;
            font-weight: 600;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .modal-body {
            padding: 30px;
            max-height: 60vh;
            overflow-y: auto;
        }

        .modal-footer {
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            padding: 20px 30px;
            border-top: 1px solid #e9ecef;
            display: flex;
            gap: 12px;
            justify-content: flex-end;
        }

        .close {
            color: #aaa;
            font-size: 32px;
            font-weight: bold;
            cursor: pointer;
            line-height: 1;
            transition: all 0.3s ease;
        }

        .close:hover {
            color: #ff6b35;
            transform: scale(1.1);
        }

        .nested-fields {
            border-left: 3px solid #ff6b35;
            padding-left: 15px;
            margin-left: 10px;
            margin-top: 15px;
        }

        .chevron {
            transition: transform 0.3s ease;
        }

        .chevron.rotated {
            transform: rotate(180deg);
        }

        .field-chevron {
            transition: transform 0.3s ease;
            color: #6c757d;
        }

        .field-chevron.rotated {
            transform: rotate(180deg);
        }

        .field-content-area {
            transition: all 0.3s ease;
            overflow: hidden;
        }

        .field-content-area.collapsed {
            display: none;
        }

        .field-order-btn {
            min-width: 30px;
            padding: 6px 8px !important;
            font-size: 11px;
        }

        .field-order-btn:disabled {
            opacity: 0.4;
            cursor: not-allowed;
            background: #f8f9fa !important;
            color: #6c757d !important;
            border-color: #e9ecef !important;
        }

        .field-order-btn:disabled:hover {
            transform: none !important;
            box-shadow: none !important;
        }

        .section-toggle-btn {
            min-width: 35px;
            padding: 8px 10px !important;
            font-size: 12px;
            background: white !important;
            color: #6c757d !important;
            border: 2px solid #e9ecef !important;
        }

        .section-toggle-btn:hover {
            background: #f8f9fa !important;
            border-color: #28a745 !important;
            color: #28a745 !important;
            transform: translateY(-1px) !important;
        }

        .section-toggle-btn.collapsed {
            background: #fff3cd !important;
            border-color: #ffc107 !important;
            color: #856404 !important;
        }

        .section-toggle-btn.collapsed:hover {
            background: #ffeaa7 !important;
            border-color: #f39c12 !important;
            color: #d68910 !important;
        }

        .section-toggle-btn.collapsed i {
            color: #856404 !important;
        }

        .field-header-row {
            border-bottom: 1px solid #e9ecef;
            padding-bottom: 10px;
        }

        .field-container {
            transition: all 0.3s ease;
        }

        .field-container:hover {
            border-color: #ff6b35 !important;
            box-shadow: 0 2px 10px rgba(255, 107, 53, 0.1);
        }

        /* Knowledge Base Styles */
        .knowledge-base {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            margin: 40px 0 0 0;
            padding: 40px 0;
            border-top: 2px solid #e9ecef;
        }

        .knowledge-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .knowledge-header h2 {
            font-size: 32px;
            font-weight: 700;
            color: #2c3e50;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .knowledge-header p {
            font-size: 18px;
            color: #6c757d;
        }

        .knowledge-tabs {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .tab-nav {
            display: flex;
            justify-content: center;
            margin-bottom: 30px;
            background: white;
            border-radius: 12px;
            padding: 8px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            overflow-x: auto;
        }

        .tab-btn {
            padding: 15px 25px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 8px;
            font-weight: 600;
            font-size: 14px;
            color: #6c757d;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            min-width: 140px;
            justify-content: center;
        }

        .tab-btn:hover {
            background: #f8f9fa;
            color: #2c3e50;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
        }

        .tab-content {
            background: white;
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 2px 15px rgba(0,0,0,0.08);
            min-height: 500px;
        }

        .tab-panel {
            display: none;
        }

        .tab-panel.active {
            display: block;
        }

        .knowledge-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .knowledge-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
            border: 1px solid #e9ecef;
            border-radius: 12px;
            padding: 30px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .knowledge-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border-color: #ff6b35;
        }

        .card-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .card-icon i {
            font-size: 24px;
            color: white;
        }

        .knowledge-card h3 {
            font-size: 20px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 15px;
        }

        .knowledge-card p {
            color: #6c757d;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .knowledge-card ul {
            list-style: none;
            padding: 0;
        }

        .knowledge-card ul li {
            color: #495057;
            margin-bottom: 8px;
            display: flex;
            align-items: flex-start;
            gap: 10px;
        }

        .knowledge-card ul li i {
            color: #28a745;
            margin-top: 2px;
        }

        .step-list {
            margin-top: 20px;
        }

        .step-item {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            margin-bottom: 20px;
            padding: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            border-left: 4px solid #ff6b35;
        }

        .step-number {
            background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 14px;
            flex-shrink: 0;
        }

        .step-item strong {
            color: #2c3e50;
            display: block;
            margin-bottom: 5px;
        }

        .step-item p {
            margin: 0;
            font-size: 14px;
        }

        .data-types {
            margin-top: 15px;
        }

        .type-item {
            background: #f8f9fa;
            padding: 10px 15px;
            border-radius: 6px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .type-item strong {
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .type-item code {
            background: #e9ecef;
            padding: 4px 8px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            color: #495057;
        }

        .code-example {
            background: #2c3e50;
            color: #ecf0f1;
            padding: 20px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-size: 13px;
            line-height: 1.5;
            overflow-x: auto;
            margin: 15px 0;
        }

        .hierarchy {
            margin-top: 20px;
        }

        .level-item {
            padding: 15px 20px;
            margin-bottom: 10px;
            border-radius: 8px;
            border-left: 4px solid;
        }

        .level-1 {
            background: #e8f5e8;
            border-left-color: #28a745;
        }

        .level-2 {
            background: #fff3cd;
            border-left-color: #ffc107;
            margin-left: 20px;
        }

        .level-3 {
            background: #cce5ff;
            border-left-color: #007bff;
            margin-left: 40px;
        }

        .level-4 {
            background: #f8d7da;
            border-left-color: #dc3545;
            margin-left: 60px;
        }

        .level-item strong {
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 5px;
        }

        .level-item p {
            margin: 0;
            font-size: 14px;
            color: #6c757d;
        }

        .metadata-types {
            margin-top: 20px;
        }

        .meta-type {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 15px;
            border-left: 4px solid #17a2b8;
        }

        .meta-type strong {
            color: #2c3e50;
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .meta-type p {
            margin: 0;
            font-size: 14px;
        }

        .tips-list {
            margin-top: 15px;
        }

        .tips-list li {
            background: #f8f9fa;
            padding: 12px 15px;
            border-radius: 6px;
            margin-bottom: 10px;
            border-left: 3px solid #28a745;
        }

        .tips-list strong {
            color: #2c3e50;
        }

        .shortcuts {
            margin-top: 15px;
        }

        .shortcut-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 15px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .key {
            background: #2c3e50;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .warnings {
            margin-top: 15px;
        }

        .warning-item {
            display: flex;
            gap: 15px;
            padding: 15px;
            background: #fff3cd;
            border-radius: 8px;
            margin-bottom: 15px;
            border-left: 4px solid #ffc107;
        }

        .warning-item i {
            color: #856404;
            font-size: 18px;
            margin-top: 2px;
        }

        .warning-item strong {
            color: #856404;
            display: block;
            margin-bottom: 5px;
        }

        .warning-item p {
            margin: 0;
            color: #856404;
            font-size: 14px;
        }

        .contact-info {
            margin-top: 15px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 15px;
            background: #f8f9fa;
            border-radius: 6px;
            margin-bottom: 8px;
        }

        .contact-item i {
            color: #ff6b35;
            width: 20px;
        }

        .contact-item a {
            color: #ff6b35;
            text-decoration: none;
            font-weight: 500;
        }

        .contact-item a:hover {
            text-decoration: underline;
        }

        /* Mobile Responsiveness */
        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .header-nav {
                width: 100%;
                justify-content: center;
            }

            .container {
                padding: 0 15px;
            }

            .main-content {
                padding: 15px 0;
            }
            
            .toolbar {
                flex-direction: column;
                align-items: stretch;
            }
            
            .toolbar-left,
            .toolbar-right {
                justify-content: center;
            }
            
            .field-content {
                grid-template-columns: 1fr;
            }
            
            .stats {
                grid-template-columns: 1fr;
            }

            .page-header h1 {
                font-size: 24px;
            }

            .btn {
                padding: 10px 20px;
                font-size: 13px;
            }

            .modal-content {
                width: 95%;
                margin: 5% auto;
            }

            /* Knowledge Base Mobile */
            .knowledge-base {
                padding: 30px 0;
            }

            .knowledge-header h2 {
                font-size: 24px;
            }

            .knowledge-header p {
                font-size: 16px;
            }

            .knowledge-tabs {
                padding: 0 15px;
            }

            .tab-nav {
                flex-direction: column;
                gap: 5px;
            }

            .tab-btn {
                min-width: auto;
                padding: 12px 20px;
            }

            .tab-content {
                padding: 25px 20px;
            }

            .knowledge-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .knowledge-card {
                padding: 20px;
            }

            .step-item {
                flex-direction: column;
                text-align: center;
            }

            .shortcut-item {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }

            .type-item {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .page-header {
                padding: 20px;
            }

            .main-editor {
                padding: 20px;
            }

            .section-header {
                padding: 15px 20px;
            }

            .section-content {
                padding: 20px;
            }

            .field {
                padding: 15px;
            }

            /* Knowledge Base Small Mobile */
            .knowledge-header h2 {
                font-size: 20px;
            }

            .knowledge-header p {
                font-size: 14px;
            }

            .tab-content {
                padding: 20px 15px;
            }

            .knowledge-card {
                padding: 15px;
            }

            .card-icon {
                width: 50px;
                height: 50px;
            }

            .card-icon i {
                font-size: 20px;
            }

            .knowledge-card h3 {
                font-size: 18px;
            }

            .code-example {
                font-size: 11px;
                padding: 15px;
            }

            .level-item {
                margin-left: 0 !important;
                padding: 12px 15px;
            }
        }
