-
Notifications
You must be signed in to change notification settings - Fork 22
/
styles.css
589 lines (512 loc) · 12 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
/* General Styles */
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-thumb {
background-color: #3c3c3c;
border-radius: 4px;
}
::-webkit-scrollbar-track {
background-color: #1a1a1a;
}
body {
font-family: "Poppins", sans-serif;
background-color: #121212;
color: #e0e0e0;
margin: 0;
padding: 0;
height: 100vh;
overflow: hidden;
}
.container{
display: flex;
justify-content: center; /* Center the content horizontally */
align-items: center; /* Vertically aligns items in the center */
width: 100%; /* Ensures the container takes up full width */
padding: 0 15px; /* Add some horizontal padding */
box-sizing: border-box; /* Include padding in the width calculation */
}
/* Chat Container */
#chat-container {
display: flex;
flex-direction: column;
height: 100vh;
max-width: 100%;
margin: auto;
background-color: #070707;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
overflow: hidden;
position: relative;
}
/* Chat Heading */
#chat-heading {
color: #FFF;
text-align: center;
font-size: 24px;
font-style: normal;
font-weight: 500;
line-height: normal;
width: 100%; /* Ensure the heading takes full width */
margin: 0; /* Remove any default margins */
padding: 20px 0; /* Add some vertical padding */
}
/* Input Container */
.input-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px;
background: #1E1F20;
border-radius: 25px;
/* Match the background color with the chat container */
position: absolute;
bottom: 20px;
left: 0;
right: 0;
width: 85%;
min-width: 200px;
max-width: 1200px;
margin: auto;
height: 30px; /* Increased container height to match icon and input */
}
/* Input Field */
#input {
flex: 1;
/* Ensures the input field takes up available space */
border: none;
/* Matching rounded corners */
background-color: #1E1F20;
/* Background color for better contrast */
color: #e0e0e0;
font-size: 16px;
resize: none;
/* Prevent resizing */
outline: none;
/* Remove default focus outline */
height: 30px; /* Set fixed height for better alignment */
}
/* Send Icon */
#send-icon {
font-size: 20px;
cursor: pointer;
border-radius: 50%;
display: flex;
align-items: center; /* Align icon vertically */
justify-content: center; /* Center icon horizontally */
height: 28px;
width: 28px; /* Set width and height to match a circular button */
margin-right: 3px;
}
/* Hover and Active States for Icon */
.input-icons:hover {
transform: scale(1.05);
filter: brightness(150%);
}
.input-icons:active {
transform: scale(0.98);
}
/* Responsive Styles for Mobile Devices */
@media (max-width: 768px) {
#input {
padding: 5px;
font-size: 14px;
border-radius: 15px;
margin: 2px;
}
.input-container {
padding: 5px;
height: 30px; /* Adjust container height for smaller screens */
}
#send-icon {
font-size: 20px; /* Adjust icon size for smaller screens */
height: 28px;
width: 28px; /* Adjust icon button size */
}
}
/* Focus State for Input Field */
#input:focus {
background-color: #1E1F20;
outline: none;
}
/*Theme Button Added*/
#theme-button {
position: absolute; /* Position the theme button absolutely */
right: 10px; /* Align to the right */
top: 15px; /* Align to the top */
width: 40px;
height: 40px;
border-radius: 4px;
margin-left: auto;
margin-right: 10px;
display: flex; /* Use flexbox to center content */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
cursor: pointer;
}
/*Image inside the theme button */
#theme-button img{
height:70%;
width:70%;
object-fit: cover;
}
/* Chat Container */
#chat {
display: flex;
flex-direction: column;
flex: 1;
padding: 15px;
padding-bottom: 80px;
overflow-y: auto;
}
/* User Messages */
#chat .user {
align-self: flex-end;
/* Align user messages to the right */
background-color: #25282c;
color: #80b7ff;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
border-radius: 20px 20px 0 20px;
padding: 12px 20px;
margin: 8px 0;
max-width: 80%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* Bot Messages */
#chat .bot {
align-self: flex-start;
/* Align bot messages to the left */
background-color: #25282c;
color: #fff;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
border-radius: 20px 20px 20px 0;
padding: 12px 20px;
margin: 8px 0;
max-width: 80%;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
#chat li {
margin-top: .6em;
line-height: 1.2em;
}
#chat strong {
color: #e0efff;
}
#chat li strong {
font-weight: normal !important;
color: #80b7ff;
}
/* #chat a {
color: rgb(233, 125, 255);
text-decoration: none;
} */
/* Code Formatting */
.code-block {
padding: 10px;
overflow-x: auto;
white-space: pre-wrap;
border-radius: 12px;
font-family: monospace;
font-size: 14px;
}
/* Code Block Container */
.code-block-container {
position: relative;
margin-bottom: 10px;
/* Space between code blocks */
}
.copy-button {
position: absolute;
top: 5px; right: 5px;
background-color: #07070760;
color: #F59C3860;
border: 1px solid #F59C3860;
border-radius: 4px;
padding: 3px 8px;
cursor: pointer;
font-size: 10px;
transition: background-color 0.3s ease-in-out, transform 0.2s ease;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
/* Subtle shadow for depth */
}
.copy-button:hover {
background-color: #070707;
color: #F59C38;
border: 1px solid #F59C38;
/* Slight scale effect on hover */
}
.copy-button:active {
transform: scale(0.98);
/* Slight scale effect when pressed */
}
/* Typing Indicator */
.typing-indicator {
display: inline-block;
font-size: 14px;
color: #888;
}
.typing-indicator::after {
content: '...';
display: inline-block;
animation: dots 1s steps(5, end) infinite;
}
@keyframes dots {
0%,
20% {
content: '...';
}
40% {
content: '..';
}
60% {
content: '.';
}
80%,
100% {
content: '';
}
}
/* Styles for Light Theme Added */
body.light-theme {
background-color: #ffffff; /* Light background */
color: #121212; /* Dark text */
}
body.light-theme #chat-container {
background-color: #f5f5f5; /* Light chat container */
border-color: #ddd;
}
body.light-theme #chat-heading {
color: #070707;
}
body.light-theme #chat .user {
background-color: #2979ff;
color: #fff;
}
body.light-theme #chat .bot {
background-color: #fff;
color: #121212;
}
body.light-theme .code-block-container {
border: 1px solid #ccc;
}
body.light-theme .copy-button {
color: #00000060;
background-color: #2979ff60;
border: none;
}
body.light-theme .copy-button:hover {
color: white;
background-color: #2979ff;
}
/* Scrollbar for Light Theme */
body.light-theme ::-webkit-scrollbar-thumb {
background-color: #ccc;
}
body.light-theme ::-webkit-scrollbar-track {
background-color: #f0f0f0;
}
body.light-theme #chat strong {
color: #002f62;
}
body.light-theme #chat li strong {
font-weight: normal !important;
color: #006eff;
}
#file-icon{
cursor: pointer;
border-radius: 50px;
height: 26px;
width: 26px;
margin-left: 3px;
margin-right: 5px;
}
#preview-container {
display: none;
position: absolute;
margin-bottom: 10px;
bottom: 65px;
width: 100%;
}
#preview-image {
max-width: 200px;
max-height: 100px;
border: 1px solid #ddd;
border-radius: 5px;
}
#remove-file {
position: absolute;
top: 10px;
right: 10px;
background: red;
color: white;
border: none;
border-radius: 50%;
cursor: pointer;
width: 20px;
height: 20px;
font-size: 14px;
text-align: center;
}
.input-container {
display: flex;
align-items: center;
padding: 10px;
}
#send-button {
background-color: blue;
color: white;
padding: 10px;
border: none;
border-radius: 5px;
cursor: pointer;
}
#image-icon {
cursor: pointer;
font-size: 24px;
color: #333;
}
#file-icon-container{
font-size: 40px;
padding: 5px;
}
/* Modal styles */
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none; /* Hidden by default */
justify-content: center;
align-items: center;
border-radius: 10px;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
width: 80%;
max-width: 400px;
}
.modal-content {
padding: 30px;
border-radius: 10px;
text-align: center;
}
.modal-content p {
margin: 0 0 10px;
}
.modal-content button {
background-color: #2979ff;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.modal-content button:hover {
background-color: #1c54b2; /* Darker shade on hover */
}
/* Close button styles */
#close-modal {
z-index: 1001;
position: absolute; /* Position it relative to modal */
top: 10px;
right: 10px;
background: #d32f2f; /* A red color for visibility */
color: white;
border: none;
cursor: pointer;
font-size: 14px;
padding: 4px 8px;
text-align: center;
border-radius: 5px; /* Round edges */
transition: background-color 0.3s ease; /* Smooth transition */
}
#close-modal:hover {
background: #b71c1c; /* Darker red on hover */
}
.response-image{
width: 90px;
height: 90px;
}
/* Responsive Styles for Mobile Devices */
@media (max-width: 400px) {
#file-icon{
font-size: 16px;
cursor: pointer;
border-radius: 50px;
padding: 8px;
}
}
/* Modal styles */
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: none; /* Hidden by default */
justify-content: center;
align-items: center;
border-radius: 10px;
z-index: 1000;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
width: 80%;
max-width: 400px;
background-color: #1a1a1a;
}
/* Light Theme Modal Styles */
body.light-theme .modal {
background-color: #ffffff; /* Light background */
border: 1px solid #ddd; /* Light border */
}
body.light-theme .modal-content {
padding: 30px;
border-radius: 10px;
text-align: center;
color: #121212; /* Dark text for light theme */
}
body.light-theme .modal-content button {
background-color: #2979ff; /* Button color */
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
color: #fff; /* Text color for button */
}
body.light-theme .modal-content button:hover {
background-color: #1c54b2; /* Darker shade on hover */
}
/* Dark Theme Modal Styles */
body.dark-theme .modal {
background-color: #1f1f1f; /* Dark background */
border: 1px solid #333; /* Dark border */
}
body.dark-theme .modal-content {
padding: 30px;
border-radius: 10px;
text-align: center;
color: #e0e0e0; /* Light text for dark theme */
}
body.dark-theme .modal-content button {
background-color: #2979ff; /* Button color */
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s ease;
color: #fff; /* Text color for button */
}
body.dark-theme .modal-content button:hover {
background-color: #1c54b2; /* Darker shade on hover */
}
/* Close button styles */
#close-modal {
z-index: 1001;
position: absolute; /* Position it relative to modal */
top: 10px;
right: 10px;
background: #d32f2f; /* A red color for visibility */
color: white;
border: none;
cursor: pointer;
font-size: 14px;
padding: 4px 8px;
border-radius: 5px; /* Add border-radius for consistency */
}