:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:dark;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html,body,#root{margin:0;padding:0;width:100%;height:100%;overflow:hidden}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}*{margin:0;padding:0;box-sizing:border-box}:root{--primary: #CE422B;--primary-dark: #A8350F;--primary-light: #F46623;--secondary: #B8410F;--danger: #ef4444;--success: #10b981;--warning: #f59e0b;--bg: hsl(226, 23%, 11%);--bg-secondary: hsl(226, 23%, 16%);--bg-tertiary: hsl(226, 23%, 21%);--text: #f1f5f9;--text-muted: #94a3b8;--border: hsl(226, 23%, 28%)}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;background-color:var(--bg);color:var(--text)}#root{width:100%;height:100vh;display:flex;flex-direction:column}.app{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--bg)}.app-header{background-color:#161923;padding:.75rem 1.5rem;box-shadow:0 2px 8px #0006;border-bottom:2px solid var(--primary);display:flex;align-items:center;gap:1rem;justify-content:space-between;flex-wrap:wrap}.app-header h2{font-size:1.5rem;font-weight:700;margin:0;letter-spacing:-.5px;color:var(--primary-light)}.app-header p{font-size:.85rem;opacity:.85;margin:0;color:#d0d0d0;flex:1}.btn-readme{padding:.5rem 1rem;border:1px solid var(--border);background-color:var(--bg-tertiary);color:var(--text);border-radius:6px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap}.btn-readme:hover{background-color:var(--primary);border-color:var(--primary-light);color:#fff;transform:translateY(-2px);box-shadow:0 4px 8px #ce422b4d}.app-container{display:flex;flex:1;overflow:hidden;gap:0;width:100%;height:100%;user-select:none;-webkit-user-select:none;align-items:stretch}.panel-left,.panel-center,.panel-right{display:flex;flex-direction:column;overflow:hidden;height:100%}.resize-divider{width:8px;background-color:var(--border);cursor:col-resize;transition:background-color .2s ease;flex-shrink:0;user-select:none;-webkit-user-select:none;position:relative;z-index:20}.resize-divider:hover{background-color:var(--primary);box-shadow:inset 0 0 10px #ce422b4d}.resize-divider:after{content:"";position:absolute;width:4px;height:50px;background-color:#ce422b80;border-radius:2px;transition:all .2s ease;top:50%;left:50%;transform:translate(-50%,-50%);pointer-events:none}.resize-divider:hover:after{height:100px;background-color:var(--primary)}.question-panel{width:100%;height:100%;border-right:1px solid var(--border);background-color:var(--bg-secondary);overflow:hidden;display:flex;flex-direction:column}.question-header{padding:.75rem 1.5rem;border-bottom:1px solid var(--border);background-color:var(--bg-tertiary);display:flex;flex-direction:column;justify-content:center}.question-header h3{font-size:1rem;margin:0;font-weight:600}.question-count{font-size:.75rem;color:var(--text-muted);margin:.25rem 0 0}.question-header{display:flex;flex-direction:column;gap:.75rem}.search-input{width:100%;padding:.6rem 1rem;border:1px solid var(--border);background-color:var(--bg-tertiary);color:var(--text);border-radius:6px;font-size:.85rem;outline:none;transition:all .2s ease}.search-input:focus{border-color:var(--primary);background-color:var(--bg);box-shadow:0 0 8px #ce422b33}.search-input::placeholder{color:var(--text-muted)}.question-list{flex:1;overflow-y:auto;padding:.5rem}.section-group{margin-bottom:.5rem}.section-header{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;cursor:pointer;border-radius:6px;-webkit-user-select:none;user-select:none}.section-header:hover{background-color:var(--bg-tertiary)}.section-header.active{background-color:var(--primary);color:#fff;font-weight:600}.section-header-docs{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;border-radius:6px;background-color:var(--bg-tertiary);-webkit-user-select:none;user-select:none;cursor:pointer}.section-header-docs:hover{background-color:var(--border)}.section-header-docs.active{background-color:var(--primary);color:#fff;font-weight:600}.section-icon{display:flex;align-items:center;justify-content:center;color:var(--text-muted);transition:color .2s ease}.section-header:hover .section-icon{color:var(--primary-light)}.section-name{flex:1;font-weight:600;font-size:.9rem;color:var(--text);text-transform:capitalize}.section-count{font-size:.75rem;color:var(--text-muted);background-color:var(--bg-secondary);padding:.2rem .5rem;border-radius:4px}.exercises-list{padding:.5rem 1rem .5rem 2.5rem;display:flex;flex-direction:column;gap:.25rem}.exercise-item{padding:.6rem .8rem;margin:0;border-radius:6px;cursor:pointer;background-color:var(--bg-secondary);font-size:.85rem}.exercise-item.active{background-color:var(--primary);color:#fff;font-weight:600}.exercise-item.completed{color:var(--text-muted);text-decoration:line-through;opacity:.7}.exercise-name{display:block;word-break:break-word;font-family:Fira Code,monospace}.no-exercises{display:flex;align-items:center;justify-content:center;color:var(--text-muted);font-style:italic;padding:2rem 1rem;text-align:center}.editor-panel{width:100%;height:100%;display:flex;flex-direction:column;background-color:var(--bg);border-right:1px solid var(--border);overflow:hidden}.editor-wrapper{flex:1;overflow:hidden;background-color:#1e1e1e}.editor-wrapper>div{height:100%}.editor-actions{display:flex;gap:1rem;padding:1rem 1.5rem;border-top:1px solid var(--border);background-color:var(--bg-secondary)}.btn-run,.btn-reset{padding:.75rem 1.5rem;border:none;border-radius:6px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .3s ease;display:flex;align-items:center;gap:.5rem}.btn-run{background:var(--primary);color:#fff}.btn-run:hover:not(:disabled){background:#5f2512}.btn-run:disabled{opacity:.6;cursor:not-allowed}.btn-reset{background-color:var(--bg-tertiary);color:var(--text);border:1px solid var(--border)}.btn-reset:hover{background-color:var(--border)}.btn-nav{padding:.75rem 1rem;border:1px solid var(--border);background-color:var(--bg-tertiary);color:var(--text);border-radius:6px;font-size:.95rem;font-weight:600;cursor:pointer}.btn-nav:hover:not(:disabled){background-color:var(--border)}.btn-nav:disabled{opacity:.5;cursor:not-allowed}.btn-nav-next{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-nav-next:hover:not(:disabled){background:#5f2512}.btn-next{background:linear-gradient(135deg,var(--success) 0%,#0f9f6f 100%);color:#fff;border:none}.btn-next:hover{transform:translateY(-2px);box-shadow:0 8px 16px #10b98166}.output-panel{width:100%;height:100%;border-left:1px solid var(--border);background-color:var(--bg-secondary);display:flex;flex-direction:column;overflow:hidden}.output-header{padding:.75rem 1.5rem;border-bottom:1px solid var(--border);background-color:var(--bg-tertiary);display:flex;align-items:center}.output-header h3{font-size:1rem;margin:0;font-weight:600}.output-content{flex:1;overflow-y:auto;padding:1.5rem;display:flex;flex-direction:column}.output-section{margin-bottom:1.5rem}.output-section-title{font-size:.85rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.output-box{background-color:#1e1e1e;border:1px solid var(--border);border-radius:6px;padding:1rem;font-family:Fira Code,monospace;font-size:.9rem;line-height:1.5;min-height:60px;word-wrap:break-word;white-space:pre-wrap;color:var(--text)}.output-box.success{border-color:var(--success);background-color:#10b9811a;color:#6ee7b7}.output-box.error{border-color:var(--danger);background-color:#ef44441a;color:#fca5a5}.output-empty{color:var(--text-muted);font-style:italic;text-align:center;padding:2rem 1rem}.output-loading{display:flex;align-items:center;justify-content:center;gap:.5rem;color:var(--primary-light);padding:2rem}.spinner{display:inline-block;width:16px;height:16px;border:2px solid var(--border);border-top-color:var(--primary-light);border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.expected-output{font-size:.9rem;padding:1rem;background-color:var(--bg-tertiary);border-radius:6px;border-left:3px solid var(--warning)}.expected-output-title{font-weight:600;color:var(--warning);margin-bottom:.5rem}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:var(--text-muted)}.celebration-backdrop{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000b3;z-index:9998;animation:backdrop-fade .3s ease-out}.celebration-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10000;animation:modal-scale .5s cubic-bezier(.34,1.56,.64,1)}.celebration-content{background:linear-gradient(135deg,#161923,#1f2432);border:2px solid var(--primary);border-radius:20px;padding:2rem 2.5rem;text-align:center;width:400px;box-shadow:0 10px 10px #ce422b66,0 0 10px #ce422b33;max-width:500px;width:90%}.celebration-emoji-large{font-size:4rem;margin-bottom:1.5rem;animation:bounce-celebration .6s ease-in-out infinite;display:block}.celebration-title{font-size:2rem;font-weight:700;color:var(--primary-light);margin:0 0 .5rem;animation:slide-down .5s ease-out .1s both}.celebration-subtitle{font-size:1rem;color:#d0d0d0;margin:0 0 2rem;animation:slide-down .5s ease-out .2s both}.celebration-actions{display:flex;gap:1rem;justify-content:center}.btn-next-modal{padding:1rem 2rem;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;color:#fff}.btn-next-modal:hover{background:var(--primary-light)}.celebration-message{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10000;text-align:center;animation:celebration-scale .6s ease-out}.celebration-emoji{font-size:5rem;margin-bottom:1rem;animation:bounce-large .6s ease-in-out infinite;display:block;filter:drop-shadow(0 4px 12px rgba(206,66,43,.6))}.celebration-text{font-size:2rem;font-weight:700;color:var(--primary-light);text-shadow:0 4px 12px rgba(206,66,43,.6);letter-spacing:2px;animation:pop-in .4s ease-out .2s both}@keyframes backdrop-fade{0%{opacity:0}to{opacity:1}}@keyframes modal-scale{0%{transform:translate(-50%,-50%) scale(.3) rotateX(-20deg);opacity:0}to{transform:translate(-50%,-50%) scale(1) rotateX(0);opacity:1}}@keyframes bounce-celebration{0%,to{transform:translateY(0)}50%{transform:translateY(-20px)}}@keyframes slide-down{0%{opacity:0;transform:translateY(-20px)}to{opacity:1;transform:translateY(0)}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes pop-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@media(max-width:1200px){.question-panel{width:240px}.output-panel{width:280px}}@media(max-width:768px){.app-container{flex-direction:column}.question-panel,.output-panel{width:100%;max-height:25vh;border:none}.question-panel{border-bottom:1px solid var(--border)}.output-panel{border-top:1px solid var(--border)}.editor-panel{flex:1;border:none}}
