jithenderchoudary commited on
Commit
3fe86c6
·
verified ·
1 Parent(s): 4c59466

Update static/style.css

Browse files
Files changed (1) hide show
  1. static/style.css +658 -14
static/style.css CHANGED
@@ -1,33 +1,677 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  body {
2
- font-family: Arial, sans-serif;
3
- background-color: #f5f5f5;
4
  margin: 0;
5
  padding: 0;
 
 
6
  }
7
 
8
  .chat-container {
9
- width: 60%;
 
 
10
  margin: 0 auto;
11
- padding: 20px;
 
12
  background-color: white;
13
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
 
 
14
  }
15
 
16
- .chat-box {
17
- max-height: 400px;
18
- overflow-y: scroll;
19
- margin-bottom: 10px;
20
- border: 1px solid #ddd;
 
 
 
 
 
 
 
21
  padding: 10px;
22
- background-color: #fafafa;
 
23
  }
24
 
25
- #user-input {
26
- width: 70%;
27
  padding: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
  }
29
 
30
- #send-btn {
 
31
  padding: 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  cursor: pointer;
 
 
 
 
33
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Hugging Face's logo
2
+ Hugging Face
3
+ Models
4
+ Datasets
5
+ Spaces
6
+ Posts
7
+ Docs
8
+ Enterprise
9
+ Pricing
10
+
11
+
12
+
13
+ Spaces:
14
+
15
+
16
+ Yaswanth56
17
+ /
18
+ chatbot10
19
+
20
+
21
+ like
22
+ 0
23
+ App
24
+ Files
25
+ Community
26
+ chatbot10
27
+ /
28
+ static
29
+ /
30
+ styles.css
31
+
32
+ lokesh341's picture
33
+ lokesh341
34
+ Update static/styles.css
35
+ d271012
36
+ verified
37
+ 18 days ago
38
+ raw
39
+
40
+ Copy download link
41
+ history
42
+ blame
43
+ contribute
44
+ delete
45
+ 11.5 kB
46
  body {
47
+ font-family: 'Arial', sans-serif;
 
48
  margin: 0;
49
  padding: 0;
50
+ background-color: #f0f2f5;
51
+ overflow-x: hidden;
52
  }
53
 
54
  .chat-container {
55
+ width: 100%;
56
+ max-width: 1200px;
57
+ height: 100vh;
58
  margin: 0 auto;
59
+ border: 1px solid #ccc;
60
+ border-radius: 8px;
61
  background-color: white;
62
+ display: flex;
63
+ flex-direction: column;
64
+ box-sizing: border-box;
65
  }
66
 
67
+ .chat-header {
68
+ background: linear-gradient(45deg, #0288d1, #03a9f4);
69
+ color: white;
70
+ padding: 12px;
71
+ text-align: center;
72
+ font-size: 1.25rem;
73
+ flex-shrink: 0;
74
+ }
75
+
76
+ .chat-messages {
77
+ flex: 1;
78
+ overflow-y: auto;
79
  padding: 10px;
80
+ box-sizing: border-box;
81
+ scroll-behavior: smooth;
82
  }
83
 
84
+ .bot-message, .user-message {
 
85
  padding: 10px;
86
+ margin: 8px 0;
87
+ border-radius: 8px;
88
+ max-width: 80%;
89
+ word-wrap: break-word;
90
+ font-size: 0.875rem;
91
+ animation: slideIn 0.3s ease;
92
+ }
93
+
94
+ .bot-message {
95
+ background-color: #e3f2fd;
96
+ }
97
+
98
+ .user-message {
99
+ background-color: #ffebee;
100
+ margin-left: auto;
101
+ text-align: right;
102
+ }
103
+
104
+ @keyframes slideIn {
105
+ from { transform: translateY(20px); opacity: 0; }
106
+ to { transform: translateY(0); opacity: 1; }
107
  }
108
 
109
+ .chat-input {
110
+ display: flex;
111
  padding: 10px;
112
+ border-top: 1px solid #ccc;
113
+ flex-shrink: 0;
114
+ background-color: white;
115
+ box-sizing: border-box;
116
+ position: sticky;
117
+ bottom: env(safe-area-inset-bottom);
118
+ }
119
+
120
+ .chat-input input {
121
+ flex: 1;
122
+ padding: 8px;
123
+ border: 1px solid #ccc;
124
+ border-radius: 8px;
125
+ font-size: 0.875rem;
126
+ min-height: 48px;
127
+ box-sizing: border-box;
128
+ }
129
+
130
+ .chat-input button {
131
+ padding: 8px 12px;
132
+ margin-left: 8px;
133
+ background-color: #ff8f00;
134
+ color: white;
135
+ border: none;
136
+ border-radius: 8px;
137
+ cursor: pointer;
138
+ font-size: 0.875rem;
139
+ min-height: 48px;
140
+ min-width: 80px;
141
+ transition: background-color 0.2s ease;
142
+ }
143
+
144
+ .chat-input button:hover {
145
+ background-color: #f57c00;
146
+ }
147
+
148
+ .items-grid {
149
+ display: grid;
150
+ grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
151
+ gap: 12px;
152
+ padding: 12px;
153
+ margin: 8px 0;
154
+ background-color: #f9f9f9;
155
+ border-radius: 8px;
156
+ }
157
+
158
+ .item-card {
159
+ background-color: white;
160
+ border: 1px solid #ddd;
161
+ border-radius: 8px;
162
+ padding: 12px;
163
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
164
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
165
+ }
166
+
167
+ .item-card:hover {
168
+ transform: scale(1.05);
169
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
170
+ }
171
+
172
+ .item-image {
173
+ width: 100%;
174
+ height: 120px;
175
+ object-fit: cover;
176
+ border-radius: 8px;
177
+ margin-bottom: 8px;
178
+ loading: lazy;
179
+ }
180
+
181
+ .item-content {
182
+ width: 100%;
183
+ }
184
+
185
+ .item-name {
186
+ font-size: 0.875rem;
187
+ font-weight: bold;
188
+ color: #333;
189
+ margin-bottom: 5px;
190
+ }
191
+
192
+ .item-field {
193
+ font-size: 0.75rem;
194
+ margin: 3px 0;
195
+ color: #555;
196
+ }
197
+
198
+ .item-field strong {
199
+ color: #0288d1;
200
+ }
201
+
202
+ .item-description {
203
+ font-size: 0.75rem;
204
+ margin: 5px 0;
205
+ color: #555;
206
+ }
207
+
208
+ .button-container {
209
+ display: flex;
210
+ gap: 8px;
211
+ margin-top: 8px;
212
+ }
213
+
214
+ .show-button, .add-button {
215
+ padding: 6px;
216
+ border: none;
217
+ border-radius: 8px;
218
+ cursor: pointer;
219
+ font-size: 0.75rem;
220
+ flex: 1;
221
+ min-width: 50px;
222
+ min-height: 36px;
223
+ transition: background-color 0.2s ease;
224
+ }
225
+
226
+ .show-button {
227
+ background-color: #0288d1;
228
+ color: white;
229
+ }
230
+
231
+ .show-button:hover {
232
+ background-color: #0277bd;
233
+ }
234
+
235
+ .add-button {
236
+ background-color: #4caf50;
237
+ color: white;
238
+ }
239
+
240
+ .add-button:hover {
241
+ background-color: #45a049;
242
+ }
243
+
244
+ .options-container {
245
+ display: flex;
246
+ flex-wrap: wrap;
247
+ gap: 8px;
248
+ margin: 8px 0;
249
+ }
250
+
251
+ .option-button {
252
+ padding: 8px 12px;
253
+ background-color: #7b1fa2;
254
+ color: white;
255
+ border: none;
256
+ border-radius: 8px;
257
+ cursor: pointer;
258
+ font-size: 0.875rem;
259
+ min-width: 80px;
260
+ min-height: 48px;
261
+ transition: opacity 0.2s ease;
262
+ }
263
+
264
+ .option-button.green { background-color: #4caf50; }
265
+ .option-button.red { background-color: #d32f2f; }
266
+ .option-button.gray { background-color: #616161; }
267
+ .option-button:hover { opacity: 0.9; }
268
+
269
+ .selection-box {
270
+ background-color: #e1f5fe;
271
+ padding: 12px;
272
+ border: 1px solid #0288d1;
273
+ border-radius: 8px;
274
+ margin: 8px 0;
275
+ font-size: 0.875rem;
276
+ display: flex;
277
+ flex-wrap: wrap;
278
+ align-items: center;
279
+ gap: 8px;
280
+ position: relative;
281
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
282
+ }
283
+
284
+ .selection-box::before {
285
+ content: "Selected Items";
286
+ position: sticky;
287
+ top: 0;
288
+ background: #0288d1;
289
+ color: white;
290
+ padding: 8px;
291
+ border-radius: 8px 8px 0 0;
292
+ font-size: 0.875rem;
293
+ font-weight: bold;
294
+ width: 100%;
295
+ box-sizing: border-box;
296
+ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
297
+ }
298
+
299
+ .selection-box span {
300
+ background-color: #bbdefb;
301
+ padding: 4px 10px;
302
+ border-radius: 8px;
303
+ font-size: 0.875rem;
304
+ }
305
+
306
+ .selected-item {
307
+ display: flex;
308
+ align-items: center;
309
+ background-color: #bbdefb;
310
+ padding: 4px 10px;
311
+ border-radius: 8px;
312
+ font-size: 0.75rem;
313
+ }
314
+
315
+ .selected-item-image {
316
+ width: 30px;
317
+ height: 30px;
318
+ object-fit: cover;
319
+ border-radius: 8px;
320
+ margin-right: 8px;
321
+ loading: lazy;
322
+ }
323
+
324
+ .submit-button {
325
+ padding: 8px 12px;
326
+ background-color: #0288d1;
327
+ color: white;
328
+ border: none;
329
+ border-radius: 8px;
330
  cursor: pointer;
331
+ font-size: 0.875rem;
332
+ min-width: 80px;
333
+ min-height: 48px;
334
+ transition: background-color 0.2s ease;
335
  }
336
+
337
+ .submit-button:hover {
338
+ background-color: #0277bd;
339
+ }
340
+
341
+ .remove-button {
342
+ padding: 4px 8px;
343
+ margin-left: 8px;
344
+ background-color: #d32f2f;
345
+ color: white;
346
+ border: none;
347
+ border-radius: 8px;
348
+ cursor: pointer;
349
+ font-size: 0.75rem;
350
+ min-height: 36px;
351
+ transition: background-color 0.2s ease;
352
+ }
353
+
354
+ .remove-button:hover {
355
+ background-color: #b71c1c;
356
+ }
357
+
358
+ .manual-input, .order-name-input {
359
+ padding: 6px;
360
+ border: 1px solid #0288d1;
361
+ border-radius: 8px;
362
+ font-size: 0.875rem;
363
+ width: 120px;
364
+ min-height: 48px;
365
+ }
366
+
367
+ .quantity-input {
368
+ padding: 6px;
369
+ border: 1px solid #0288d1;
370
+ border-radius: 8px;
371
+ font-size: 0.875rem;
372
+ width: 60px;
373
+ min-height: 48px;
374
+ }
375
+
376
+ .quantity-button {
377
+ padding: 4px 8px;
378
+ background-color: #0288d1;
379
+ color: white;
380
+ border: none;
381
+ border-radius: 8px;
382
+ cursor: pointer;
383
+ font-size: 0.75rem;
384
+ min-height: 36px;
385
+ transition: background-color 0.2s ease;
386
+ }
387
+
388
+ .quantity-button:hover {
389
+ background-color: #0277bd;
390
+ }
391
+
392
+ .spinner {
393
+ border: 4px solid #0288d1;
394
+ border-top: 4px solid transparent;
395
+ border-radius: 50%;
396
+ width: 24px;
397
+ height: 24px;
398
+ animation: spin 1s linear infinite;
399
+ margin: 10px auto;
400
+ }
401
+
402
+ @keyframes spin {
403
+ to { transform: rotate(360deg); }
404
+ }
405
+
406
+ .toast {
407
+ position: fixed;
408
+ bottom: 20px;
409
+ right: 20px;
410
+ background: #4caf50;
411
+ color: white;
412
+ padding: 10px;
413
+ border-radius: 8px;
414
+ font-size: 0.875rem;
415
+ animation: fadeInOut 3s ease forwards;
416
+ z-index: 1000;
417
+ }
418
+
419
+ @keyframes fadeInOut {
420
+ 0% { opacity: 0; transform: translateY(20px); }
421
+ 10%, 90% { opacity: 1; transform: translateY(0); }
422
+ 100% { opacity: 0; transform: translateY(20px); }
423
+ }
424
+
425
+ @media (max-width: 480px) {
426
+ .chat-container {
427
+ border-radius: 0;
428
+ height: calc(100vh - env(safe-area-inset-bottom));
429
+ }
430
+
431
+ .chat-header {
432
+ font-size: 1rem;
433
+ padding: 8px;
434
+ }
435
+
436
+ .chat-messages {
437
+ padding: 6px;
438
+ }
439
+
440
+ .bot-message, .user-message {
441
+ font-size: 0.75rem;
442
+ padding: 8px;
443
+ margin: 6px 0;
444
+ }
445
+
446
+ .chat-input input {
447
+ font-size: 0.75rem;
448
+ min-height: 48px;
449
+ padding: 6px;
450
+ }
451
+
452
+ .chat-input button {
453
+ font-size: 0.75rem;
454
+ min-height: 48px;
455
+ padding: 6px 10px;
456
+ min-width: 80px;
457
+ }
458
+
459
+ .items-grid {
460
+ grid-template-columns: 1fr;
461
+ gap: 8px;
462
+ padding: 8px;
463
+ }
464
+
465
+ .item-card {
466
+ max-width: 100%;
467
+ }
468
+
469
+ .item-image {
470
+ height: 100px;
471
+ }
472
+
473
+ .item-name {
474
+ font-size: 0.75rem;
475
+ }
476
+
477
+ .item-field, .item-description {
478
+ font-size: 0.75rem;
479
+ }
480
+
481
+ .show-button, .add-button, .quantity-button {
482
+ font-size: 0.75rem;
483
+ padding: 4px;
484
+ min-width: 40px;
485
+ min-height: 36px;
486
+ }
487
+
488
+ .options-container {
489
+ flex-direction: column;
490
+ align-items: stretch;
491
+ gap: 6px;
492
+ }
493
+
494
+ .option-button {
495
+ font-size: 0.75rem;
496
+ padding: 6px 10px;
497
+ min-width: 100%;
498
+ min-height: 48px;
499
+ }
500
+
501
+ .selection-box {
502
+ padding: 8px;
503
+ gap: 6px;
504
+ }
505
+
506
+ .selection-box::before {
507
+ font-size: 0.75rem;
508
+ padding: 6px;
509
+ }
510
+
511
+ .selection-box span {
512
+ font-size: 0.75rem;
513
+ padding: 3px 8px;
514
+ }
515
+
516
+ .selected-item {
517
+ font-size: 0.75rem;
518
+ padding: 3px 8px;
519
+ }
520
+
521
+ .selected-item-image {
522
+ width: 24px;
523
+ height: 24px;
524
+ }
525
+
526
+ .submit-button {
527
+ font-size: 0.75rem;
528
+ padding: 6px 10px;
529
+ min-width: 80px;
530
+ min-height: 48px;
531
+ }
532
+
533
+ .remove-button {
534
+ font-size: 0.75rem;
535
+ padding: 3px 6px;
536
+ min-height: 36px;
537
+ }
538
+
539
+ .manual-input, .order-name-input {
540
+ width: 100px;
541
+ font-size: 0.75rem;
542
+ padding: 4px;
543
+ min-height: 48px;
544
+ }
545
+
546
+ .quantity-input {
547
+ width: 50px;
548
+ font-size: 0.75rem;
549
+ padding: 4px;
550
+ min-height: 48px;
551
+ }
552
+ }
553
+
554
+ @media (min-width: 481px) and (max-width: 768px) {
555
+ .chat-container {
556
+ max-width: 100%;
557
+ }
558
+
559
+ .chat-header {
560
+ font-size: 1.125rem;
561
+ }
562
+
563
+ .chat-messages {
564
+ padding: 8px;
565
+ }
566
+
567
+ .bot-message, .user-message {
568
+ font-size: 0.875rem;
569
+ padding: 9px;
570
+ }
571
+
572
+ .chat-input input {
573
+ font-size: 0.875rem;
574
+ min-height: 48px;
575
+ }
576
+
577
+ .chat-input button {
578
+ font-size: 0.875rem;
579
+ min-height: 48px;
580
+ padding: 7px 11px;
581
+ }
582
+
583
+ .items-grid {
584
+ grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
585
+ gap: 10px;
586
+ }
587
+
588
+ .item-image {
589
+ height: 110px;
590
+ }
591
+
592
+ .item-name {
593
+ font-size: 0.875rem;
594
+ }
595
+
596
+ .item-field, .item-description {
597
+ font-size: 0.75rem;
598
+ }
599
+
600
+ .show-button, .add-button, .quantity-button {
601
+ font-size: 0.75rem;
602
+ padding: 5px;
603
+ min-width: 45px;
604
+ min-height: 36px;
605
+ }
606
+
607
+ .option-button {
608
+ font-size: 0.875rem;
609
+ padding: 7px 11px;
610
+ min-height: 48px;
611
+ }
612
+
613
+ .selection-box {
614
+ padding: 10px;
615
+ gap: 7px;
616
+ }
617
+
618
+ .selection-box span {
619
+ font-size: 0.875rem;
620
+ }
621
+
622
+ .selected-item {
623
+ font-size: 0.75rem;
624
+ }
625
+
626
+ .selected-item-image {
627
+ width: 28px;
628
+ height: 28px;
629
+ }
630
+
631
+ .submit-button {
632
+ font-size: 0.875rem;
633
+ padding: 7px 11px;
634
+ min-height: 48px;
635
+ }
636
+
637
+ .remove-button {
638
+ font-size: 0.75rem;
639
+ padding: 4px 7px;
640
+ min-height: 36px;
641
+ }
642
+
643
+ .manual-input, .order-name-input {
644
+ width: 110px;
645
+ font-size: 0.875rem;
646
+ min-height: 48px;
647
+ }
648
+
649
+ .quantity-input {
650
+ width: 55px;
651
+ font-size: 0.875rem;
652
+ min-height: 48px;
653
+ }
654
+ }
655
+
656
+ @media (min-width: 769px) {
657
+ .chat-container {
658
+ display: grid;
659
+ grid-template-columns: 1fr 1fr;
660
+ gap: 10px;
661
+ }
662
+
663
+ .chat-messages, .chat-input {
664
+ grid-column: 1 / 2;
665
+ }
666
+
667
+ .suggestions-list, .ingredients-list {
668
+ grid-column: 2 / 3;
669
+ }
670
+
671
+ .selection-box {
672
+ grid-column: 2 / 3;
673
+ grid-row: 1 / 3;
674
+ }
675
+ }
676
+
677
+