:root{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}[data-theme=dark]{color-scheme:dark;color:#ffffffde;background-color:#242424}[data-theme=light]{color-scheme:light;color:#000000de;background-color:#fff}*{box-sizing:border-box;margin:0;padding:0}body{margin:0;min-width:320px;min-height:100vh}#root{width:100%;height:100vh}.app{width:100%;height:100%;display:flex;flex-direction:column}.app-header{padding:1rem;background-color:#1a1a1a;border-bottom:1px solid #333;display:flex;justify-content:space-between;align-items:center}[data-theme=light] .app-header{background-color:#f5f5f5;border-bottom:1px solid #d0d0d0}.app-header h1{font-size:1.5rem;margin:0}.panels-container{flex:1;min-height:0;overflow:hidden}.resize-handle{background-color:#333;transition:background-color .2s}.resize-handle:hover{background-color:#646cff}.resize-handle-horizontal{width:4px;cursor:col-resize}.resize-handle-vertical{height:4px;cursor:row-resize}[data-theme=light] .resize-handle{background-color:#d0d0d0}.editor-panel{height:100%;min-height:0;overflow:hidden;background-color:#1e1e1e;display:flex;flex-direction:column}[data-theme=light] .editor-panel{background-color:#fafafa}.editor-header{padding:1rem;background-color:#1a1a1a;border-bottom:1px solid #333;display:flex;justify-content:space-between;align-items:center}[data-theme=light] .editor-header{background-color:#f0f0f0;border-bottom:1px solid #d0d0d0}.editor-header h2{font-size:1.2rem;margin:0}.editor-info{display:flex;align-items:center;gap:.5rem}.data-structure-select{padding:.375rem .75rem;background-color:#333;color:#fff;border:1px solid #555;border-radius:4px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;height:32px;box-sizing:border-box}.data-structure-select:hover{background-color:#444;border-color:#646cff}.data-structure-select:focus{outline:none;border-color:#646cff;box-shadow:0 0 0 2px #646cff4d}.data-structure-select option{background-color:#333;color:#fff}[data-theme=light] .data-structure-select{background-color:#fff;color:#1a1a1a;border:1px solid #d0d0d0}[data-theme=light] .data-structure-select:hover{background-color:#f5f5f5;border-color:#646cff}[data-theme=light] .data-structure-select option{background-color:#fff;color:#1a1a1a}.difficulty-badge{display:inline-flex;align-items:center;justify-content:center;padding:.375rem .75rem;color:#fff;border-radius:4px;font-size:.875rem;font-weight:500;line-height:1;text-transform:capitalize;height:32px;box-sizing:border-box}.difficulty-easy{background-color:#10b981}.difficulty-medium{background-color:#f59e0b}.difficulty-hard{background-color:#ef4444}.reference-mode-badge{display:inline-flex;align-items:center;padding:.375rem .75rem;background-color:#8b5cf6;color:#fff;border-radius:4px;font-size:.875rem;font-weight:500;border:1px solid #a78bfa;height:32px;box-sizing:border-box}.show-solution-button{display:inline-flex;align-items:center;padding:.375rem .75rem;background-color:#2a2a2a;color:#d97706;border:1px solid #d97706;border-radius:4px;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;height:32px;box-sizing:border-box}.show-solution-button:hover:not(:disabled){background-color:#d97706;color:#fff}.show-solution-button:disabled{opacity:.5;cursor:not-allowed}[data-theme=light] .show-solution-button{background-color:#fff;color:#d97706;border:1px solid #d97706}[data-theme=light] .show-solution-button:hover:not(:disabled){background-color:#d97706;color:#fff}.solution-dropdown{position:relative;display:inline-block}.show-solution-button .dropdown-arrow{margin-left:.5rem;font-size:.625rem}.solution-dropdown-menu{position:absolute;top:100%;left:0;margin-top:4px;background-color:#2a2a2a;border:1px solid #d97706;border-radius:4px;overflow:hidden;z-index:100;min-width:100%;box-shadow:0 4px 12px #0000004d}[data-theme=light] .solution-dropdown-menu{background-color:#fff;box-shadow:0 4px 12px #00000026}.solution-dropdown-item{display:block;width:100%;padding:.5rem .75rem;background:none;border:none;color:#d97706;font-size:.875rem;text-align:left;cursor:pointer;transition:background-color .15s}.solution-dropdown-item:hover{background-color:#d97706;color:#fff}.solution-dropdown-item:not(:last-child){border-bottom:1px solid rgba(217,119,6,.3)}.run-button-container{padding:.75rem 1rem;background-color:#1a1a1a;border-bottom:1px solid #333}[data-theme=light] .run-button-container{background-color:#f0f0f0;border-bottom:1px solid #d0d0d0}.editor-content{flex:1;overflow:hidden;position:relative;display:flex;flex-direction:column}.codemirror-wrapper{flex:1;overflow:hidden}.codemirror-wrapper .cm-editor{height:100%}.codemirror-wrapper .cm-scroller{overflow:auto}.visualization-panel{background-color:#242424;display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;overflow:hidden}[data-theme=light] .visualization-panel{background-color:#fff}.visualizer-container{position:relative;min-height:0;min-width:0;overflow:hidden;background-color:#1e1e1e;display:flex;flex-direction:column}[data-theme=light] .visualizer-container{background-color:#fafafa}.visualizer-inner{flex:1;min-height:0;position:relative;margin:1rem;overflow:hidden;background-color:#1e1e1e;contain:strict}[data-theme=light] .visualizer-inner{background-color:#fafafa}.skeleton-badge{position:absolute;top:.5rem;left:50%;transform:translate(-50%);background-color:#646cffe6;color:#fff;font-size:.75rem;font-weight:600;padding:.25rem .625rem;border-radius:4px;z-index:10;pointer-events:none}@media(max-width:480px){.skeleton-badge{top:.25rem;font-size:.625rem;padding:.2rem .5rem}}.loading-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background-color:#1e1e1ef2;z-index:100}[data-theme=light] .loading-overlay{background-color:#fafafaf2}.loading-spinner{width:40px;height:40px;border:3px solid rgba(100,108,255,.2);border-top-color:#646cff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{margin-top:1rem;color:#ffffffb3;font-size:.875rem;font-weight:500}[data-theme=light] .loading-text{color:#000000b3}.playback-controls{display:flex;align-items:center;justify-content:center;gap:1rem;padding:.75rem 1rem;background-color:#1a1a1a;border-top:1px solid #333;flex-shrink:0}[data-theme=light] .playback-controls{background-color:#f0f0f0;border-top:1px solid #d0d0d0}.playback-button{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:.5rem .75rem;background-color:#333;color:#fff;border:1px solid #555;border-radius:6px;cursor:pointer;font-size:.875rem;font-weight:500;transition:all .2s;min-width:40px;height:36px}.playback-button svg{flex-shrink:0}.playback-button:hover:not(:disabled){background-color:#444;border-color:#666}.playback-button:disabled{opacity:.4;cursor:not-allowed}.playback-button.active{background-color:#646cff;border-color:#646cff}.playback-button-primary{background-color:#646cff;border-color:#646cff;padding:.5rem 1rem}.playback-button-primary:hover:not(:disabled){background-color:#7c84ff;border-color:#7c84ff}.playback-button-primary.active{background-color:#ff6b6b;border-color:#ff6b6b}[data-theme=light] .playback-button{background-color:#fff;color:#1a1a1a;border:1px solid #d0d0d0}[data-theme=light] .playback-button:hover:not(:disabled){background-color:#f5f5f5;border-color:#bbb}[data-theme=light] .playback-button.active,[data-theme=light] .playback-button-primary{background-color:#646cff;border-color:#646cff;color:#fff}[data-theme=light] .playback-button-primary:hover:not(:disabled){background-color:#7c84ff;border-color:#7c84ff}.playback-step-counter{padding:.5rem 1rem;background-color:#2a2a2a;border:1px solid #444;border-radius:6px;font-size:.875rem;font-family:monospace;color:#ccc;min-width:120px;text-align:center}[data-theme=light] .playback-step-counter{background-color:#fff;border:1px solid #d0d0d0;color:#1a1a1a}.playback-nav-buttons{display:flex;gap:.5rem}@media(max-width:768px){.app-header h1{font-size:1.2rem}.editor-header h2{font-size:1rem}.editor-header,.app-header{padding:.75rem}.data-structure-select,.difficulty-badge{font-size:.8rem;padding:.25rem .5rem}.visualizer-inner{margin:.5rem}}@media(max-width:480px){.visualizer-inner{margin:.25rem}.resize-handle{display:none}.playback-controls{gap:.5rem;padding:.5rem}.playback-button{padding:.4rem .6rem;font-size:.8rem;height:32px;min-width:36px}.playback-step-counter{padding:.4rem .75rem;font-size:.8rem;min-width:100px}.playback-nav-buttons{gap:.4rem}}@media(max-width:480px){.app-header h1{font-size:1rem}.editor-info{flex-direction:column;gap:.25rem;align-items:flex-start}.playback-controls{flex-wrap:wrap}.playback-button-primary{order:-1}}.hint-modal-backdrop{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.hint-modal{position:relative;margin:0;padding:0;background:#1e1e1e;border:1px solid #333;border-radius:8px;width:90%;max-width:600px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 4px 24px #0006;animation:slideIn .2s ease}@keyframes slideIn{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}.hint-modal__header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem;border-bottom:1px solid #333}.hint-modal__title{margin:0;font-size:1.125rem;font-weight:600;color:#e0e0e0}.hint-modal__close-button{background:transparent;border:none;color:#888;cursor:pointer;padding:.25rem;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s ease}.hint-modal__close-button:hover{background:#2a2a2a;color:#d4d4d4}.hint-modal__content{padding:1.25rem;overflow-y:auto;flex:1}.hint-modal__empty{margin:0;color:#888;font-style:italic;text-align:center;padding:2rem}.hint-modal__hints{display:flex;flex-direction:column;gap:1rem}.hint-modal__hint-revealed{background:#252525;border-left:3px solid #4a9eff;border-radius:4px;padding:1rem}.hint-modal__hint-number{font-size:.75rem;font-weight:600;color:#4a9eff;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.hint-modal__hint-text{margin:0;font-size:.875rem;line-height:1.6;color:#d4d4d4}.hint-modal__reveal-button{width:100%;padding:1rem;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#d4d4d4;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.hint-modal__reveal-button:hover{background:#333;border-color:#4a9eff;color:#4a9eff}.hint-modal__reveal-button:active{transform:scale(.98)}.hint-modal__complete{padding:1rem;background:#1a3a1a;border-left:3px solid #4caf50;border-radius:4px;color:#81c784;font-size:.875rem;font-weight:500;text-align:center;margin-top:.5rem}.hint-button{position:absolute;top:1rem;right:1rem;background:#2a2a2a;border:1px solid #444;border-radius:6px;color:orange;cursor:pointer;padding:.5rem;display:flex;align-items:center;gap:.5rem;transition:all .2s ease;z-index:10;box-shadow:0 2px 8px #0003}.hint-button:hover:not(:disabled){background:#333;border-color:orange;transform:translateY(-1px);box-shadow:0 4px 12px #ffa50033}.hint-button:active:not(:disabled){transform:translateY(0);box-shadow:0 2px 8px #0003}.hint-button:disabled{opacity:.4;cursor:not-allowed;color:#666}.hint-button__badge{font-size:.75rem;font-weight:600;color:#d4d4d4;background:#1e1e1e;padding:.125rem .375rem;border-radius:12px;min-width:2rem;text-align:center}.preset-selector{position:relative}.preset-selector-trigger{display:flex;align-items:center;gap:.5rem;padding:.375rem .75rem;background:#2a2a2a;border:1px solid #444;border-radius:4px;color:#d4d4d4;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s;height:32px;box-sizing:border-box}.preset-selector-trigger svg{flex-shrink:0}.preset-selector-trigger:hover:not(:disabled){background:#333;border-color:#4a9eff}.preset-selector-trigger:disabled{opacity:.5;cursor:not-allowed}.preset-backdrop{position:fixed;inset:0;background:#00000080;backdrop-filter:blur(2px);z-index:999}.preset-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:90%;max-width:800px;max-height:80vh;background:#1e1e1e;border:1px solid #333;border-radius:.5rem;box-shadow:0 10px 40px #0000004d;z-index:1000;display:flex;flex-direction:column}.preset-modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #333}.preset-modal-header h3{margin:0;font-size:1.25rem;color:#d4d4d4}.preset-close{background:none;border:none;color:#888;cursor:pointer;padding:.5rem;width:2.5rem;height:2.5rem;display:flex;align-items:center;justify-content:center;border-radius:.375rem;transition:all .2s}.preset-close:hover{background:#333;color:#d4d4d4}.preset-close:focus-visible{outline:2px solid #4a9eff;outline-offset:2px}.preset-categories{display:flex;gap:.5rem;padding:1rem 1.5rem;overflow-x:auto;border-bottom:1px solid #333;flex-shrink:0}.preset-categories button{padding:.375rem .75rem;background:#2a2a2a;border:1px solid #444;border-radius:1rem;color:#888;font-size:.875rem;white-space:nowrap;cursor:pointer;transition:all .2s}.preset-categories button:hover{background:#333;color:#d4d4d4}.preset-categories button.active{background:#4a9eff;border-color:#4a9eff;color:#fff}.preset-list{overflow-y:auto;padding:1rem;display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem;align-content:start}.preset-card{background:#2a2a2a;border:1px solid #444;border-radius:.5rem;padding:1rem;cursor:pointer;transition:all .2s;display:flex;flex-direction:column;gap:.75rem;text-align:left;width:100%;font-family:inherit;font-size:inherit}.preset-card:hover{border-color:#4a9eff;background:#333;transform:translateY(-2px);box-shadow:0 4px 12px #0000001a}.preset-card:focus-visible{outline:2px solid #4a9eff;outline-offset:2px}.preset-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem}.preset-card-header h4{margin:0;font-size:1rem;color:#d4d4d4;font-weight:600}.preset-card-meta{display:flex;gap:.25rem;flex-shrink:0}.complexity-badge{padding:.125rem .375rem;border-radius:.25rem;font-size:.625rem;font-weight:600;font-family:SF Mono,Monaco,Cascadia Code,Roboto Mono,Consolas,Courier New,monospace;white-space:nowrap}.complexity-badge.time{background:#e0f2fe;color:#0369a1}.complexity-badge.space{background:#fce7f3;color:#be185d}[data-theme=dark] .complexity-badge.time{background:#164e63;color:#7dd3fc}[data-theme=dark] .complexity-badge.space{background:#4a044e;color:#f9a8d4}.preset-card-description{margin:0;font-size:.875rem;color:#888;line-height:1.4}.preset-tags{display:flex;flex-wrap:wrap;gap:.375rem}.preset-tag{padding:.125rem .5rem;background:#1e1e1e;border:1px solid #444;border-radius:.25rem;font-size:.75rem;color:#666}@media(max-width:768px){.preset-modal{width:95%;max-height:90vh}.preset-list{grid-template-columns:1fr}.preset-categories{padding:.75rem 1rem}.preset-modal-header{padding:1rem}}.preset-list::-webkit-scrollbar,.preset-categories::-webkit-scrollbar{width:8px;height:8px}.preset-list::-webkit-scrollbar-track,.preset-categories::-webkit-scrollbar-track{background:#1e1e1e}.preset-list::-webkit-scrollbar-thumb,.preset-categories::-webkit-scrollbar-thumb{background:#444;border-radius:4px}.preset-list::-webkit-scrollbar-thumb:hover,.preset-categories::-webkit-scrollbar-thumb:hover{background:#666}.preset-empty-state{grid-column:1 / -1;text-align:center;padding:3rem 1rem;color:#888}.preset-empty-state p{margin:0 0 1rem;font-size:.875rem}.preset-empty-state button{padding:.5rem 1rem;background:#4a9eff;border:none;border-radius:.375rem;color:#fff;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s}.preset-empty-state button:hover{opacity:.9;transform:translateY(-1px)}.preset-empty-state button:focus-visible{outline:2px solid #4a9eff;outline-offset:2px}[data-theme=light] .preset-selector-trigger{background:#f5f5f5;border-color:#d0d0d0;color:#1a1a1a}[data-theme=light] .preset-selector-trigger:hover:not(:disabled){background:#e8e8e8;border-color:#4a9eff}[data-theme=light] .preset-modal{background:#fff;border-color:#d0d0d0}[data-theme=light] .preset-modal-header{border-bottom-color:#e0e0e0}[data-theme=light] .preset-modal-header h3{color:#1a1a1a}[data-theme=light] .preset-close{color:#666}[data-theme=light] .preset-close:hover{background:#f0f0f0;color:#1a1a1a}[data-theme=light] .preset-categories{border-bottom-color:#e0e0e0}[data-theme=light] .preset-categories button{background:#f5f5f5;border-color:#d0d0d0;color:#666}[data-theme=light] .preset-categories button:hover{background:#e8e8e8;color:#1a1a1a}[data-theme=light] .preset-categories button.active{background:#4a9eff;border-color:#4a9eff;color:#fff}[data-theme=light] .preset-card{background:#f9f9f9;border-color:#d0d0d0}[data-theme=light] .preset-card:hover{border-color:#4a9eff;background:#f0f0f0}[data-theme=light] .preset-card-header h4{color:#1a1a1a}[data-theme=light] .preset-card-description{color:#666}[data-theme=light] .preset-tag{background:#fff;border-color:#d0d0d0;color:#888}[data-theme=light] .preset-list::-webkit-scrollbar-track,[data-theme=light] .preset-categories::-webkit-scrollbar-track{background:#fff}[data-theme=light] .preset-list::-webkit-scrollbar-thumb,[data-theme=light] .preset-categories::-webkit-scrollbar-thumb{background:#d0d0d0}[data-theme=light] .preset-list::-webkit-scrollbar-thumb:hover,[data-theme=light] .preset-categories::-webkit-scrollbar-thumb:hover{background:#b0b0b0}[data-theme=light] .preset-empty-state{color:#666}.run-tests-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1.25rem;background-color:#646cff;color:#fff;border:none;border-radius:6px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s;width:100%;justify-content:center}.run-tests-button:hover:not(:disabled){background-color:#535ac8;transform:translateY(-1px);box-shadow:0 4px 8px #646cff4d}.run-tests-button:active:not(:disabled){transform:translateY(0)}.run-tests-button:disabled{opacity:.5;cursor:not-allowed}.run-tests-button svg{flex-shrink:0}[data-theme=light] .run-tests-button{background-color:#646cff}[data-theme=light] .run-tests-button:hover:not(:disabled){background-color:#535ac8}.array-visualizer-container{display:flex;flex-direction:column;width:100%;height:100%;background:#1e1e1e;border-radius:8px;gap:48px}.array-visualizer{display:block;flex:1;width:100%;min-height:0}.bar-rect{fill:#4a9eff;stroke:#2e7dd3;stroke-width:2;transition:fill .3s ease,stroke .3s ease}.bar-rect.bar-active{fill:#50fa7b;stroke:#3dd15c}.bar-rect.bar-comparing{fill:#ffb86c;stroke:#ff9a4d}.bar-rect.bar-swapped{fill:#f55;stroke:#e03636}.bar-label{fill:#f8f8f2;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;pointer-events:none}.bar-index-bg{fill:#1e1e1ed9;stroke:#ffffff26;stroke-width:1}.bar-index{fill:#f8f8f2;font-weight:600;font-family:Courier New,monospace;pointer-events:none}.array-visualizer-container .step-indicator{color:#ffffffde;font-size:14px;font-weight:500;font-family:inherit;text-align:center;padding:.75rem 1rem;flex-shrink:0;background-color:#646cff1a;border-top:1px solid rgba(100,108,255,.2)}@media(max-width:480px){.array-visualizer-container .step-indicator{font-size:11px;padding:.5rem}}.linked-list-visualizer{width:100%;height:100%;display:flex;flex-direction:column;background-color:#1a1a1a}.linked-list-svg{flex:1;width:100%;height:100%}.step-indicator{padding:1rem;background-color:#242424;border-bottom:1px solid #333;font-size:.9rem;color:#aaa;text-align:center}.node-rect{fill:#646cff;stroke:#535bf2;stroke-width:2;transition:fill .3s ease,stroke .3s ease}.node-rect.active{fill:#4ade80;stroke:#22c55e}.node-rect.comparing{fill:#fb923c;stroke:#f97316}.node-rect.deleted{fill:#ef4444;stroke:#dc2626}.node-rect.found{fill:#a78bfa;stroke:#8b5cf6}.node-circle{fill:#646cff;stroke:#535bf2;stroke-width:2;transition:fill .3s ease,stroke .3s ease}.node-circle.active{fill:#4ade80;stroke:#22c55e}.node-circle.comparing{fill:#fb923c;stroke:#f97316}.node-circle.deleted{fill:#ef4444;stroke:#dc2626}.node-circle.found{fill:#a78bfa;stroke:#8b5cf6}.node-value{fill:#fff;font-size:14px;font-weight:500;pointer-events:none}.node-index{fill:#888;font-size:12px;font-weight:400;pointer-events:none}.arrow{stroke:#646cff;stroke-width:2}.null-arrow{stroke:#888;stroke-width:2;stroke-dasharray:4,4}.null-pointer{fill:#888;font-size:14px;font-weight:500;font-style:italic;pointer-events:none}.node-label{fill:#aaa;font-size:11px;font-weight:600;letter-spacing:.5px;pointer-events:none}.head-label{fill:#4ade80}.tail-label{fill:#fb923c}.stack-queue-visualizer{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#1e1e1e}.stack-queue-visualizer svg{width:100%;height:100%}.stack-queue-visualizer .element-rect{fill:#3b82f6;stroke:#60a5fa;stroke-width:2;transition:fill .3s ease,stroke .3s ease}.stack-queue-visualizer .element-rect.active{fill:#10b981;stroke:#34d399}.stack-queue-visualizer .element-value{fill:#fff;font-size:20px;font-weight:700;font-family:Courier New,monospace;pointer-events:none}.stack-queue-visualizer .element-index{fill:#9ca3af;font-size:14px;font-family:Courier New,monospace;pointer-events:none}.stack-queue-visualizer .pointer-label{fill:#fbbf24;font-size:16px;font-weight:700;font-family:Courier New,monospace;pointer-events:none}.stack-queue-visualizer .step-indicator{fill:#e5e7eb;font-size:18px;font-weight:500;font-family:system-ui,-apple-system,sans-serif;pointer-events:none}.binary-tree-visualizer{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#1a1a1a;position:relative}.binary-tree-visualizer svg{width:100%;height:100%;max-height:600px}.tree-group{transform-origin:center}.node{cursor:pointer;transition:fill .3s ease,stroke .3s ease}.node:hover{stroke:#646cff;stroke-width:3}.node.active{fill:#16a34a}.node.comparing{fill:#ea580c}.node.deleted{fill:#dc2626}.node.found{fill:#9333ea}.link{transition:stroke .3s ease}.node-label{pointer-events:none;user-select:none}.empty-message{fill:#888;font-size:18px;font-weight:500}.step-indicator{position:absolute;bottom:20px;left:50%;transform:translate(-50%);padding:8px 16px;background:#000c;color:#fff;border-radius:4px;font-size:14px;font-weight:500;white-space:nowrap;z-index:10}.graph-visualizer{width:100%;height:100%;display:flex;flex-direction:column;background-color:#1e1e1e;position:relative}.graph-visualizer svg{flex:1;background-color:#1e1e1e}.graph-visualizer .node-circle{fill:#3b82f6;stroke:#60a5fa;stroke-width:2;transition:fill .3s,stroke .3s}.graph-visualizer .node-circle.active{fill:#10b981;stroke:#34d399}.graph-visualizer .node-circle.current{fill:#f59e0b;stroke:#fbbf24}.graph-visualizer .node-circle.visited{fill:#8b5cf6;stroke:#a78bfa}.graph-visualizer .node-circle:hover{fill:#60a5fa;stroke:#93c5fd}.graph-visualizer .node-label{fill:#fff;font-size:14px;font-weight:500;pointer-events:none;user-select:none}.graph-visualizer .link{stroke:#999;stroke-opacity:.6;transition:stroke .3s,stroke-opacity .3s}.graph-visualizer .link:hover{stroke-opacity:1}.graph-visualizer .empty-message{fill:#9ca3af;font-size:16px}.graph-visualizer .step-indicator{position:absolute;top:10px;left:10px;background-color:#000000b3;color:#fff;padding:8px 12px;border-radius:4px;font-size:14px;font-weight:500;max-width:400px}.hashmap-svg{width:100%;height:100%;background:#0f172a}.hashmap-svg .bucket-rect{transition:fill .3s ease,stroke .3s ease}.hashmap-svg .bucket-rect.active{fill:#22c55e}.hashmap-svg .bucket-rect.collision{fill:#fb923c}.hashmap-svg .bucket-rect.found{fill:#a78bfa}.hashmap-svg .bucket-rect.deleted{fill:#ef4444}.hashmap-svg .bucket-index{user-select:none;pointer-events:none}.hashmap-svg .entry-rect{transition:fill .3s ease}.hashmap-svg .entry-label{user-select:none;pointer-events:none}.hashmap-svg .connector{opacity:.5}.hashmap-svg .step-indicator{user-select:none;pointer-events:none}.mode-selector{padding:1rem;background-color:#1e1e1e;border-bottom:1px solid #333}.mode-selector-row{display:flex;align-items:center;gap:.75rem}.mode-selector-header{font-size:.875rem;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:.05em}.mode-selector-buttons{display:flex;gap:.5rem;flex-wrap:wrap}.mode-button{padding:.5rem 1rem;border:1px solid #444;border-radius:4px;background-color:#2a2a2a;color:#ccc;font-size:.875rem;font-weight:500;cursor:pointer;transition:all .2s ease}.mode-button:hover:not(:disabled){background-color:#333;border-color:#555;color:#fff}.mode-button:disabled{opacity:.5;cursor:not-allowed}.mode-button.active{background-color:#007acc;border-color:#007acc;color:#fff}.mode-button-warning{border-color:#d97706}.mode-button-warning:hover:not(:disabled){background-color:#d97706;border-color:#d97706;color:#fff}.mode-button-warning.active{background-color:#d97706;border-color:#d97706}.mode-description{margin-top:.75rem;font-size:.875rem;color:#999;line-height:1.5}.mode-description p{margin:0}.mode-description .warning-text{color:#d97706}.mode-description .warning-text strong{color:#f59e0b}.comparison-view{display:flex;width:100%;height:100%;gap:0}.comparison-panel{flex:1;display:flex;flex-direction:column;min-width:0}.comparison-header{padding:1rem;background:#ffffff0d;border-bottom:1px solid rgba(255,255,255,.1)}.comparison-header h3{margin:0;font-size:.9rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:#ffffffe6}.comparison-visualizer{flex:1;overflow:hidden;position:relative}.comparison-divider{width:2px;background:linear-gradient(to bottom,transparent,rgba(255,255,255,.2) 10%,rgba(255,255,255,.2) 90%,transparent);box-shadow:0 0 8px #3b82f64d}@media(max-width:1024px){.comparison-view{flex-direction:column}.comparison-divider{width:100%;height:2px;background:linear-gradient(to right,transparent,rgba(255,255,255,.2) 10%,rgba(255,255,255,.2) 90%,transparent)}.comparison-panel{min-height:300px}}.test-panel{display:flex;flex-direction:column;height:100%;padding:1rem;background-color:#1e1e1e;color:#d4d4d4;overflow-y:auto}.test-panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.test-panel-header h3{margin:0;font-size:1.25rem;font-weight:600}.test-summary{font-size:.875rem}.test-summary .all-passed{color:#4ec9b0}.test-summary .some-failed{color:#f48771}.test-actions{margin-bottom:1rem}.test-actions button{width:100%;padding:.5rem 1rem;background-color:#0e639c;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;font-weight:500;transition:background-color .2s}.test-actions button:hover:not(:disabled){background-color:#17b}.test-actions button:disabled{background-color:#3c3c3c;color:gray;cursor:not-allowed}.test-list{display:flex;flex-direction:column;gap:.75rem}.no-tests{padding:2rem;text-align:center;color:gray;font-style:italic}.test-item{background-color:#252526;border:1px solid #3c3c3c;border-radius:6px;padding:.75rem;transition:all .2s;cursor:pointer}.test-item:hover{border-color:#505050}.test-item.selected{border-color:#0e639c;background-color:#0e639c1a}.test-item:focus{outline:2px solid #0e639c;outline-offset:2px}.test-item.passed{border-left:3px solid #4ec9b0}.test-item.failed{border-left:3px solid #f48771}.test-item.not-run{border-left:3px solid #808080}.test-item-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem}.test-status{font-size:1rem;font-weight:700;min-width:1.25rem}.test-item.passed .test-status{color:#4ec9b0}.test-item.failed .test-status{color:#f48771}.test-item.not-run .test-status{color:gray}.test-name{flex:1;font-weight:500;font-size:.9375rem}.test-difficulty{padding:.125rem .5rem;border-radius:3px;font-size:.75rem;font-weight:600;text-transform:uppercase}.test-difficulty.easy{background-color:#4ec9b033;color:#4ec9b0}.test-difficulty.medium{background-color:#ce917833;color:#ce9178}.test-difficulty.hard{background-color:#f4877133;color:#f48771}.test-description{font-size:.8125rem;color:#a0a0a0;margin-bottom:.5rem;line-height:1.4}.test-result-details{margin:.5rem 0;padding:.5rem;border-radius:4px;font-size:.8125rem}.test-success{background-color:#4ec9b01a;color:#4ec9b0;display:flex;justify-content:space-between;align-items:center;padding:.5rem;border-radius:4px}.step-count{font-size:.75rem;opacity:.8}.test-error{background-color:#f487711a;color:#f48771;padding:.5rem;border-radius:4px}.error-message{font-family:Consolas,Monaco,Courier New,monospace;margin-bottom:.25rem;word-break:break-word}.execution-time{font-size:.75rem;opacity:.8}.test-item-actions{display:flex;justify-content:flex-end;margin-top:.5rem}.run-single-test{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .75rem;background-color:#0e639c;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.8125rem;transition:background-color .2s}.run-single-test:hover:not(:disabled){background-color:#17b}.run-single-test:disabled{background-color:#3c3c3c;color:gray;cursor:not-allowed}.console-output{display:flex;flex-direction:column;height:100%;background-color:#1e1e1e;color:#d4d4d4;font-family:Courier New,monospace;font-size:13px}.console-header{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;background-color:#252526;border-bottom:1px solid #3e3e42}.console-header h3{margin:0;font-size:14px;font-weight:600;color:#ccc}.console-clear-button{padding:4px 12px;background-color:#3e3e42;border:1px solid #5a5a5e;border-radius:4px;color:#ccc;font-size:12px;cursor:pointer;transition:background-color .2s}.console-clear-button:hover{background-color:#4e4e52}.console-logs{flex:1;overflow-y:auto;padding:8px;line-height:1.5}.console-empty{color:#858585;font-style:italic;padding:8px}.console-log{display:flex;gap:8px;padding:4px 8px;border-left:3px solid transparent;margin-bottom:2px}.console-log-log{border-left-color:#3794ff}.console-log-warn{border-left-color:#cca700;background-color:#cca7001a}.console-log-error{border-left-color:#f48771;background-color:#f487711a}.console-log-info{border-left-color:#75beff}.console-timestamp{color:#858585;font-size:11px;min-width:80px;flex-shrink:0}.console-level{font-weight:600;min-width:50px;flex-shrink:0;font-size:11px}.console-level-log{color:#3794ff}.console-level-warn{color:#cca700}.console-level-error{color:#f48771}.console-level-info{color:#75beff}.console-message{flex:1;word-wrap:break-word;white-space:pre-wrap;color:#d4d4d4}.console-logs::-webkit-scrollbar{width:10px}.console-logs::-webkit-scrollbar-track{background:#1e1e1e}.console-logs::-webkit-scrollbar-thumb{background:#424242;border-radius:5px}.console-logs::-webkit-scrollbar-thumb:hover{background:#4e4e4e}
