akhaliq HF Staff commited on
Commit
a21a469
·
verified ·
1 Parent(s): 7d29472

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +420 -50
style.css CHANGED
@@ -1,76 +1,446 @@
1
  * {
2
- box-sizing: border-box;
3
- padding: 0;
4
- margin: 0;
5
- font-family: sans-serif;
6
  }
7
 
8
- html,
9
  body {
10
- height: 100%;
 
 
 
 
 
 
11
  }
12
 
13
- body {
14
- padding: 32px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  }
16
 
17
- body,
18
- #container {
19
- display: flex;
20
- flex-direction: column;
21
- justify-content: center;
22
- align-items: center;
23
  }
24
 
25
- #container {
26
- position: relative;
27
- gap: 0.4rem;
 
 
 
 
28
 
29
- width: 640px;
30
- height: 640px;
31
- max-width: 100%;
32
- max-height: 100%;
33
 
34
- border: 2px dashed #D1D5DB;
35
- border-radius: 0.75rem;
36
- overflow: hidden;
37
- cursor: pointer;
38
- margin: 1rem;
 
39
 
40
- background-size: 100% 100%;
41
- background-position: center;
42
- background-repeat: no-repeat;
43
- font-size: 18px;
 
 
 
 
44
  }
45
 
46
- #upload {
47
- display: none;
 
 
48
  }
49
 
50
- svg {
51
- pointer-events: none;
 
 
52
  }
53
 
54
- #example {
55
- font-size: 14px;
56
- text-decoration: underline;
57
- cursor: pointer;
 
 
 
 
58
  }
59
 
60
- #example:hover {
61
- color: #2563EB;
62
  }
63
 
64
- .bounding-box {
65
- position: absolute;
66
- box-sizing: border-box;
67
- border: solid 2px;
 
 
 
 
 
 
68
  }
69
 
70
- .bounding-box-label {
71
- color: white;
72
- position: absolute;
73
- font-size: 12px;
74
- margin: -16px 0 0 -2px;
75
- padding: 1px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
 
1
  * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
 
5
  }
6
 
 
7
  body {
8
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
9
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10
+ min-height: 100vh;
11
+ display: flex;
12
+ align-items: center;
13
+ justify-content: center;
14
+ padding: 20px;
15
  }
16
 
17
+ .container {
18
+ background: white;
19
+ border-radius: 20px;
20
+ box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
21
+ width: 100%;
22
+ max-width: 800px;
23
+ height: 90vh;
24
+ max-height: 700px;
25
+ display: flex;
26
+ flex-direction: column;
27
+ overflow: hidden;
28
+ }
29
+
30
+ .header {
31
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
32
+ color: white;
33
+ padding: 20px;
34
+ display: flex;
35
+ justify-content: space-between;
36
+ align-items: center;
37
+ }
38
+
39
+ .header-content h1 {
40
+ font-size: 24px;
41
+ font-weight: 600;
42
+ margin-bottom: 4px;
43
  }
44
 
45
+ .subtitle {
46
+ font-size: 14px;
47
+ opacity: 0.9;
 
 
 
48
  }
49
 
50
+ .built-with {
51
+ color: white;
52
+ text-decoration: none;
53
+ font-size: 12px;
54
+ opacity: 0.8;
55
+ transition: opacity 0.3s;
56
+ }
57
 
58
+ .built-with:hover {
59
+ opacity: 1;
60
+ text-decoration: underline;
61
+ }
62
 
63
+ .main-content {
64
+ flex: 1;
65
+ display: flex;
66
+ flex-direction: column;
67
+ overflow: hidden;
68
+ }
69
 
70
+ .settings-panel {
71
+ background: #f8f9fa;
72
+ padding: 15px;
73
+ display: flex;
74
+ gap: 15px;
75
+ flex-wrap: wrap;
76
+ align-items: center;
77
+ border-bottom: 1px solid #e0e0e0;
78
  }
79
 
80
+ .setting-group {
81
+ display: flex;
82
+ align-items: center;
83
+ gap: 8px;
84
  }
85
 
86
+ .setting-group label {
87
+ font-size: 14px;
88
+ color: #666;
89
+ font-weight: 500;
90
  }
91
 
92
+ .setting-group select {
93
+ padding: 6px 10px;
94
+ border: 1px solid #ddd;
95
+ border-radius: 6px;
96
+ background: white;
97
+ font-size: 14px;
98
+ cursor: pointer;
99
+ transition: border-color 0.3s;
100
  }
