@@ -135,34 +135,34 @@ function Ai() {
135135 ] ;
136136
137137 return (
138- < div className = "fixed bottom-6 left -6 z-50 " >
138+ < div className = "fixed bottom-6 right -6 z-40 " >
139139 { /* AI Assistant Robot */ }
140140 < div
141141 className = "relative cursor-pointer group"
142142 onClick = { handleRobotClick }
143143 >
144- < div className = "absolute -top-2 -right-2 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs animate-pulse" >
144+ < div className = "absolute -top-2 -right-2 bg-[#EF4444] text-white rounded-full w-5 h-5 flex items-center justify-center text-xs animate-pulse" >
145145 < MessageCircle size = { 12 } />
146146 </ div >
147147 < img
148148 src = { robot }
149149 alt = "AI Assistant Robot"
150- className = { ` w-20 h-20 transition-all duration-300 ${ activeAi ? 'scale-110' : 'scale-100' } group-hover:scale-110` }
151- style = { { filter : activeAi ? "drop-shadow(0 0 10px #00d2fc )" : "drop-shadow(0 4px 8px rgba(0,0,0,0.2))" } }
150+ className = " w-20 h-20 transition-all duration-300"
151+ style = { { filter : activeAi ? "drop-shadow(0 4px 6px rgba(37, 99, 235, 0.4) )" : "drop-shadow(0 4px 8px rgba(0,0,0,0.2))" } }
152152 />
153- < div className = "absolute bottom-0 left-1/2 transform -translate-x-1/2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded-full whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-300" >
153+ < div className = "absolute bottom-0 left-1/2 transform -translate-x-1/2 bg-black bg-opacity-70 text-white text-xs px-2 py-1 rounded-full whitespace-nowrap opacity-0 group-hover:opacity-100 transition-opacity duration-300" style = { { fontFamily : 'Inter, sans-serif' } } >
154154 AI Assistant
155155 </ div >
156156 </ div >
157157
158158 { /* Chat Interface */ }
159159 { showChat && (
160- < div className = "absolute bottom-24 left -0 w-80 h-96 bg-white rounded-xl shadow-xl overflow-hidden border border-gray-200" >
160+ < div className = "absolute bottom-24 right -0 w-80 h-96 bg-white dark:bg-[#121826] rounded-xl shadow-xl overflow-hidden border border-gray-200 dark:border-gray-700 " >
161161 { /* Chat Header */ }
162- < div className = "bg-gradient-to-r from-blue-600 to-indigo-700 text-white p-4 flex justify-between items-center" >
162+ < div className = "bg-[#2563EB] text-white p-4 flex justify-between items-center" >
163163 < div className = "flex items-center space-x-2" >
164164 < div className = "w-3 h-3 bg-green-400 rounded-full animate-pulse" > </ div >
165- < h3 className = "font-semibold" > RIVETO AI Assistant</ h3 >
165+ < h3 className = "font-semibold" style = { { fontFamily : 'Inter, sans-serif' } } > RIVETO AI Assistant</ h3 >
166166 </ div >
167167 < button
168168 onClick = { closeChat }
@@ -175,7 +175,7 @@ function Ai() {
175175 { /* Chat Messages */ }
176176 < div
177177 ref = { chatContainerRef }
178- className = "h-64 overflow-y-auto p-4 bg-gray-50"
178+ className = "h-64 overflow-y-auto p-4 bg-gray-50 dark:bg-gray-800 "
179179 >
180180 { chatMessages . length === 0 ? (
181181 < div className = "text-center text-gray-500 my-8" >
@@ -221,14 +221,15 @@ function Ai() {
221221 </ div >
222222
223223 { /* Voice Control */ }
224- < div className = "p-3 border-t border-gray-200 bg-white flex justify-center" >
224+ < div className = "p-3 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-[#121826] flex justify-center" >
225225 < button
226226 onClick = { handleVoiceCommand }
227227 disabled = { isListening }
228228 className = { `flex items-center justify-center space-x-2 px-4 py-2 rounded-full text-white ${ isListening
229- ? 'bg-red-500 hover:bg-red-600'
230- : 'bg-blue-500 hover:bg-blue-600'
231- } transition-colors focus:outline-none focus:ring-2 focus:ring-blue-300`}
229+ ? 'bg-[#EF4444] hover:bg-red-600'
230+ : 'bg-[#2563EB] hover:bg-[#1d4ed8]'
231+ } transition-all focus:outline-none focus:ring-2 focus:ring-[#2563EB]/30`}
232+ style = { { fontFamily : 'Inter, sans-serif' } }
232233 >
233234 { isListening ? (
234235 < >
0 commit comments