.card-manager{background:linear-gradient(135deg,#f8fafc,#e2e8f0);border-radius:12px;border:1px solid #cbd5e1;box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -1px #0000000f;margin:16px 0;overflow:hidden;transition:all .3s ease;position:relative}.card-manager.animating{transform:scale(1.02);box-shadow:0 8px 25px -5px #0000001a,0 10px 10px -5px #0000000a}.card-header{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;position:relative;overflow:hidden}.card-header:before{content:"";position:absolute;top:-50%;right:-50%;width:100%;height:200%;background:linear-gradient(45deg,transparent,rgba(255,255,255,.1),transparent);transform:rotate(45deg);animation:shimmer 3s infinite}@keyframes shimmer{0%{transform:translate(-100%) rotate(45deg)}to{transform:translate(100%) rotate(45deg)}}.card-title h3{margin:0;font-size:18px;font-weight:600;display:flex;align-items:center;gap:8px}.card-title h3:before{content:"🤖";font-size:20px}.step-counter{font-size:12px;opacity:.9;margin-top:2px;font-weight:400}.card-actions{display:flex;gap:8px;align-items:center}.history-button{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.history-button:hover{background:#ffffff4d;transform:translateY(-1px)}.card-content{padding:20px;background:#fff;min-height:100px}.step-item{margin-bottom:16px;opacity:0;transform:translateY(20px);animation:slideInUp .5s ease forwards}.step-item.new-step{animation:slideInUp .5s ease forwards,highlightPulse 2s ease .5s}@keyframes slideInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes highlightPulse{0%,to{box-shadow:0 0 #3b82f666}50%{box-shadow:0 0 0 8px #3b82f61a}}.card-footer{background:linear-gradient(135deg,#10b981,#059669);color:#fff;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid #d1fae5}.completion-message{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px}.new-query-button{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:8px 16px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.new-query-button:hover{background:#ffffff4d;transform:translateY(-1px)}.history-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);animation:fadeIn .3s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.history-modal{background:#fff;border-radius:12px;box-shadow:0 25px 50px -12px #00000040;max-width:600px;width:90%;max-height:80vh;overflow:hidden;animation:slideInModal .3s ease}@keyframes slideInModal{0%{opacity:0;transform:scale(.9) translateY(-20px)}to{opacity:1;transform:scale(1) translateY(0)}}.history-header{background:linear-gradient(135deg,#6366f1,#4f46e5);color:#fff;padding:20px;display:flex;justify-content:space-between;align-items:center}.history-header h3{margin:0;font-size:18px;font-weight:600}.history-actions{display:flex;gap:8px;align-items:center}.clear-history-button,.close-history-button{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.clear-history-button:hover,.close-history-button:hover{background:#ffffff4d}.close-history-button{padding:6px;font-size:16px;line-height:1}.history-content{padding:20px;max-height:60vh;overflow-y:auto}.no-history{text-align:center;color:#6b7280;font-style:italic;padding:40px 20px}.history-card{border:1px solid #e5e7eb;border-radius:8px;padding:16px;margin-bottom:12px;background:#f9fafb;transition:all .2s ease}.history-card:hover{border-color:#3b82f6;box-shadow:0 4px 6px -1px #0000001a;transform:translateY(-1px)}.history-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.history-card-title{font-weight:600;color:#374151;font-size:14px}.history-card-meta{font-size:12px;color:#6b7280}.history-card-preview{margin-bottom:12px}.history-step-preview{font-size:12px;color:#4b5563;margin-bottom:4px;padding-left:8px;border-left:2px solid #e5e7eb}.history-step-more{font-size:11px;color:#9ca3af;font-style:italic;padding-left:8px;border-left:2px solid #e5e7eb}.restore-card-button{background:#3b82f6;color:#fff;border:none;padding:6px 12px;border-radius:6px;font-size:12px;font-weight:500;cursor:pointer;transition:all .2s ease}.restore-card-button:hover{background:#2563eb;transform:translateY(-1px)}.current-step-container{position:relative;overflow:hidden;min-height:200px;transition:min-height .3s ease-in-out}.component-container.current-step{box-shadow:0 4px 12px #3b82f626;border-color:#3b82f6;position:relative;overflow:hidden}.current-step-container.loading-border:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:2px;background:linear-gradient(90deg,transparent,#3b82f6,#06b6d4,transparent);animation:borderSlide 2.5s ease-in-out infinite;z-index:1}@keyframes borderSlide{0%{left:-100%}to{left:100%}}@keyframes borderSlideReverse{0%{right:-100%}to{right:100%}}.reasoning-section{transition:all .5s ease-in-out}.reasoning-content{transition:max-height .5s ease-in-out,opacity .3s ease-in-out;overflow:hidden}.reasoning-content.collapsed{max-height:0;opacity:0}.reasoning-content.expanded{max-height:2000px;opacity:1}.step-fade-enter{opacity:0;transform:translateY(20px)}.step-fade-enter-active{opacity:1;transform:translateY(0);transition:opacity .3s ease-in-out,transform .3s ease-in-out}.step-fade-exit{opacity:1;transform:translateY(0)}.step-fade-exit-active{opacity:0;transform:translateY(-20px);transition:opacity .3s ease-in-out,transform .3s ease-in-out}.component-container:hover{box-shadow:0 8px 25px #0000001a;transition:box-shadow .2s ease}.component-container.current-step:hover{box-shadow:0 8px 25px #3b82f633}.loading-shimmer{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:shimmer 1.5s infinite}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}@media (max-width: 640px){.card-header{flex-direction:column;gap:8px;align-items:flex-start}.card-actions{width:100%;justify-content:flex-end}.history-modal{width:95%;margin:20px}.card-footer{flex-direction:column;gap:12px;align-items:stretch}.new-query-button{width:100%}.current-step-container.loading-border:before,.current-step-container.loading-border:after{display:none}.current-step-container{min-height:150px}}.external{background:green;color:#fff;padding:1rem}.ai-system-steps{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;max-width:800px;margin:0 auto;padding-left:0!important;padding-right:10px}.system-title{font-size:1.5rem;font-weight:700;margin-bottom:20px;color:#333}.steps-container{display:flex;flex-direction:column;gap:12px}.step{border:1px solid #e0e0e0;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000000d;transition:all .3s ease}.step.expanded{box-shadow:0 4px 8px #0000001a}.step-header{padding:12px 16px;background-color:#f5f7f9;display:flex;justify-content:space-between;transition:background-color .2s ease}.step-header:hover{background-color:#edf0f3}.title-container{display:flex;align-items:center;gap:10px;width:100%}.step-title{font-style:italic;font-weight:500;color:#333;flex-grow:1}.expand-button{background:none;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#555;padding:4px;border-radius:50%;transition:background-color .2s ease,color .2s ease}.expand-button:hover{background-color:#0000000d;color:#222}.step-content{padding:16px;overflow-x:scroll;background-color:#fff;line-height:1.5}.stop-button-container{position:sticky;bottom:0;opacity:1;background-color:#fff0;padding:8px 0;border-top:0px solid #e0e0e0;z-index:100;width:100%;text-align:center}.stop-button{display:flex;align-items:center;justify-content:center;padding:8px 16px;background-color:#ff4d4d;color:#fff;border:none;border-radius:4px;cursor:pointer;font-weight:700;margin:0 auto;box-shadow:0 2px 4px #0003;transition:all .2s ease}.stop-button:hover{background-color:#f33;box-shadow:0 3px 6px #0000004d}.stop-button:disabled{background-color:#ccc;cursor:default;box-shadow:none}.stop-button svg{margin-right:8px}.floating-toggle{width:fit-content;margin-bottom:6px;top:20px;right:20px;background:#e0f2fe;border-radius:20px;border:1px solid #b3e5fc;cursor:pointer;z-index:1000;transition:all .2s ease;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-user-select:none;user-select:none;display:flex;align-items:center;gap:6px;padding:6px 12px;height:32px;box-sizing:border-box}.floating-toggle:hover{background:#b3e5fc;transform:translateY(-1px)}.toggle-icon{font-size:14px;line-height:1}.toggle-text{font-size:12px;font-weight:500;color:#0277bd;line-height:1}@media (max-width: 768px){.floating-toggle{top:15px;right:15px;height:30px;padding:5px 10px}.toggle-icon{font-size:13px}.toggle-text{font-size:11px}}