101
 
102
+ .setting-group select:hover {
103
+ border-color: #667eea;
104
  }
105
 
106
+ .clear-btn {
107
+ margin-left: auto;
108
+ padding: 6px 12px;
109
+ background: #dc3545;
110
+ color: white;
111
+ border: none;
112
+ border-radius: 6px;
113
+ font-size: 14px;
114
+ cursor: pointer;
115
+ transition: background-color 0.3s;
116
  }
117
 
118
+ .clear-btn:hover {
119
+ background: #c82333;
120
+ }
121
+
122
+ .chat-container {
123
+ flex: 1;
124
+ overflow: hidden;
125
+ position: relative;
126
+ }
127
+
128
+ .messages {
129
+ height: 100%;
130
+ overflow-y: auto;
131
+ padding: 20px;
132
+ display: flex;
133
+ flex-direction: column;
134
+ gap: 15px;
135
+ }
136
+
137
+ .message {
138
+ display: flex;
139
+ flex-direction: column;
140
+ max-width: 70%;
141
+ }
142
+
143
+ .user-message {
144
+ align-self: flex-end;
145
+ }
146
+
147
+ .bot-message {
148
+ align-self: flex-start;
149
+ }
150
+
151
+ .message-content {
152
+ padding: 12px 16px;
153
+ border-radius: 18px;
154
+ word-wrap: break-word;
155
+ }
156
+
157
+ .user-message .message-content {
158
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
159
+ color: white;
160
+ border-bottom-right-radius: 4px;
161
+ }
162
+
163
+ .bot-message .message-content {
164
+ background: #f1f3f5;
165
+ color: #333;
166
+ border-bottom-left-radius: 4px;
167
+ }
168
+
169
+ .message-content p {
170
+ margin: 0;
171
+ line-height: 1.4;
172
+ }
173
+
174
+ .message-time {
175
+ font-size: 12px;
176
+ color: #999;
177
+ margin-top: 4px;
178
+ padding: 0 8px;
179
+ }
180
+
181
+ .user-message .message-time {
182
+ text-align: right;
183
+ }
184
+
185
+ .typing-indicator {
186
+ display: flex;
187
+ gap: 4px;
188
+ padding: 15px 20px;
189
+ }
190
+
191
+ .typing-indicator span {
192
+ width: 8px;
193
+ height: 8px;
194
+ border-radius: 50%;
195
+ background: #999;
196
+ animation: typing 1.4s infinite ease-in-out;
197
+ }
198
+
199
+ .typing-indicator span:nth-child(1) {
200
+ animation-delay: -0.32s;
201
+ }
202
+
203
+ .typing-indicator span:nth-child(2) {
204
+ animation-delay: -0.16s;
205
+ }
206
+
207
+ @keyframes typing {
208
+ 0%, 80%, 100% {
209
+ transform: scale(0.8);
210
+ opacity: 0.5;
211
+ }
212
+ 40% {
213
+ transform: scale(1);
214
+ opacity: 1;
215
+ }
216
+ }
217
+
218
+ .input-container {
219
+ padding: 20px;
220
+ background: white;
221
+ border-top: 1px solid #e0e0e0;
222
+ }
223
+
224
+ .input-wrapper {
225
+ display: flex;
226
+ gap: 10px;
227
+ align-items: flex-end;
228
+ }
229
+
230
+ #message-input {
231
+ flex: 1;
232
+ padding: 12px 16px;
233
+ border: 2px solid #e0e0e0;
234
+ border-radius: 25px;
235
+ font-size: 16px;
236
+ resize: none;
237
+ font-family: inherit;
238
+ line-height: 1.4;
239
+ transition: border-color 0.3s;
240
+ min-height: 44px;
241
+ max-height: 120px;
242
+ }
243
+
244
+ #message-input:focus {
245
+ outline: none;
246
+ border-color: #667eea;
247
+ }
248
+
249
+ .send-button {
250
+ width: 44px;
251
+ height: 44px;
252
+ border-radius: 50%;
253
+ border: none;
254
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
255
+ color: white;
256
+ cursor: pointer;
257
+ display: flex;
258
+ align-items: center;
259
+ justify-content: center;
260
+ transition: transform 0.2s, opacity 0.2s;
261
+ }
262
+
263
+ .send-button:hover:not(:disabled) {
264
+ transform: scale(1.05);
265
+ }
266
+
267
+ .send-button:disabled {
268
+ opacity: 0.5;
269
+ cursor: not-allowed;
270
+ }
271
+
272
+ .input-info {
273
+ display: flex;
274
+ justify-content: space-between;
275
+ margin-top: 8px;
276
+ font-size: 12px;
277
+ color: #999;
278
+ }
279
+
280
+ .loading-overlay {
281
+ position: fixed;
282
+ top: 0;
283
+ left: 0;
284
+ right: 0;
285
+ bottom: 0;
286
+ background: rgba(0, 0, 0, 0.8);
287
+ display: flex;
288
+ align-items: center;
289
+ justify-content: center;
290
+ z-index: 1000;
291
+ }
292
+
293
+ .loading-content {
294
+ text-align: center;
295
+ color: white;
296
+ }
297
+
298
+ .spinner {
299
+ width: 50px;
300
+ height: 50px;
301
+ border: 4px solid rgba(255, 255, 255, 0.3);
302
+ border-top-color: white;
303
+ border-radius: 50%;
304
+ animation: spin 1s linear infinite;
305
+ margin: 0 auto 20px;
306
+ }
307
+
308
+ @keyframes spin {
309
+ to {
310
+ transform: rotate(360deg);
311
+ }
312
+ }
313
+
314
+ .loading-content p {
315
+ font-size: 18px;
316
+ margin-bottom: 8px;
317
+ }
318
+
319
+ .loading-subtitle {
320
+ font-size: 14px;
321
+ opacity: 0.8;
322
+ }
323
+
324
+ .error-toast {
325
+ position: fixed;
326
+ top: 20px;
327
+ right: 20px;
328
+ background: #dc3545;
329
+ color: white;
330
+ border-radius: 8px;
331
+ padding: 0;
332
+ max-width: 350px;
333
+ z-index: 1001;
334
+ animation: slideIn 0.3s ease-out;
335
+ }
336
+
337
+ @keyframes slideIn {
338
+ from {
339
+ transform: translateX(100%);
340
+ opacity: 0;
341
+ }
342
+ to {
343
+ transform: translateX(0);
344
+ opacity: 1;
345
+ }
346
+ }
347
+
348
+ .error-content {
349
+ display: flex;
350
+ align-items: center;
351
+ padding: 12px 16px;
352
+ gap: 12px;
353
+ }
354
+
355
+ .error-icon {
356
+ background: white;
357
+ color: #dc3545;
358
+ width: 20px;
359
+ height: 20px;
360
+ border-radius: 50%;
361
+ display: flex;
362
+ align-items: center;
363
+ justify-content: center;
364
+ font-weight: bold;
365
+ flex-shrink: 0;
366
+ }
367
+
368
+ .error-message {
369
+ flex: 1;
370
+ font-size: 14px;
371
+ }
372
+
373
+ .dismiss-btn {
374
+ background: none;
375
+ border: none;
376
+ color: white;
377
+ font-size: 20px;
378
+ cursor: pointer;
379
+ padding: 0;
380
+ line-height: 1;
381
+ opacity: 0.8;
382
+ transition: opacity 0.2s;
383
+ }
384
+
385
+ .dismiss-btn:hover {
386
+ opacity: 1;
387
+ }
388
+
389
+ .hidden {
390
+ display: none !important;
391
+ }
392
+
393
+ /* Responsive Design */
394
+ @media (max-width: 640px) {
395
+ body {
396
+ padding: 0;
397
+ }
398
+
399
+ .container {
400
+ height: 100vh;
401
+ max-height: none;
402
+ border-radius: 0;
403
+ }
404
+
405
+ .header {
406
+ padding: 15px;
407
+ }
408
+
409
+ .header-content h1 {
410
+ font-size: 20px;
411
+ }
412
+
413
+ .settings-panel {
414
+ padding: 10px;
415
+ gap: 10px;
416
+ }
417
+
418
+ .setting-group {
419
+ flex: 1;
420
+ min-width: 140px;
421
+ }
422
+
423
+ .clear-btn {
424
+ width: 100%;
425
+ margin-left: 0;
426
+ margin-top: 10px;
427
+ }
428
+
429
+ .message {
430
+ max-width: 85%;
431
+ }
432
+
433
+ .messages {
434
+ padding: 15px;
435
+ }
436
+
437
+ .input-container {
438
+ padding: 15px;
439
+ }
440
+
441
+ .error-toast {
442
+ right: 10px;
443
+ left: 10px;
444
+ max-width: none;
445
+ }
446
  }