.rag-chatbot-container{position:fixed;bottom:24px;right:24px;z-index:9999;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.rag-chatbot-trigger{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#1e40af,#1d4ed8);color:#fff;border:none;padding:12px 20px;border-radius:30px;box-shadow:0 4px 16px #1e40af59;cursor:pointer;font-weight:600;font-size:14px;transition:all .2s ease-in-out}.rag-chatbot-trigger:hover{transform:translateY(-2px);box-shadow:0 6px 20px #1e40af73}.rag-chatbot-drawer{width:400px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 48px);background:#fff;border-radius:16px;box-shadow:0 12px 36px #0f172a33;display:flex;flex-direction:column;overflow:hidden;border:1px solid #cbd5e1}.rag-chatbot-header{background:linear-gradient(135deg,#1e40af,#1d4ed8);color:#fff;padding:14px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.15)}.rag-header-title{display:flex;align-items:center;gap:10px}.rag-header-avatar{position:relative;display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;background:#ffffff2e;border-radius:50%}.rag-online-badge{position:absolute;bottom:0;right:0;width:10px;height:10px;background-color:#22c55e;border:2px solid #1e40af;border-radius:50%}.rag-header-info{display:flex;flex-direction:column;gap:2px}.rag-header-info h3.rag-title{margin:0!important;font-size:15px!important;font-weight:700!important;color:#fff!important;letter-spacing:-.01em!important;line-height:1.2!important}.rag-status-subtitle{font-size:11px;color:#ffffffeb;font-weight:500;letter-spacing:.01em}.rag-header-actions{display:flex;align-items:center;gap:6px}.rag-icon-btn{background:transparent;border:none;color:#fff;cursor:pointer;font-size:14px;padding:6px 8px;border-radius:6px;transition:background .15s ease;line-height:1}.rag-icon-btn:hover{background:#fff3}.rag-chatbot-messages{flex:1;padding:14px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;background:#f8fafc}.rag-empty-state{font-size:13px;color:#334155;line-height:1.5;background:#fff;padding:14px;border-radius:10px;border:1px solid #e2e8f0;box-shadow:0 2px 6px #00000008}.rag-empty-title{font-weight:600;color:#0f172a;margin:0 0 6px}.rag-empty-footnote{font-size:11.5px;color:#64748b;margin:8px 0 0;border-top:1px solid #f1f5f9;padding-top:6px}.rag-message{display:flex;flex-direction:column}.rag-message-user{align-items:flex-end}.rag-message-assistant{align-items:flex-start}.rag-message-bubble{max-width:88%;padding:10px 14px;border-radius:14px;font-size:13px;line-height:1.5}.rag-message-user .rag-message-bubble{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border-bottom-right-radius:2px;box-shadow:0 2px 6px #2563eb40}.rag-message-assistant .rag-message-bubble{background:#fff;color:#0f172a;border:1px solid #e2e8f0;border-bottom-left-radius:2px;box-shadow:0 2px 6px #00000008}.rag-message-text{white-space:pre-wrap;word-break:break-word}.rag-citations-container{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px;padding-top:8px;border-top:1px dashed #cbd5e1}.citation-badge{font-size:10.5px;background:#eff6ff;color:#1e40af;border:1px solid #bfdbfe;padding:3px 8px;border-radius:12px;cursor:help;font-weight:500;transition:all .15s ease}.citation-badge:hover{background:#dbeafe;border-color:#93c5fd}.rag-loading-bubble{background:#f0f7ff!important;border:1px solid #bfdbfe!important;padding:12px 14px!important;min-width:250px}.rag-thinking-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}.rag-thinking-dots{display:inline-flex;align-items:center;gap:4px}.rag-thinking-dots span{width:6px;height:6px;border-radius:50%;background:#2563eb;display:inline-block;animation:ragBounce 1.4s infinite ease-in-out both}.rag-thinking-dots span:nth-child(1){animation-delay:-.32s}.rag-thinking-dots span:nth-child(2){animation-delay:-.16s}@keyframes ragBounce{0%,80%,to{transform:scale(.6);opacity:.4}40%{transform:scale(1.1);opacity:1}}.rag-thinking-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#1d4ed8}.rag-thinking-step{font-size:12.5px;color:#1e3a8a;line-height:1.4;margin-bottom:8px;min-height:36px;display:flex;align-items:center;animation:ragFadeIn .3s ease-out}@keyframes ragFadeIn{0%{opacity:0;transform:translateY(2px)}to{opacity:1;transform:translateY(0)}}.rag-thinking-bar{height:3px;width:100%;background:#dbeafe;border-radius:2px;overflow:hidden;position:relative}.rag-thinking-progress{width:35%;height:100%;background:linear-gradient(90deg,#3b82f6,#1d4ed8);border-radius:2px;position:absolute;animation:ragProgressIndeterminate 1.6s infinite ease-in-out}@keyframes ragProgressIndeterminate{0%{left:-35%}50%{left:45%}to{left:100%}}.rag-suggestions-bar{display:flex;flex-direction:column;gap:5px;padding:8px 12px;background:#f8fafc;border-top:1px solid #e2e8f0}.rag-suggestion-chip{display:flex;align-items:center;gap:6px;background:#fff;border:1px solid #cbd5e1;color:#1e293b;font-size:11.5px;padding:6px 10px;border-radius:12px;text-align:left;cursor:pointer;transition:all .15s ease;box-shadow:0 1px 2px #00000008}.rag-suggestion-chip:hover:not(:disabled){background:#eff6ff;border-color:#93c5fd;color:#1d4ed8;transform:translateY(-1px)}.rag-suggestion-chip:disabled{opacity:.6;cursor:not-allowed}.rag-suggestion-icon{font-size:13px;flex-shrink:0}.rag-suggestion-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rag-chatbot-input-form{display:flex;padding:10px 12px;background:#fff;border-top:1px solid #e2e8f0;gap:8px;align-items:center}.rag-chatbot-input-form input{flex:1;padding:9px 14px;border:1px solid #cbd5e1;border-radius:20px;font-size:13px;outline:none;background:#f8fafc;color:#0f172a;transition:all .2s ease}.rag-chatbot-input-form input:focus{background:#fff;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.rag-chatbot-input-form input::placeholder{color:#94a3b8}.rag-send-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#f1f5f9;color:#94a3b8;border:1px solid #e2e8f0;padding:8px 16px;border-radius:20px;font-weight:600;font-size:13px;cursor:not-allowed;transition:all .2s ease;flex-shrink:0}.rag-send-btn--active{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:1px solid transparent;cursor:pointer;box-shadow:0 2px 8px #2563eb59}.rag-send-btn--active:hover{background:linear-gradient(135deg,#1d4ed8,#1e40af);transform:translateY(-1px);box-shadow:0 4px 12px #2563eb73}.rag-send-btn--active:active{transform:translateY(0)}.rag-send-icon{transition:transform .15s ease}.rag-send-btn--active:hover .rag-send-icon{transform:translate(1px)}
