body{margin:0;padding:0;font-family:Segoe UI,SegoeUI,Helvetica Neue,Helvetica,Arial,sans-serif}.assistant-container{display:flex;align-items:center;background-color:rgba(255,255,255,.9);opacity:.9;border:.0625rem solid #e6f2fb;border-radius:12px;padding:16px;box-shadow:0 2px 5px rgba(0,0,0,.1);font-family:inherit;font-size:16px;transition:opacity .3s ease,transform .3s ease}.assistant-container.hidden{opacity:0;transform:translateX(100px);pointer-events:none}.assistant-icon{display:flex;justify-content:center;align-items:center;color:#ffffff;width:24px;height:24px;max-width:100%;max-height:100%}.assistant-icon img{width:100%;height:100%;max-width:100%}.assistant-text{color:#17253d;font-weight:600;margin-left:.9rem;font-size:20px;margin-bottom:2px}.add-button{background-color:#69b979;color:#ffffff;border:none;border-radius:10px;padding:8px 10px;margin-left:24px;cursor:pointer}.add-button:hover{background-color:#2d8d40}.add-button svg{margin-top:1px}.chat-widget-container{position:fixed;bottom:0;right:20px;z-index:21474836479}.chat-toggle-button{width:60px;height:60px;border-radius:50%;background:#69b979;color:white;border:none;cursor:pointer;font-size:24px;box-shadow:0 4px 12px rgba(0,0,0,.15);transition:all .3s ease}.chat-toggle-button:hover{transform:scale(1.1);box-shadow:0 6px 16px rgba(0,0,0,.2)}.chat-window{position:fixed;z-index:21474836479;bottom:0;right:0;width:539px;height:90vh;background:white;border-radius:0 0 1.5rem 1.5rem;box-shadow:0 4px 12px rgba(0,0,0,.15);display:flex;flex-direction:column;transition:all .6s cubic-bezier(.34,1.56,.64,1)}.chat-window.closing{animation:slideToRight .5s ease forwards}.chat-window.maximized{width:90vw;height:95vh;top:2.5vh;left:auto;right:0;bottom:auto;border-radius:1rem;box-shadow:0 8px 32px rgba(0,0,0,.2);transform:scale(1)}@media (max-width:539.98px){.chat-window{width:360px;transition:all .5s cubic-bezier(.34,1.56,.64,1)}.chat-window.maximized{width:95vw;height:90vh;top:5vh;left:2.5vw;right:auto;bottom:auto;box-shadow:0 6px 24px rgba(0,0,0,.15)}}.chat-window.maximized{animation:maximizeGlow .8s ease-out}@keyframes maximizeGlow{0%{box-shadow:0 4px 12px rgba(0,0,0,.15)}50%{box-shadow:0 8px 32px rgba(132,210,148,.3)}to{box-shadow:0 8px 32px rgba(0,0,0,.2)}}.chat-window.maximized{animation:maximizeGlow .6s ease-out}.chat-header{padding:15px;background:#f7f7f7;border-radius:0}.chat-header,.chat-header-left{display:flex;align-items:center}.chat-header-left{gap:10px}.chat-header-left h2{margin:0;font-size:16px;color:#1d1e20}.chat-header-left.icon{width:2rem;height:2rem;display:flex;justify-content:center;align-items:center;border-radius:.5rem;background:white}.chat-header-right{display:flex;align-items:center;margin-left:auto}.chat-header button{padding:6px;font-size:26px;line-height:1rem;border:none;background:none;cursor:pointer}.chat-header button:hover{background:#84d294;color:white;border-radius:5px}.maximize-button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;padding:8px;margin-right:8px;border:none;background:none;cursor:pointer;border-radius:4px;transition:all .2s ease;transform:scale(1)}.maximize-button:hover{background:#84d294;color:white;transform:scale(1.05)}.maximize-button:active{transform:scale(.95)}.maximize-button.maximized svg{transform:rotate(180deg)}.maximize-button svg{width:16px;height:16px;stroke-width:2;transition:transform .3s ease}.ocr-divider{border:0;margin:0;border-color:#84d294;border-top:.0625rem #84d294;border-style:solid}.mode-switch{margin-right:10px;display:flex;align-items:center;gap:8px;font-size:12px}.switch{position:relative;display:inline-block;width:60px;height:30px}.mode-switch span{font-weight:700}.switch input{opacity:0;width:0;height:0}.slider{cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc}.slider,.slider:before{position:absolute;transition:.4s}.slider:before{content:"";height:22px;width:22px;left:4px;bottom:4px;background-color:white}input:checked+.slider{background-color:#69b979}input:focus+.slider{box-shadow:0 0 1px #69b979}input:checked+.slider:before{transform:translateX(26px)}.slider.round{border-radius:34px}.slider.round:before{border-radius:50%}.chat-messages{flex:1;padding:24px;overflow-y:auto;background-color:#f7f7f7}.message{margin:12px 0;padding:8px 15px;border-radius:15px;max-width:80%;width:-moz-fit-content;width:fit-content;word-wrap:break-word}.message.bot{background:#f1f1f1;align-self:flex-start}.message.user{background:#69b979;color:white;align-self:flex-end;margin-left:auto}.file-message{display:flex;align-items:center;gap:8px;font-size:14px}.message.user .file-message{color:white}.message.bot .file-message{color:#1d1e20}.message-content{width:100%}.message-line{margin:0;padding:2px 0;white-space:pre-wrap;word-wrap:break-word}.message-line.arabic{font-size:1.1em;line-height:1.5}:root{--arabic-font:"Arial",sans-serif}.markdown{table{border-collapse:collapse;margin:10px 0}td,th{padding:6px 13px;border:1px solid black}p{line-height:1.5}ul{list-style:inside}}.message.loading{display:flex;align-items:center;justify-content:center;gap:5px;height:20px}.message.loading .dot{width:8px;height:8px;background-color:#69b979;border-radius:50%;animation:bounce 1.2s ease-in-out infinite both}.message.loading .dot:first-child{animation-delay:-.32s}.message.loading .dot:nth-child(2){animation-delay:-.16s}.message.loading .dot:nth-child(3){animation-delay:0s}.form-container{padding:24px;border-top:1px solid #eee;min-height:64px;align-items:center;display:flex;flex-direction:column;background-color:#f7f7f7}.chat-input{display:flex;width:100%;height:100%;background-color:#fefefe;border-radius:.5rem;border-top:1px solid rgb(230,230,230);position:relative;box-shadow:0 2px 4px 0 rgba(0,0,0,.14),0 0 2px 0 rgba(0,0,0,.12);overflow:hidden}.chat-input:after{content:"";position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#69b979,#84d294)}.chat-input textarea{border:1px solid #ddd;flex:1;color:#1d1e20;font-family:inherit;font-size:14px;border-radius:.5rem;line-height:1.7;max-height:192px;outline:none;overflow:hidden;resize:none;padding:18px 90px 16px 18px;box-shadow:0 2px 4px 0 rgba(0,0,0,.14),0 0 2px 0 rgba(0,0,0,.12)}.chat-input textarea:disabled{background:#f7f7f7;color:#666;cursor:not-allowed}.chat-input button{position:absolute;right:6px;border-radius:.5rem;top:50%;transform:translateY(-50%);padding:8px;background:transparent;color:#69b979;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center}.chat-input button.attachment-btn:disabled,.chat-input button.send-button:disabled{opacity:.5;cursor:not-allowed}.chat-input button.attachment-btn:disabled:hover{background:none}.chat-input button.attachment-btn{right:45px}.chat-input button:hover{background:#f0f0f0}.dropdown-container{margin-bottom:12px;display:flex;flex-wrap:wrap;justify-content:space-between;width:100%;gap:8px}.dropdown-container .remove-file-btn{background:none;border:none;color:#666;font-size:18px;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;padding:8px 16px}.dropdown-container .remove-file-btn:hover{background:#e0e0e0;color:#333}.dropdown-container .div-dropdown{display:flex;align-items:center;gap:8px}.dropdown-container .div-dropdown label{font-weight:600}.dropdown-container .div-dropdown.upload{margin-right:auto}.chat-dropdown{padding:12px 30px 12px 12px;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}.chat-dropdown,.chat-dropdown-trigger{width:-moz-fit-content;width:fit-content;border:1px solid #e6e6e6;border-radius:8px;background-color:white;font-size:14px;color:#1d1e20;cursor:pointer;transition:border-color .3s ease}.chat-dropdown-trigger{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:150px;padding:10px 12px}.chat-dropdown-trigger:hover{border-color:#69b979}.chat-dropdown-trigger:focus{outline:none;border-color:#69b979;box-shadow:0 0 0 2px rgba(105,185,121,.2)}.chat-dropdown:hover{border-color:#69b979}.chat-dropdown:focus{outline:none;border-color:#69b979;box-shadow:0 0 0 2px rgba(105,185,121,.2)}.chat-dropdown option{padding:12px;font-size:14px;background-color:white;color:#1d1e20}.selected-files-list{width:100%;max-height:200px;overflow-y:auto;background:#fff;border:1px solid #e0e0e0;border-radius:8px;margin:10px 0;padding:8px}.file-item{display:flex;justify-content:space-between;align-items:center;padding:8px;background:#f8f9fa;border-radius:6px;margin-bottom:8px;transition:background-color .2s ease}.file-item:last-child{margin-bottom:0}.file-item:hover{background:#f0f1f2}.file-info{display:flex;align-items:center;gap:10px;flex:1;min-width:0}.file-icon{font-size:1.2em;color:#4a90e2}.file-details{display:flex;flex-direction:column;min-width:0}.file-name{font-size:14px;font-weight:500;color:#333;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-size{font-size:12px;color:#666}.progress-container{width:100%;margin:10px 0;padding:0 16px}.progress-bar-wrapper{width:100%;background-color:#f0f0f0;border-radius:20px;padding:3px;box-shadow:inset 0 1px 3px rgba(0,0,0,.1)}.progress-bar{height:10px;background:linear-gradient(90deg,#69b979,#84d294);border-radius:20px;transition:width .3s ease-in-out;position:relative;overflow:hidden}.progress-bar:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(90deg,rgba(255,255,255,.1),rgba(255,255,255,.3) 50%,rgba(255,255,255,.1));animation:shimmer 1.5s infinite}.progress-text{text-align:center;font-size:12px;color:#666;margin-top:8px;font-weight:500}.upload-container{width:100%;display:flex;flex-direction:column}.upload-container.uploading{background:transparent;border:none;padding:0}.upload-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.upload-container .upload-controls button{background:#69b979;color:white;font-size:14px;border:1px solid #e6e6e6;border-radius:8px;cursor:pointer;padding:8px 16px}.upload-container .upload-controls button:hover{background:#469155}.upload-container .upload-controls .btn-cancelUpload{background:#69b979;font-size:16px;padding:0 12px}.uploading .btn-cancelUpload,.uploading .upload-files{display:none}.refresh-btn:disabled{cursor:not-allowed}.refresh-btn:disabled:hover{background-color:transparent;color:light-dark(rgba(16,16,16,.3),rgba(255,255,255,.3))}.refresh-btn.rotating svg{animation:rotate .5s ease-in-out}.chat-input button.stop-sending{background-color:#e4e2e2;border-radius:50%}.chat-input button.stop-sending:hover{background-color:#d1d1d1}@keyframes slideFromRight{0%{transform:translateX(100%);opacity:0}to{transform:translateX(0);opacity:1}}@keyframes slideToRight{0%{transform:translateX(0);opacity:1}to{transform:translateX(100%);opacity:0}}@keyframes slideIn{0%{transform:translateY(100px);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes bounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}@keyframes shimmer{0%{transform:translateX(-100%)}to{transform:translateX(100%)}}@keyframes rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.streaming .cursor{animation:blink 1s step-end infinite}@keyframes blink{0%,to{opacity:1}50%{opacity:0}}textarea{text-align:inherit;padding:8px 12px}textarea[style*="direction: rtl"]{text-align:right}textarea[style*="direction: ltr"]{text-align:left}input:checked:disabled+.slider{cursor:not-allowed!important;opacity:.5}.chart-container{margin:8px 0}.g-gtitle text{font-weight:700!important}.js-plotly-plot .plotly,.js-plotly-plot .plotly div{direction:ltr;font-family:Open Sans,verdana,arial,sans-serif;margin:0;padding:0}.js-plotly-plot .plotly button,.js-plotly-plot .plotly input{font-family:Open Sans,verdana,arial,sans-serif}.js-plotly-plot .plotly button:focus,.js-plotly-plot .plotly input:focus{outline:none}.js-plotly-plot .plotly a,.js-plotly-plot .plotly a:hover{text-decoration:none}.js-plotly-plot .plotly .crisp{shape-rendering:crispEdges}.js-plotly-plot .plotly .user-select-none{-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.js-plotly-plot .plotly svg a{fill:#447adb}.js-plotly-plot .plotly svg a:hover{fill:#3c6dc5}.js-plotly-plot .plotly .main-svg{position:absolute;top:0;left:0;pointer-events:none}.js-plotly-plot .plotly .main-svg .draglayer{pointer-events:all}.js-plotly-plot .plotly .cursor-default{cursor:default}.js-plotly-plot .plotly .cursor-pointer{cursor:pointer}.js-plotly-plot .plotly .cursor-crosshair{cursor:crosshair}.js-plotly-plot .plotly .cursor-move{cursor:move}.js-plotly-plot .plotly .cursor-col-resize{cursor:col-resize}.js-plotly-plot .plotly .cursor-row-resize{cursor:row-resize}.js-plotly-plot .plotly .cursor-ns-resize{cursor:ns-resize}.js-plotly-plot .plotly .cursor-ew-resize{cursor:ew-resize}.js-plotly-plot .plotly .cursor-sw-resize{cursor:sw-resize}.js-plotly-plot .plotly .cursor-s-resize{cursor:s-resize}.js-plotly-plot .plotly .cursor-se-resize{cursor:se-resize}.js-plotly-plot .plotly .cursor-w-resize{cursor:w-resize}.js-plotly-plot .plotly .cursor-e-resize{cursor:e-resize}.js-plotly-plot .plotly .cursor-nw-resize{cursor:nw-resize}.js-plotly-plot .plotly .cursor-n-resize{cursor:n-resize}.js-plotly-plot .plotly .cursor-ne-resize{cursor:ne-resize}.js-plotly-plot .plotly .cursor-grab{cursor:grab}.js-plotly-plot .plotly .modebar{position:absolute;top:2px;right:2px}.js-plotly-plot .plotly .ease-bg{transition:background-color .3s ease 0s}.js-plotly-plot .plotly .modebar--hover>:not(.watermark){opacity:0;transition:opacity .3s ease 0s}.js-plotly-plot .plotly:hover .modebar--hover .modebar-group{opacity:1}.js-plotly-plot .plotly .modebar-group{display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap}.js-plotly-plot .plotly .modebar-btn{position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box}.js-plotly-plot .plotly .modebar-btn svg{position:relative;top:2px}.js-plotly-plot .plotly .modebar.vertical{display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%}.js-plotly-plot .plotly .modebar.vertical svg{top:-1px}.js-plotly-plot .plotly .modebar.vertical .modebar-group{display:block;float:none;padding-left:0;padding-bottom:8px}.js-plotly-plot .plotly .modebar.vertical .modebar-group .modebar-btn{display:block;text-align:center}.js-plotly-plot .plotly [data-title]:after,.js-plotly-plot .plotly [data-title]:before{position:absolute;transform:translateZ(0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%}.js-plotly-plot .plotly [data-title]:hover:after,.js-plotly-plot .plotly [data-title]:hover:before{display:block;opacity:1}.js-plotly-plot .plotly [data-title]:before{content:"";position:absolute;background:rgba(0,0,0,0);z-index:1002;margin-top:-12px;border:6px solid rgba(0,0,0,0);border-bottom-color:#69738a;margin-right:-6px}.js-plotly-plot .plotly [data-title]:after{content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px}.js-plotly-plot .plotly .vertical [data-title]:after,.js-plotly-plot .plotly .vertical [data-title]:before{top:0;right:200%}.js-plotly-plot .plotly .vertical [data-title]:before{border:6px solid rgba(0,0,0,0);border-left-color:#69738a;margin-top:8px;margin-right:-30px}.plotly-notifier{font-family:Open Sans,verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px}.plotly-notifier p{margin:0}.plotly-notifier .notifier-note{min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;hyphens:auto}.plotly-notifier .notifier-close{color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:700;line-height:20px}.plotly-notifier .notifier-close:hover{color:#444;text-decoration:none;cursor:pointer}