@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap"); :root { --bg-primary: #0a0e1a; --bg-secondary: #111827; --bg-tertiary: #1a2236; --bg-card: #151d2e; --bg-card-hover: #1c2740; --bg-input: #0d1220; --bg-elevated: #1e293b; --accent: #6366f1; --accent-hover: #4f46e5; --accent-glow: rgba(99, 102, 241, 0.25); --accent-subtle: rgba(99, 102, 241, 0.08); --accent2: #8b5cf6; --accent2-glow: rgba(139, 92, 246, 0.2); --success: #10b981; --success-glow: rgba(16, 185, 129, 0.2); --warning: #f59e0b; --warning-glow: rgba(245, 158, 11, 0.15); --danger: #ef4444; --danger-glow: rgba(239, 68, 68, 0.15); --info: #06b6d4; --info-glow: rgba(6, 182, 212, 0.15); --pink: #ec4899; --orange: #fb923c; --text-primary: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b; --text-dim: #475569; --border: #1e293b; --border-light: #334155; --border-focus: #6366f1; --glass: rgba(21, 29, 46, 0.85); --glass-border: rgba(148, 163, 184, 0.08); --radius: 12px; --radius-sm: 8px; --radius-xs: 6px; --radius-pill: 100px; --shadow: 0 8px 32px rgba(0, 0, 0, 0.4); --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25); --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15); --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); --transition-fast: all 0.15s ease; } *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: "Inter", -apple-system, sans-serif; background: var(--bg-primary); color: var(--text-primary); height: 100vh; overflow: hidden; -webkit-font-smoothing: antialiased; } /* Scrollbar */ ::-webkit-scrollbar { width: 5px; height: 5px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--text-dim); } ::selection { background: var(--accent); color: white; } /* === LAYOUT === */ .app-layout { display: grid; grid-template-columns: 272px 1fr; grid-template-rows: 1fr; height: 100vh; } /* === SIDEBAR === */ .sidebar { background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; } .sidebar-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; } .sidebar-logo { width: 30px; height: 30px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: white; flex-shrink: 0; box-shadow: 0 2px 8px var(--accent-glow); } .sidebar-header h1 { font-size: 13px; font-weight: 700; letter-spacing: -0.3px; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; } .sidebar-actions { padding: 8px 10px; display: flex; gap: 6px; border-bottom: 1px solid var(--border); } .sidebar-search { padding: 8px 10px; border-bottom: 1px solid var(--border); position: relative; } .sidebar-search i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 11px; pointer-events: none; } .sidebar-search input { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 7px 10px 7px 30px; color: var(--text-primary); font-size: 12px; outline: none; transition: var(--transition); font-family: inherit; } .sidebar-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .sidebar-search input::placeholder { color: var(--text-dim); } /* Tree */ .tree-container { flex: 1; overflow-y: auto; padding: 6px; } .tree-node { display: flex; align-items: center; padding: 5px 10px; border-radius: var(--radius-xs); cursor: pointer; font-size: 12px; color: var(--text-secondary); transition: var(--transition-fast); gap: 7px; user-select: none; } .tree-node:hover { background: var(--bg-card-hover); color: var(--text-primary); } .tree-node.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; box-shadow: 0 2px 8px var(--accent-glow); } .tree-node .node-icon { font-size: 11px; width: 14px; text-align: center; flex-shrink: 0; } .tree-node .node-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; } .tree-node .node-badge { font-size: 9px; background: rgba(255,255,255,0.07); padding: 1px 6px; border-radius: var(--radius-pill); color: var(--text-dim); font-weight: 600; } .tree-node.active .node-badge { background: rgba(255,255,255,0.2); color: rgba(255,255,255,0.9); } .tree-children { margin-left: 14px; border-left: 1px solid var(--border); padding-left: 2px; } .tree-children.collapsed { display: none; } .tree-toggle { font-size: 9px; width: 14px; text-align: center; transition: transform 0.2s; cursor: pointer; color: var(--text-dim); } .tree-toggle.open { transform: rotate(90deg); } /* === MAIN CONTENT === */ .main-content { display: flex; flex-direction: column; overflow: hidden; background: var(--bg-primary); } /* Top Bar */ .top-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px; border-bottom: 1px solid var(--border); background: var(--bg-secondary); min-height: 46px; gap: 12px; } .breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); font-weight: 500; } .breadcrumb span { cursor: pointer; transition: var(--transition-fast); } .breadcrumb span:hover { color: var(--accent); } .breadcrumb .sep { color: var(--text-dim); font-size: 10px; } .top-actions { display: flex; gap: 5px; align-items: center; } /* Content Area */ .content-area { flex: 1; overflow-y: auto; padding: 20px; } .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; color: var(--text-dim); gap: 14px; } .empty-state i { font-size: 52px; opacity: 0.15; } .empty-state p { font-size: 14px; color: var(--text-muted); } /* === BUTTONS === */ .btn { padding: 6px 14px; border-radius: var(--radius-xs); font-size: 12px; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; font-family: inherit; letter-spacing: 0.01em; white-space: nowrap; } .btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; box-shadow: 0 2px 8px var(--accent-glow); } .btn-primary:hover { filter: brightness(1.15); box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-1px); } .btn-success { background: var(--success); color: white; } .btn-success:hover { filter: brightness(1.15); box-shadow: 0 2px 12px var(--success-glow); } .btn-danger { background: var(--danger); color: white; } .btn-danger:hover { filter: brightness(1.1); } .btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-light); } .btn-ghost:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--text-dim); } .btn-sm { padding: 4px 10px; font-size: 11px; } .btn-xs { padding: 3px 8px; font-size: 10px; } .btn-icon { width: 30px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-xs); background: transparent; border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: var(--transition-fast); } .btn-icon:hover { background: var(--bg-card-hover); color: var(--text-primary); border-color: var(--border-light); } /* === CARDS === */ .card { background: var(--glass); backdrop-filter: blur(12px); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow-sm); animation: fadeIn 0.2s ease; } .card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; } .card-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; } .card-title i { color: var(--accent); } /* === DATA TABLE === */ .data-table-wrap { overflow: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); } .data-table { width: 100%; border-collapse: collapse; font-size: 12px; } .data-table th { background: var(--bg-tertiary); padding: 8px 12px; text-align: left; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-size: 10px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1; } .data-table td { padding: 6px 12px; border-bottom: 1px solid var(--border); color: var(--text-secondary); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; } .data-table tr:hover td { background: var(--bg-card-hover); color: var(--text-primary); } .data-table .row-actions { display: flex; gap: 4px; opacity: 0; transition: var(--transition-fast); } .data-table tr:hover .row-actions { opacity: 1; } .cell-editable { cursor: pointer; border-radius: 3px; } .cell-editable:hover { background: var(--accent-subtle); outline: 1px solid var(--accent); } .row-idx { color: var(--text-dim); font-size: 10px; width: 36px; text-align: center; font-family: "JetBrains Mono", monospace; } /* === FIELD ROW (Object Editor) === */ .field-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); } .field-row:last-child { border-bottom: none; } .field-key { font-weight: 600; font-size: 12px; color: var(--accent); min-width: 120px; cursor: pointer; font-family: "JetBrains Mono", monospace; } .field-value { flex: 1; } .field-type-badge { font-size: 9px; padding: 2px 8px; border-radius: var(--radius-pill); font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; } .type-string { background: rgba(16, 185, 129, 0.1); color: var(--success); } .type-number { background: rgba(99, 102, 241, 0.1); color: var(--accent); } .type-boolean { background: var(--warning-glow); color: var(--warning); } .type-null { background: rgba(100, 116, 139, 0.1); color: var(--text-dim); } .type-object { background: var(--accent2-glow); color: var(--accent2); } .type-array { background: var(--info-glow); color: var(--info); } .type-url { background: rgba(236, 72, 153, 0.1); color: var(--pink); } .type-coordinate { background: rgba(251, 146, 60, 0.1); color: var(--orange); } .type-color { background: rgba(139, 92, 246, 0.1); color: var(--accent2); } /* === INPUTS === */ .input { width: 100%; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-xs); padding: 8px 12px; color: var(--text-primary); font-size: 12px; font-family: inherit; outline: none; transition: var(--transition); } .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); } .input::placeholder { color: var(--text-dim); } .input-sm { padding: 5px 8px; font-size: 11px; } select.input { cursor: pointer; appearance: auto; } textarea.input { resize: vertical; min-height: 60px; font-family: "JetBrains Mono", monospace; font-size: 12px; line-height: 1.5; } /* === TOGGLE SWITCH === */ .toggle-switch { position: relative; display: inline-block; width: 38px; height: 20px; flex-shrink: 0; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; inset: 0; background: var(--border-light); border-radius: var(--radius-pill); transition: var(--transition); } .toggle-slider::before { content: ""; position: absolute; width: 14px; height: 14px; left: 3px; bottom: 3px; background: var(--text-muted); border-radius: 50%; transition: var(--transition); } .toggle-switch input:checked + .toggle-slider { background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 0 8px var(--accent-glow); } .toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); background: white; } /* === CONTEXT MENU === */ .ctx-menu { position: fixed; background: var(--bg-elevated); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 4px; box-shadow: var(--shadow); z-index: 9999; min-width: 190px; animation: scaleIn 0.12s ease; } .ctx-item { display: flex; align-items: center; gap: 8px; padding: 7px 12px; font-size: 12px; color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-xs); transition: var(--transition-fast); font-weight: 500; } .ctx-item:hover { background: var(--accent); color: white; } .ctx-item i { width: 16px; text-align: center; font-size: 11px; } .ctx-sep { height: 1px; background: var(--border); margin: 3px 8px; } .ctx-item.danger { color: var(--danger); } .ctx-item.danger:hover { background: var(--danger); color: white; } /* === TOAST === */ .toast-container { position: fixed; top: 16px; right: 16px; z-index: 99999; display: flex; flex-direction: column; gap: 8px; } .toast { padding: 10px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; color: white; box-shadow: var(--shadow); animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: flex; align-items: center; gap: 8px; min-width: 240px; backdrop-filter: blur(8px); } .toast-success { background: linear-gradient(135deg, #059669, #10b981); } .toast-error { background: linear-gradient(135deg, #dc2626, #ef4444); } .toast-info { background: linear-gradient(135deg, #4f46e5, #6366f1); } /* === MODAL === */ .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); z-index: 9998; display: flex; align-items: center; justify-content: center; animation: fadeIn 0.15s ease; } .modal-box { background: var(--bg-secondary); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; width: 620px; max-width: 94vw; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow); animation: scaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1); } .modal-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; color: var(--text-primary); } .modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); } /* Wide modal for bulk edit */ .modal-box.modal-wide { width: 780px; max-width: 96vw; } /* === FIELD CONFIG CARD (per-field toggle in bulk edit) === */ .field-config { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; transition: var(--transition); } .field-config.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); background: var(--bg-card-hover); } .field-config-header { display: flex; align-items: center; gap: 10px; } .field-config-header .field-name { font-weight: 600; font-size: 12px; color: var(--accent); font-family: "JetBrains Mono", monospace; flex: 1; } .field-config-header .field-badge { font-size: 9px; font-weight: 600; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-subtle); color: var(--accent); } .field-config-body { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: none; } .field-config.active .field-config-body { display: block; } /* === APPEND PANEL === */ .append-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .append-panel .full-width { grid-column: 1/-1; } .preview-box { background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; max-height: 300px; overflow: auto; } .preview-box pre { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--info); white-space: pre-wrap; word-break: break-all; line-height: 1.6; } /* === CATEGORY TREE PICKER === */ .cat-tree { max-height: 280px; overflow-y: auto; } .cat-tree-item { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: var(--radius-xs); font-size: 12px; cursor: pointer; transition: var(--transition-fast); color: var(--text-secondary); font-weight: 500; } .cat-tree-item:hover { background: var(--bg-card-hover); color: var(--text-primary); } .cat-tree-item input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; } .cat-tree-item .cat-count { font-size: 10px; color: var(--text-dim); background: var(--bg-tertiary); padding: 1px 7px; border-radius: var(--radius-pill); font-family: "JetBrains Mono", monospace; font-weight: 600; } .cat-tree-children { margin-left: 20px; } /* === STATUS BAR === */ .status-bar { display: flex; align-items: center; justify-content: space-between; padding: 5px 16px; border-top: 1px solid var(--border); background: var(--bg-secondary); font-size: 10px; color: var(--text-dim); font-weight: 500; } .status-bar .status-left, .status-bar .status-right { display: flex; align-items: center; gap: 12px; } /* === TABS === */ .tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); padding: 0 16px; } .tab { padding: 8px 16px; font-size: 12px; font-weight: 600; color: var(--text-dim); cursor: pointer; border-bottom: 2px solid transparent; transition: var(--transition); } .tab:hover { color: var(--text-primary); } .tab.active { color: var(--accent); border-bottom-color: var(--accent); } /* === LABEL === */ .label { font-size: 11px; color: var(--text-muted); font-weight: 600; display: block; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; } .label-sm { font-size: 10px; margin-bottom: 3px; text-transform: none; letter-spacing: 0; } /* === SECTION TITLE IN PANELS === */ .section-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; } .section-title i { color: var(--accent); font-size: 10px; } /* === CHIP / TAG === */ .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); cursor: pointer; transition: var(--transition-fast); font-weight: 500; } .chip:hover { background: var(--accent-subtle); border-color: var(--accent); color: var(--accent); } /* === ANIMATIONS === */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } } @keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } } @keyframes fadeOut { to { opacity: 0; transform: translateX(60px); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .fade-in { animation: fadeIn 0.2s ease; } .slide-up { animation: slideUp 0.25s ease; } .d-none { display: none !important; } /* === HELPER === */ .text-accent { color: var(--accent); } .text-muted { color: var(--text-muted); } .text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-danger { color: var(--danger); } .text-info { color: var(--info); } .text-pink { color: var(--pink); } .text-orange { color: var(--orange); } .text-primary { color: var(--text-primary); } .gap-sm { gap: 6px; } .gap-md { gap: 10px; } .mt-sm { margin-top: 6px; } .mt-md { margin-top: 12px; } .mb-sm { margin-bottom: 6px; } .flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-wrap { flex-wrap: wrap; } .font-mono { font-family: "JetBrains Mono", monospace; } /* === SAVE BUTTON & DIRTY INDICATOR === */ .btn-save { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; border: 1px solid rgba(59, 130, 246, 0.3); font-weight: 600; } .btn-save:hover { background: linear-gradient(135deg, #2563eb, #1d4ed8); box-shadow: 0 0 12px rgba(59, 130, 246, 0.3); } .dirty-dot { color: var(--warning); font-size: 16px; margin-left: 6px; animation: pulse-dot 1.5s ease-in-out infinite; } @keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } } /* === MULTI-CAT GROUPS === */ .mc-cat-group, .ap-cat-group { padding-left: 0; } /* === TYPE BADGES EXTRA === */ .type-coordinate { background: rgba(251, 146, 60, 0.12); color: var(--orange); } .type-url { background: rgba(236, 72, 153, 0.12); color: var(--pink); } .type-unknown { background: rgba(100, 116, 139, 0.12); color: var(--text-muted); } /* === SCHEMA SUMMARY === */ #schemaSummary { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }