Spaces:
Running
Running
Upload style.css
Browse files- css/style.css +255 -210
css/style.css
CHANGED
@@ -6,9 +6,20 @@
|
|
6 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
7 |
}
|
8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
body {
|
10 |
-
background-color:
|
11 |
-
color:
|
12 |
line-height: 1.6;
|
13 |
}
|
14 |
|
@@ -18,29 +29,9 @@ body {
|
|
18 |
height: 100vh;
|
19 |
display: flex;
|
20 |
flex-direction: column;
|
21 |
-
background-color:
|
22 |
-
|
23 |
-
|
24 |
-
/* Status Bar */
|
25 |
-
.status-bar {
|
26 |
-
display: flex;
|
27 |
-
justify-content: space-between;
|
28 |
-
align-items: center;
|
29 |
-
padding: 4px 16px;
|
30 |
-
background-color: #fff;
|
31 |
-
font-size: 14px;
|
32 |
-
height: 24px;
|
33 |
-
}
|
34 |
-
|
35 |
-
.status-icons {
|
36 |
-
display: flex;
|
37 |
-
gap: 8px;
|
38 |
-
align-items: center;
|
39 |
-
}
|
40 |
-
|
41 |
-
.network {
|
42 |
-
font-size: 12px;
|
43 |
-
color: #666;
|
44 |
}
|
45 |
|
46 |
/* Chat Header */
|
@@ -48,45 +39,61 @@ body {
|
|
48 |
display: flex;
|
49 |
justify-content: space-between;
|
50 |
align-items: center;
|
51 |
-
padding: 16px;
|
52 |
-
background-color:
|
53 |
-
border-bottom: 1px solid
|
|
|
|
|
54 |
}
|
55 |
|
56 |
.chat-header h1 {
|
57 |
font-size: 18px;
|
58 |
font-weight: 600;
|
|
|
59 |
}
|
60 |
|
61 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
62 |
background: none;
|
63 |
border: none;
|
64 |
-
font-size:
|
65 |
-
color:
|
66 |
cursor: pointer;
|
67 |
padding: 8px;
|
68 |
-
|
69 |
-
|
70 |
-
/* Chat Messages */
|
71 |
-
.chat-messages {
|
72 |
-
flex: 1;
|
73 |
-
overflow-y: auto;
|
74 |
-
padding: 16px;
|
75 |
display: flex;
|
76 |
-
flex-direction: column;
|
77 |
align-items: center;
|
78 |
justify-content: center;
|
|
|
|
|
|
|
79 |
}
|
80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
.welcome-message {
|
82 |
text-align: center;
|
83 |
-
max-width:
|
|
|
|
|
|
|
|
|
|
|
84 |
}
|
85 |
|
86 |
.welcome-logo {
|
87 |
-
width:
|
88 |
-
height:
|
89 |
-
margin-bottom:
|
90 |
border-radius: 50%;
|
91 |
object-fit: cover;
|
92 |
box-shadow: 0 2px 8px var(--shadow-color);
|
@@ -94,36 +101,104 @@ body {
|
|
94 |
|
95 |
.welcome-message h2 {
|
96 |
font-size: 24px;
|
97 |
-
margin-bottom:
|
98 |
-
color:
|
99 |
}
|
100 |
|
101 |
.welcome-message p {
|
102 |
-
color:
|
103 |
font-size: 16px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
104 |
}
|
105 |
|
106 |
/* Chat Input */
|
107 |
.chat-input {
|
108 |
padding: 16px;
|
109 |
-
background-color: #
|
110 |
-
border-top: 1px solid #
|
|
|
111 |
}
|
112 |
|
113 |
.input-container {
|
114 |
-
background-color: #
|
115 |
border-radius: 24px;
|
116 |
-
padding:
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
}
|
119 |
|
120 |
#message-input {
|
121 |
width: 100%;
|
122 |
border: none;
|
123 |
outline: none;
|
124 |
-
font-size:
|
125 |
padding: 8px 0;
|
126 |
background: transparent;
|
|
|
|
|
|
|
|
|
|
|
127 |
}
|
128 |
|
129 |
.input-actions {
|
@@ -131,80 +206,137 @@ body {
|
|
131 |
align-items: center;
|
132 |
justify-content: flex-end;
|
133 |
gap: 12px;
|
134 |
-
margin-
|
135 |
-
padding-top: 8px;
|
136 |
-
border-top: 1px solid #eee;
|
137 |
}
|
138 |
|
139 |
.more-btn, .send-btn {
|
140 |
background: none;
|
141 |
border: none;
|
142 |
padding: 8px;
|
143 |
-
color: #666;
|
144 |
cursor: pointer;
|
145 |
display: flex;
|
146 |
align-items: center;
|
147 |
justify-content: center;
|
148 |
-
|
|
|
149 |
}
|
150 |
|
151 |
-
.
|
152 |
-
|
153 |
-
color: white;
|
154 |
-
border-radius: 50%;
|
155 |
width: 32px;
|
156 |
height: 32px;
|
157 |
}
|
158 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
159 |
.send-btn i {
|
160 |
font-size: 16px;
|
161 |
}
|
162 |
|
163 |
-
|
164 |
-
|
165 |
-
|
|
|
|
|
166 |
}
|
167 |
|
168 |
-
.
|
169 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
}
|
171 |
|
172 |
/* Message Bubbles */
|
173 |
.message {
|
174 |
-
margin: 16px;
|
175 |
-
max-width:
|
176 |
animation: fadeIn 0.3s ease;
|
|
|
|
|
|
|
|
|
|
|
|
|
177 |
}
|
178 |
|
179 |
-
/* User message (question) styling */
|
180 |
.question-bubble {
|
181 |
-
background-color: #
|
182 |
color: #1a1a1a;
|
183 |
-
padding: 12px
|
184 |
-
border-radius:
|
185 |
-
|
|
|
186 |
font-size: 15px;
|
187 |
line-height: 1.5;
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
}
|
189 |
|
190 |
-
/* Bot message (answer) styling */
|
191 |
.answer-container {
|
192 |
display: flex;
|
193 |
-
gap:
|
194 |
-
|
195 |
-
|
196 |
}
|
197 |
|
198 |
.bot-icon {
|
199 |
flex-shrink: 0;
|
200 |
-
width:
|
201 |
-
height:
|
202 |
border-radius: 50%;
|
203 |
overflow: hidden;
|
204 |
background-color: transparent;
|
205 |
display: flex;
|
206 |
align-items: center;
|
207 |
justify-content: center;
|
|
|
208 |
}
|
209 |
|
210 |
.bot-icon img {
|
@@ -215,25 +347,34 @@ body {
|
|
215 |
}
|
216 |
|
217 |
.answer-content {
|
218 |
-
|
|
|
|
|
|
|
|
|
|
|
219 |
font-size: 15px;
|
220 |
line-height: 1.6;
|
221 |
-
|
222 |
}
|
223 |
|
|
|
224 |
.response-heading {
|
225 |
-
font-size:
|
226 |
font-weight: 600;
|
227 |
-
margin:
|
228 |
color: #1a1a1a;
|
|
|
|
|
229 |
}
|
230 |
|
231 |
.definition {
|
232 |
-
margin:
|
|
|
233 |
}
|
234 |
|
235 |
.term {
|
236 |
-
font-weight:
|
237 |
color: #1a1a1a;
|
238 |
}
|
239 |
|
@@ -242,7 +383,7 @@ body {
|
|
242 |
}
|
243 |
|
244 |
.numbered-list {
|
245 |
-
margin:
|
246 |
}
|
247 |
|
248 |
.list-item {
|
@@ -263,12 +404,14 @@ body {
|
|
263 |
}
|
264 |
|
265 |
.list-term {
|
266 |
-
font-weight:
|
267 |
color: #1a1a1a;
|
268 |
}
|
269 |
|
270 |
.list-definition {
|
271 |
color: #444;
|
|
|
|
|
272 |
}
|
273 |
|
274 |
.response-paragraph {
|
@@ -276,6 +419,14 @@ body {
|
|
276 |
color: #333;
|
277 |
}
|
278 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
279 |
/* Animations */
|
280 |
@keyframes fadeIn {
|
281 |
from {
|
@@ -288,17 +439,27 @@ body {
|
|
288 |
}
|
289 |
}
|
290 |
|
291 |
-
/* Dark
|
|
|
|
|
|
|
|
|
292 |
[data-theme="dark"] .question-bubble {
|
293 |
background-color: #2c2c2c;
|
294 |
-
color: #
|
295 |
}
|
296 |
|
297 |
[data-theme="dark"] .answer-content {
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
color: #e1e1e1;
|
|
|
299 |
}
|
300 |
|
301 |
-
[data-theme="dark"] .response-heading,
|
302 |
[data-theme="dark"] .term,
|
303 |
[data-theme="dark"] .number,
|
304 |
[data-theme="dark"] .list-term {
|
@@ -311,6 +472,10 @@ body {
|
|
311 |
color: #b4b4b4;
|
312 |
}
|
313 |
|
|
|
|
|
|
|
|
|
314 |
/* Typing indicator adjustments */
|
315 |
.typing-indicator {
|
316 |
background: transparent !important;
|
@@ -522,126 +687,6 @@ body {
|
|
522 |
margin: 8px 0;
|
523 |
}
|
524 |
|
525 |
-
/* Theme Variables */
|
526 |
-
:root {
|
527 |
-
--bg-color: #fff;
|
528 |
-
--text-color: #333;
|
529 |
-
--header-bg: #fff;
|
530 |
-
--input-bg: #f8f8f8;
|
531 |
-
--border-color: #eee;
|
532 |
-
--message-bg: #f1f3f4;
|
533 |
-
--message-text: #333;
|
534 |
-
--user-message-bg: #4285f4;
|
535 |
-
--user-message-text: #fff;
|
536 |
-
--hover-bg: #f5f5f5;
|
537 |
-
--icon-color: #666;
|
538 |
-
--secondary-text: #666;
|
539 |
-
--error-bg: #ffebee;
|
540 |
-
--error-border: #ffcdd2;
|
541 |
-
--error-text: #c62828;
|
542 |
-
--shadow-color: rgba(0, 0, 0, 0.1);
|
543 |
-
--overlay-bg: rgba(0, 0, 0, 0.5);
|
544 |
-
}
|
545 |
-
|
546 |
-
/* Dark Theme */
|
547 |
-
[data-theme="dark"] {
|
548 |
-
--bg-color: #1a1a1a;
|
549 |
-
--text-color: #fff;
|
550 |
-
--header-bg: #2d2d2d;
|
551 |
-
--input-bg: #2d2d2d;
|
552 |
-
--border-color: #404040;
|
553 |
-
--message-bg: #383838;
|
554 |
-
--message-text: #fff;
|
555 |
-
--user-message-bg: #4285f4;
|
556 |
-
--user-message-text: #fff;
|
557 |
-
--hover-bg: #404040;
|
558 |
-
--icon-color: #aaa;
|
559 |
-
--secondary-text: #aaa;
|
560 |
-
--error-bg: #421c1c;
|
561 |
-
--error-border: #692727;
|
562 |
-
--error-text: #ff8a8a;
|
563 |
-
--shadow-color: rgba(0, 0, 0, 0.3);
|
564 |
-
--overlay-bg: rgba(0, 0, 0, 0.7);
|
565 |
-
}
|
566 |
-
|
567 |
-
/* Apply Theme Variables */
|
568 |
-
body {
|
569 |
-
background-color: var(--bg-color);
|
570 |
-
color: var(--text-color);
|
571 |
-
}
|
572 |
-
|
573 |
-
.chat-header {
|
574 |
-
background-color: var(--header-bg);
|
575 |
-
border-bottom: 1px solid var(--border-color);
|
576 |
-
}
|
577 |
-
|
578 |
-
.chat-input {
|
579 |
-
background-color: var(--input-bg);
|
580 |
-
border-top: 1px solid var(--border-color);
|
581 |
-
}
|
582 |
-
|
583 |
-
.input-container {
|
584 |
-
background-color: var(--bg-color);
|
585 |
-
box-shadow: 0 2px 8px var(--shadow-color);
|
586 |
-
}
|
587 |
-
|
588 |
-
#message-input {
|
589 |
-
color: var(--text-color);
|
590 |
-
}
|
591 |
-
|
592 |
-
.bot-message {
|
593 |
-
background-color: var(--message-bg);
|
594 |
-
color: var(--message-text);
|
595 |
-
}
|
596 |
-
|
597 |
-
.menu-content {
|
598 |
-
background-color: var(--bg-color);
|
599 |
-
}
|
600 |
-
|
601 |
-
/* Header Actions */
|
602 |
-
.header-actions {
|
603 |
-
display: flex;
|
604 |
-
gap: 8px;
|
605 |
-
align-items: center;
|
606 |
-
}
|
607 |
-
|
608 |
-
.theme-toggle-btn {
|
609 |
-
background: none;
|
610 |
-
border: none;
|
611 |
-
font-size: 20px;
|
612 |
-
color: var(--icon-color);
|
613 |
-
cursor: pointer;
|
614 |
-
padding: 8px;
|
615 |
-
transition: color 0.2s ease;
|
616 |
-
}
|
617 |
-
|
618 |
-
.theme-toggle-btn:hover {
|
619 |
-
color: var(--text-color);
|
620 |
-
}
|
621 |
-
|
622 |
-
/* Update existing styles to use variables */
|
623 |
-
.menu-btn, .new-chat-btn {
|
624 |
-
color: var(--icon-color);
|
625 |
-
}
|
626 |
-
|
627 |
-
.menu-btn:hover, .new-chat-btn:hover {
|
628 |
-
color: var(--text-color);
|
629 |
-
}
|
630 |
-
|
631 |
-
.welcome-message h2 {
|
632 |
-
color: var(--text-color);
|
633 |
-
}
|
634 |
-
|
635 |
-
.welcome-message p {
|
636 |
-
color: var(--secondary-text);
|
637 |
-
}
|
638 |
-
|
639 |
-
.error-message {
|
640 |
-
background-color: var(--error-bg);
|
641 |
-
color: var(--error-text);
|
642 |
-
border-color: var(--error-border);
|
643 |
-
}
|
644 |
-
|
645 |
/* Conversation Overlay Styles */
|
646 |
.conversation-overlay {
|
647 |
position: fixed;
|
|
|
6 |
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
7 |
}
|
8 |
|
9 |
+
:root {
|
10 |
+
--primary-color: #0084ff;
|
11 |
+
--secondary-color: #e7f2ff;
|
12 |
+
--text-color: #333;
|
13 |
+
--text-light: #777;
|
14 |
+
--bg-color: #fff;
|
15 |
+
--bg-light: #f5f7f9;
|
16 |
+
--border-color: #eaeaea;
|
17 |
+
--shadow-color: rgba(0, 0, 0, 0.1);
|
18 |
+
}
|
19 |
+
|
20 |
body {
|
21 |
+
background-color: var(--bg-light);
|
22 |
+
color: var(--text-color);
|
23 |
line-height: 1.6;
|
24 |
}
|
25 |
|
|
|
29 |
height: 100vh;
|
30 |
display: flex;
|
31 |
flex-direction: column;
|
32 |
+
background-color: var(--bg-color);
|
33 |
+
position: relative;
|
34 |
+
box-shadow: 0 0 20px var(--shadow-color);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
}
|
36 |
|
37 |
/* Chat Header */
|
|
|
39 |
display: flex;
|
40 |
justify-content: space-between;
|
41 |
align-items: center;
|
42 |
+
padding: 16px 20px;
|
43 |
+
background-color: var(--bg-color);
|
44 |
+
border-bottom: 1px solid var(--border-color);
|
45 |
+
box-shadow: 0 2px 8px var(--shadow-color);
|
46 |
+
z-index: 10;
|
47 |
}
|
48 |
|
49 |
.chat-header h1 {
|
50 |
font-size: 18px;
|
51 |
font-weight: 600;
|
52 |
+
color: var(--text-color);
|
53 |
}
|
54 |
|
55 |
+
.header-actions {
|
56 |
+
display: flex;
|
57 |
+
align-items: center;
|
58 |
+
gap: 12px;
|
59 |
+
}
|
60 |
+
|
61 |
+
.menu-btn, .new-chat-btn, .theme-toggle-btn {
|
62 |
background: none;
|
63 |
border: none;
|
64 |
+
font-size: 18px;
|
65 |
+
color: var(--text-light);
|
66 |
cursor: pointer;
|
67 |
padding: 8px;
|
68 |
+
border-radius: 50%;
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
display: flex;
|
|
|
70 |
align-items: center;
|
71 |
justify-content: center;
|
72 |
+
width: 36px;
|
73 |
+
height: 36px;
|
74 |
+
transition: all 0.2s ease;
|
75 |
}
|
76 |
|
77 |
+
.menu-btn:hover, .new-chat-btn:hover, .theme-toggle-btn:hover {
|
78 |
+
background-color: var(--bg-light);
|
79 |
+
color: var(--text-color);
|
80 |
+
}
|
81 |
+
|
82 |
+
/* Welcome Message */
|
83 |
.welcome-message {
|
84 |
text-align: center;
|
85 |
+
max-width: 400px;
|
86 |
+
padding: 24px;
|
87 |
+
background-color: var(--bg-color);
|
88 |
+
border-radius: 12px;
|
89 |
+
box-shadow: 0 2px 12px var(--shadow-color);
|
90 |
+
margin: auto;
|
91 |
}
|
92 |
|
93 |
.welcome-logo {
|
94 |
+
width: 90px;
|
95 |
+
height: 90px;
|
96 |
+
margin-bottom: 20px;
|
97 |
border-radius: 50%;
|
98 |
object-fit: cover;
|
99 |
box-shadow: 0 2px 8px var(--shadow-color);
|
|
|
101 |
|
102 |
.welcome-message h2 {
|
103 |
font-size: 24px;
|
104 |
+
margin-bottom: 12px;
|
105 |
+
color: var(--text-color);
|
106 |
}
|
107 |
|
108 |
.welcome-message p {
|
109 |
+
color: var(--text-light);
|
110 |
font-size: 16px;
|
111 |
+
margin-bottom: 16px;
|
112 |
+
}
|
113 |
+
|
114 |
+
.context-info {
|
115 |
+
font-size: 13px;
|
116 |
+
color: var(--text-light);
|
117 |
+
background-color: var(--bg-light);
|
118 |
+
padding: 8px 12px;
|
119 |
+
border-radius: 8px;
|
120 |
+
margin-top: 16px;
|
121 |
+
}
|
122 |
+
|
123 |
+
/* Dark Theme */
|
124 |
+
[data-theme="dark"] {
|
125 |
+
--primary-color: #1a91ff;
|
126 |
+
--secondary-color: #2c4763;
|
127 |
+
--text-color: #e1e1e1;
|
128 |
+
--text-light: #999;
|
129 |
+
--bg-color: #1a1a1a;
|
130 |
+
--bg-light: #2c2c2c;
|
131 |
+
--border-color: #333;
|
132 |
+
--shadow-color: rgba(0, 0, 0, 0.3);
|
133 |
+
}
|
134 |
+
|
135 |
+
/* Status Bar */
|
136 |
+
.status-bar {
|
137 |
+
display: flex;
|
138 |
+
justify-content: space-between;
|
139 |
+
align-items: center;
|
140 |
+
padding: 4px 16px;
|
141 |
+
background-color: #fff;
|
142 |
+
font-size: 14px;
|
143 |
+
height: 24px;
|
144 |
+
}
|
145 |
+
|
146 |
+
.status-icons {
|
147 |
+
display: flex;
|
148 |
+
gap: 8px;
|
149 |
+
align-items: center;
|
150 |
+
}
|
151 |
+
|
152 |
+
.network {
|
153 |
+
font-size: 12px;
|
154 |
+
color: #666;
|
155 |
+
}
|
156 |
+
|
157 |
+
/* Chat Messages */
|
158 |
+
.chat-messages {
|
159 |
+
flex: 1;
|
160 |
+
overflow-y: auto;
|
161 |
+
padding: 16px;
|
162 |
+
display: flex;
|
163 |
+
flex-direction: column;
|
164 |
+
background-color: #f5f7f9;
|
165 |
}
|
166 |
|
167 |
/* Chat Input */
|
168 |
.chat-input {
|
169 |
padding: 16px;
|
170 |
+
background-color: #fff;
|
171 |
+
border-top: 1px solid #eaeaea;
|
172 |
+
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
|
173 |
}
|
174 |
|
175 |
.input-container {
|
176 |
+
background-color: #f5f7f9;
|
177 |
border-radius: 24px;
|
178 |
+
padding: 10px 16px;
|
179 |
+
display: flex;
|
180 |
+
align-items: center;
|
181 |
+
transition: all 0.3s ease;
|
182 |
+
}
|
183 |
+
|
184 |
+
.input-container:focus-within {
|
185 |
+
background-color: #fff;
|
186 |
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
|
187 |
+
border: 1px solid #d0e3ff;
|
188 |
}
|
189 |
|
190 |
#message-input {
|
191 |
width: 100%;
|
192 |
border: none;
|
193 |
outline: none;
|
194 |
+
font-size: 15px;
|
195 |
padding: 8px 0;
|
196 |
background: transparent;
|
197 |
+
color: #333;
|
198 |
+
}
|
199 |
+
|
200 |
+
#message-input::placeholder {
|
201 |
+
color: #999;
|
202 |
}
|
203 |
|
204 |
.input-actions {
|
|
|
206 |
align-items: center;
|
207 |
justify-content: flex-end;
|
208 |
gap: 12px;
|
209 |
+
margin-left: 10px;
|
|
|
|
|
210 |
}
|
211 |
|
212 |
.more-btn, .send-btn {
|
213 |
background: none;
|
214 |
border: none;
|
215 |
padding: 8px;
|
|
|
216 |
cursor: pointer;
|
217 |
display: flex;
|
218 |
align-items: center;
|
219 |
justify-content: center;
|
220 |
+
border-radius: 50%;
|
221 |
+
transition: all 0.2s ease;
|
222 |
}
|
223 |
|
224 |
+
.more-btn {
|
225 |
+
color: #666;
|
|
|
|
|
226 |
width: 32px;
|
227 |
height: 32px;
|
228 |
}
|
229 |
|
230 |
+
.more-btn:hover {
|
231 |
+
background-color: #eaeaea;
|
232 |
+
color: #333;
|
233 |
+
}
|
234 |
+
|
235 |
+
.send-btn {
|
236 |
+
background-color: #0084ff;
|
237 |
+
color: white;
|
238 |
+
width: 36px;
|
239 |
+
height: 36px;
|
240 |
+
}
|
241 |
+
|
242 |
+
.send-btn:hover {
|
243 |
+
background-color: #0078e7;
|
244 |
+
transform: scale(1.05);
|
245 |
+
}
|
246 |
+
|
247 |
+
.send-btn:disabled {
|
248 |
+
background-color: #ccc;
|
249 |
+
cursor: not-allowed;
|
250 |
+
opacity: 0.7;
|
251 |
+
transform: none;
|
252 |
+
}
|
253 |
+
|
254 |
.send-btn i {
|
255 |
font-size: 16px;
|
256 |
}
|
257 |
|
258 |
+
/* Dark Theme Chat Input */
|
259 |
+
[data-theme="dark"] .chat-input {
|
260 |
+
background-color: #1e1e1e;
|
261 |
+
border-color: #333;
|
262 |
+
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
|
263 |
}
|
264 |
|
265 |
+
[data-theme="dark"] .input-container {
|
266 |
+
background-color: #2c2c2c;
|
267 |
+
}
|
268 |
+
|
269 |
+
[data-theme="dark"] .input-container:focus-within {
|
270 |
+
background-color: #333;
|
271 |
+
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
|
272 |
+
border-color: #555;
|
273 |
+
}
|
274 |
+
|
275 |
+
[data-theme="dark"] #message-input {
|
276 |
+
color: #e1e1e1;
|
277 |
+
}
|
278 |
+
|
279 |
+
[data-theme="dark"] #message-input::placeholder {
|
280 |
+
color: #777;
|
281 |
+
}
|
282 |
+
|
283 |
+
[data-theme="dark"] .more-btn {
|
284 |
+
color: #aaa;
|
285 |
+
}
|
286 |
+
|
287 |
+
[data-theme="dark"] .more-btn:hover {
|
288 |
+
background-color: #444;
|
289 |
+
color: #fff;
|
290 |
}
|
291 |
|
292 |
/* Message Bubbles */
|
293 |
.message {
|
294 |
+
margin: 16px 0;
|
295 |
+
max-width: 85%;
|
296 |
animation: fadeIn 0.3s ease;
|
297 |
+
position: relative;
|
298 |
+
}
|
299 |
+
|
300 |
+
/* User Message Styling */
|
301 |
+
.message.user-message {
|
302 |
+
align-self: flex-start;
|
303 |
}
|
304 |
|
|
|
305 |
.question-bubble {
|
306 |
+
background-color: #fff;
|
307 |
color: #1a1a1a;
|
308 |
+
padding: 12px 16px;
|
309 |
+
border-radius: 18px;
|
310 |
+
border-top-left-radius: 4px;
|
311 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
312 |
font-size: 15px;
|
313 |
line-height: 1.5;
|
314 |
+
position: relative;
|
315 |
+
}
|
316 |
+
|
317 |
+
/* Bot Message Styling */
|
318 |
+
.message.bot-message {
|
319 |
+
align-self: flex-end;
|
320 |
}
|
321 |
|
|
|
322 |
.answer-container {
|
323 |
display: flex;
|
324 |
+
gap: 12px;
|
325 |
+
align-items: flex-start;
|
326 |
+
margin-left: auto;
|
327 |
}
|
328 |
|
329 |
.bot-icon {
|
330 |
flex-shrink: 0;
|
331 |
+
width: 36px;
|
332 |
+
height: 36px;
|
333 |
border-radius: 50%;
|
334 |
overflow: hidden;
|
335 |
background-color: transparent;
|
336 |
display: flex;
|
337 |
align-items: center;
|
338 |
justify-content: center;
|
339 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
340 |
}
|
341 |
|
342 |
.bot-icon img {
|
|
|
347 |
}
|
348 |
|
349 |
.answer-content {
|
350 |
+
background-color: #e7f2ff;
|
351 |
+
padding: 16px;
|
352 |
+
border-radius: 18px;
|
353 |
+
border-top-right-radius: 4px;
|
354 |
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
355 |
+
color: #333;
|
356 |
font-size: 15px;
|
357 |
line-height: 1.6;
|
358 |
+
max-width: calc(100% - 48px);
|
359 |
}
|
360 |
|
361 |
+
/* Response Formatting */
|
362 |
.response-heading {
|
363 |
+
font-size: 20px;
|
364 |
font-weight: 600;
|
365 |
+
margin: 16px 0 12px;
|
366 |
color: #1a1a1a;
|
367 |
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
368 |
+
padding-bottom: 8px;
|
369 |
}
|
370 |
|
371 |
.definition {
|
372 |
+
margin: 12px 0;
|
373 |
+
line-height: 1.6;
|
374 |
}
|
375 |
|
376 |
.term {
|
377 |
+
font-weight: 600;
|
378 |
color: #1a1a1a;
|
379 |
}
|
380 |
|
|
|
383 |
}
|
384 |
|
385 |
.numbered-list {
|
386 |
+
margin: 12px 0;
|
387 |
}
|
388 |
|
389 |
.list-item {
|
|
|
404 |
}
|
405 |
|
406 |
.list-term {
|
407 |
+
font-weight: 600;
|
408 |
color: #1a1a1a;
|
409 |
}
|
410 |
|
411 |
.list-definition {
|
412 |
color: #444;
|
413 |
+
display: block;
|
414 |
+
margin-top: 4px;
|
415 |
}
|
416 |
|
417 |
.response-paragraph {
|
|
|
419 |
color: #333;
|
420 |
}
|
421 |
|
422 |
+
/* Message Timestamp */
|
423 |
+
.message-time {
|
424 |
+
font-size: 11px;
|
425 |
+
color: #999;
|
426 |
+
margin-top: 4px;
|
427 |
+
text-align: right;
|
428 |
+
}
|
429 |
+
|
430 |
/* Animations */
|
431 |
@keyframes fadeIn {
|
432 |
from {
|
|
|
439 |
}
|
440 |
}
|
441 |
|
442 |
+
/* Dark Theme Adjustments */
|
443 |
+
[data-theme="dark"] .chat-messages {
|
444 |
+
background-color: #1a1a1a;
|
445 |
+
}
|
446 |
+
|
447 |
[data-theme="dark"] .question-bubble {
|
448 |
background-color: #2c2c2c;
|
449 |
+
color: #e1e1e1;
|
450 |
}
|
451 |
|
452 |
[data-theme="dark"] .answer-content {
|
453 |
+
background-color: #383838;
|
454 |
+
color: #e1e1e1;
|
455 |
+
border-color: #444;
|
456 |
+
}
|
457 |
+
|
458 |
+
[data-theme="dark"] .response-heading {
|
459 |
color: #e1e1e1;
|
460 |
+
border-color: rgba(255, 255, 255, 0.1);
|
461 |
}
|
462 |
|
|
|
463 |
[data-theme="dark"] .term,
|
464 |
[data-theme="dark"] .number,
|
465 |
[data-theme="dark"] .list-term {
|
|
|
472 |
color: #b4b4b4;
|
473 |
}
|
474 |
|
475 |
+
[data-theme="dark"] .message-time {
|
476 |
+
color: #777;
|
477 |
+
}
|
478 |
+
|
479 |
/* Typing indicator adjustments */
|
480 |
.typing-indicator {
|
481 |
background: transparent !important;
|
|
|
687 |
margin: 8px 0;
|
688 |
}
|
689 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
/* Conversation Overlay Styles */
|
691 |
.conversation-overlay {
|
692 |
position: fixed;
|