.bubble-sort-visualizer{background:#fff;border:1px solid var(--border-color);border-radius:8px;padding:1.5rem;margin:2rem 0;box-shadow:0 4px 12px #1e3a600d;font-family:var(--font-sans)}.visualizer-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;border-bottom:1px solid var(--border-color);padding-bottom:.5rem}.visualizer-title{font-weight:600;color:var(--accent-color);font-size:1rem}.visualizer-stats{font-size:.85rem;color:var(--text-muted);display:flex;gap:1rem}.visualizer-display{display:flex;flex-direction:column;align-items:center;justify-content:center;height:120px;position:relative;background:var(--bg-color);border-radius:6px;margin-bottom:1rem;overflow:hidden}.array-container{display:flex;position:relative;width:280px;height:60px}.array-card{position:absolute;width:50px;height:50px;background:#fff;border:2px solid var(--border-color);border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.2rem;color:var(--accent-color);box-shadow:0 2px 4px #0000000d;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .3s,border-color .3s,color .3s,box-shadow .3s;transform:translate(calc(var(--index) * 70px))}.array-card.comparing{border-color:#e06c75;background-color:#fdf3f3;color:#e06c75;box-shadow:0 0 8px #e06c754d}.array-card.swapping{border-color:#d19a66;background-color:#fff9f3;color:#d19a66;animation:card-pulse .4s alternate infinite}.array-card.sorted{border-color:#98c379;background-color:#f3f9ed;color:#98c379}.visualizer-explanation{background:var(--quote-bg);border-left:3px solid var(--accent-color);padding:.8rem 1rem;font-size:.9rem;min-height:3.6rem;margin-bottom:1.5rem;border-radius:0 4px 4px 0;display:flex;align-items:center;color:var(--text-color);line-height:1.5}.visualizer-controls{display:flex;justify-content:center;gap:.8rem;flex-wrap:wrap}.btn{padding:.5rem 1rem;border-radius:6px;font-weight:600;font-size:.88rem;cursor:pointer;transition:all .2s ease;border:none;font-family:var(--font-sans)}.btn-primary{background-color:var(--accent-color);color:#fff}.btn-primary:hover{background-color:#2c5282;transform:translateY(-1px)}.btn-primary:disabled{background-color:#a0aec0;cursor:not-allowed;transform:none}.btn-secondary{background-color:var(--accent-light);color:var(--accent-color)}.btn-secondary:hover{background-color:#cbd5e0;transform:translateY(-1px)}@keyframes card-pulse{0%{transform:translate(calc(var(--index) * 70px)) scale(1)}to{transform:translate(calc(var(--index) * 70px)) scale(1.05)}}.quick-sort-visualizer{background:#fff;border:1px solid var(--border-color);border-radius:8px;padding:1.5rem;margin:2rem 0;box-shadow:0 4px 12px #1e3a600d;font-family:var(--font-sans)}.quick-demo-screen{background:var(--bg-color);border-radius:6px;padding:1rem;margin-bottom:1.5rem;min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;border:1px dashed var(--border-color);position:relative}.quick-explanation{font-size:.9rem;color:var(--text-color);text-align:center;margin-bottom:1rem;line-height:1.6;min-height:3.2rem;width:100%}.active-range-indicator{position:absolute;height:64px;background-color:#1e3a600d;border:1.5px dashed rgba(30,58,96,.25);border-radius:6px;transition:all .4s cubic-bezier(.25,.8,.25,1);top:0;pointer-events:none}.quick-array-display{display:flex;justify-content:center;align-items:center;position:relative;height:85px;width:100%;margin-bottom:1rem}.quick-card-placeholder{color:var(--text-muted);font-size:.88rem;font-style:italic}.quick-card{position:absolute;width:44px;height:44px;background:#fff;border:2px solid var(--border-color);border-radius:6px;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1.05rem;color:var(--accent-color);box-shadow:0 2px 4px #0000000d;transition:transform .6s cubic-bezier(.25,.8,.25,1),background-color .4s,border-color .4s,color .4s,box-shadow .4s}.quick-card.pivot{border-color:#e06c75;background-color:#fdf3f3;color:#e06c75;box-shadow:0 0 10px #e06c7566;font-weight:800}.quick-card.smaller{border-color:#98c379;background-color:#f3f9ed;color:#98c379}.quick-card.larger{border-color:#61afef;background-color:#f0f7fd;color:#61afef}.quick-card.scanning{border-color:#d19a66;background-color:#fff9f3;color:#d19a66;box-shadow:0 0 10px #d19a6680;font-weight:800}.quick-card.sorted{border-color:#98c379;background-color:#f3f9ed;color:#98c379;box-shadow:0 0 6px #98c37940}.pivot-badge{position:absolute;bottom:-18px;left:50%;transform:translate(-50%);font-size:.6rem;color:#e06c75;background:#fdf3f3;border:1px solid #E06C75;border-radius:3px;padding:1px 3px;font-weight:600;white-space:nowrap;line-height:1}.quick-action-area{display:flex;justify-content:center}.quick-tree-container{display:flex;flex-direction:column;align-items:center;width:100%}.tree-instruction{font-size:.82rem;color:var(--text-muted);margin-bottom:.5rem;align-self:flex-start;font-weight:600}.quick-tree-svg{background-color:var(--bg-color);border-radius:6px;padding:10px;border:1px solid var(--border-color)}.tree-node{cursor:pointer}.tree-node rect{fill:#fff;stroke:var(--border-color);stroke-width:1.5;transition:all .3s ease}.tree-node text{font-family:var(--font-sans);text-anchor:middle;fill:var(--text-color);transition:all .3s ease}.tree-node .node-title{font-size:8px;font-weight:600}.tree-node .node-subtitle{font-size:7px;fill:var(--text-muted)}.tree-node:hover rect{stroke:var(--accent-color);fill:var(--accent-light);filter:drop-shadow(0 2px 4px rgba(30,58,96,.1))}.tree-node.active rect{fill:var(--accent-color);stroke:var(--accent-color)}.tree-node.active text{fill:#fff}.tree-node.active .node-subtitle{fill:#fffc}.tree-node.leaf rect{stroke-dasharray:3 3}.tree-node.leaf.active rect{fill:#98c379;stroke:#98c379}.tree-node.leaf.active text{fill:#fff}@media(max-width:600px){.array-container{width:220px;height:50px}.array-card{width:40px;height:40px;font-size:1rem;transform:translate(calc(var(--index) * 55px))}@keyframes card-pulse{0%{transform:translate(calc(var(--index) * 55px)) scale(1)}to{transform:translate(calc(var(--index) * 55px)) scale(1.05)}}.visualizer-display{height:100px}}
