#ai-toggle{position:fixed;bottom:24px;right:24px;width:64px;height:64px;background:linear-gradient(to right,#ff7e2a,#ff3d00);color:#fff;font-size:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1000;box-shadow:0 4px 12px #0000004d;transition:transform .3s ease}#ai-toggle:hover{transform:scale(1.1)}#chatbox-ai{position:fixed;bottom:100px;right:24px;width:380px;max-width:90%;max-height:90vh;height:500px;background:#fff;border-radius:16px;box-shadow:0 8px 30px #0003;display:none;flex-direction:column;overflow:hidden;transition:all .3s ease;z-index:999;transform:scale(.8);opacity:0}#chatbox-ai.active{display:flex;transform:scale(1);opacity:1}#chatbox-ai header{background:linear-gradient(to right,#ff7e2a,#ff3d00);color:#fff;padding:12px 16px;display:flex;justify-content:space-between;align-items:center;font-weight:700}#chatbox-ai header span.close-btn{cursor:pointer;font-size:18px;color:#ff0}#chat-messages{flex:1;padding:12px;overflow-y:auto;display:flex;flex-direction:column;background:#f5f5f5}#chat-messages::-webkit-scrollbar{width:6px}#chat-messages::-webkit-scrollbar-thumb{background:#ff6b35;border-radius:10px}.message{display:inline-block;padding:8px 12px;margin:6px 0;border-radius:12px;max-width:100%;word-break:break-word;font-size:14px;line-height:1.4}.user-message{background-color:#ffefd5;color:#000;align-self:flex-end;text-align:right;margin-left:auto;border-radius:16px 16px 0}.ai-message{background-color:#e0e0e0;color:#333;align-self:flex-start;text-align:left;margin-right:auto;border-radius:16px 16px 16px 0}footer{padding:12px;border-top:1px solid #ddd;display:flex;gap:8px;background-color:#fff}input#chat-input{flex:1;padding:8px;font-size:14px;border:1px solid #ccc;border-radius:8px;outline:none;color:#000}input#chat-input::placeholder{color:#999}button#send-btn{background-color:#ff6b35;color:#fff;padding:8px 16px;font-size:14px;border:none;border-radius:8px;cursor:pointer}button#send-btn:hover{background-color:#ff5722}.typing-indicator .dots span{animation:blink 1.2s infinite;opacity:.3;font-size:18px;padding:0 1px}.typing-indicator .dots span:nth-child(2){animation-delay:.2s}.typing-indicator .dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,to{opacity:.3}50%{opacity:1}}.chat-bubble.ai.typing-indicator{display:flex!important;flex-direction:row!important;align-items:center;gap:8px}.chat-bubble.ai.typing-indicator .bubble-content{display:flex;align-items:center;padding:8px 12px}.chat-bubble{display:flex;gap:10px;margin-bottom:12px;max-width:90%}.chat-bubble.user{flex-direction:row-reverse;align-self:flex-end}.chat-bubble.ai{align-self:flex-start}.chat-bubble .avatar{font-size:20px;width:32px;height:32px;display:flex;align-items:center;justify-content:center;margin-top:0}.bubble-content{background:#f1f5f9;padding:12px 16px;border-radius:18px;font-size:15px;line-height:1.6;color:#111827;white-space:pre-line;box-shadow:0 1px 3px #0000000d;max-width:100%;word-wrap:break-word;overflow-wrap:break-word;font-family:Segoe UI,Roboto,sans-serif}.chat-bubble.ai .bubble-content{background:#f3f4f6}.chat-bubble.user .bubble-content{background:#dbeafe;color:#1e3a8a;font-weight:500}.bubble-content p{margin:0 0 8px}.bubble-content code{background:#e2e8f0;padding:2px 6px;border-radius:4px;font-family:monospace;font-size:14px;color:#334155}.bubble-content pre{background:#e2e8f0;padding:12px;border-radius:10px;overflow-x:auto;font-family:monospace;font-size:14px;margin:8px 0}.dots{display:flex;gap:6px}.dots span{animation:blink 1.2s infinite;font-weight:700;font-size:18px;opacity:.3}.dots span:nth-child(2){animation-delay:.2s}.dots span:nth-child(3){animation-delay:.4s}@keyframes blink{0%,to{opacity:.3;transform:scale(1)}50%{opacity:1;transform:scale(1.4)}}
