akhaliq HF Staff commited on
Commit
df6cad0
·
verified ·
1 Parent(s): c2096ea

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +372 -50
style.css CHANGED
@@ -1,76 +1,398 @@
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
+ :root {
8
+ --primary-color: #007AFF;
9
+ --primary-hover: #0056CC;
10
+ --background: #F2F2F7;
11
+ --surface: #FFFFFF;
12
+ --text-primary: #000000;
13
+ --text-secondary: #8E8E93;
14
+ --border-color: #C6C6C8;
15
+ --user-message: #007AFF;
16
+ --ai-message: #E5E5EA;
17
+ --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
18
+ --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
19
+ --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
20
  }
21
 
22
  body {
23
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
24
+ background: var(--background);
25
+ color: var(--text-primary);
26
+ height: 100vh;
27
+ overflow: hidden;
28
+ }
29
+
30
+ .app-container {
31
+ display: flex;
32
+ flex-direction: column;
33
+ height: 100vh;
34
+ max-width: 900px;
35
+ margin: 0 auto;
36
+ background: var(--surface);
37
+ box-shadow: var(--shadow-lg);
38
+ }
39
+
40
+ /* Header */
41
+ .header {
42
+ background: var(--surface);
43
+ border-bottom: 1px solid var(--border-color);
44
+ padding: 16px 20px;
45
+ backdrop-filter: blur(20px);
46
+ -webkit-backdrop-filter: blur(20px);
47
+ }
48
+
49
+ .header-content {
50
+ display: flex;
51
+ justify-content: space-between;
52
+ align-items: center;
53
+ }
54
+
55
+ .header-left {
56
+ display: flex;
57
+ align-items: center;
58
+ gap: 12px;
59
+ }
60
+
61
+ .ai-icon {
62
+ width: 40px;
63
+ height: 40px;
64
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
65
+ border-radius: 12px;
66
+ display: flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ color: white;
70
+ }
71
+
72
+ .header-text h1 {
73
+ font-size: 18px;
74
+ font-weight: 600;
75
+ margin-bottom: 2px;
76
+ }
77
+
78
+ .status-text {
79
+ font-size: 13px;
80
+ color: var(--text-secondary);
81
+ font-weight: 400;
82
+ }
83
+
84
+ .built-with {
85
+ font-size: 12px;
86
+ color: var(--text-secondary);
87
+ text-decoration: none;
88
+ padding: 6px 12px;
89
+ border-radius: 20px;
90
+ background: var(--background);
91
+ transition: all 0.3s ease;
92
+ }
93
+
94
+ .built-with:hover {
95
+ background: var(--primary-color);
96
+ color: white;
97
+ transform: translateY(-1px);
98
+ }
99
+
100
+ /* Chat Container */
101
+ .chat-container {
102
+ flex: 1;
103
+ overflow-y: auto;
104
+ padding: 20px;
105
+ background: var(--background);
106
+ }
107
+
108
+ .chat-messages {
109
+ display: flex;
110
+ flex-direction: column;
111
+ gap: 16px;
112
  }
113
 
114
+ /* Messages */
115
+ .welcome-message,
116
+ .message {
117
+ display: flex;
118
+ gap: 12px;
119
+ animation: fadeInUp 0.3s ease;
120
  }
121
 
122
+ @keyframes fadeInUp {
123
+ from {
124
+ opacity: 0;
125
+ transform: translateY(10px);
126
+ }
127
+ to {
128
+ opacity: 1;
129
+ transform: translateY(0);
130
+ }
131
+ }
132
+
133
+ .ai-avatar {
134
+ width: 32px;
135
+ height: 32px;
136
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
137
+ border-radius: 50%;
138
+ display: flex;
139
+ align-items: center;
140
+ justify-content: center;
141
+ color: white;
142
+ flex-shrink: 0;
143
+ }
144
+
145
+ .user-avatar {
146
+ width: 32px;
147
+ height: 32px;
148
+ background: var(--user-message);
149
+ border-radius: 50%;
150
+ display: flex;
151
+ align-items: center;
152
+ justify-content: center;
153
+ color: white;
154
+ flex-shrink: 0;
155
+ }
156
+
157
+ .message-content {
158
+ flex: 1;
159
+ max-width: 70%;
160
+ }
161
 
162
+ .message-bubble {
163
+ padding: 12px 16px;
164
+ border-radius: 18px;
165
+ background: var(--ai-message);
166
+ color: var(--text-primary);
167
+ font-size: 15px;
168
+ line-height: 1.4;
169
+ word-wrap: break-word;
170
+ position: relative;
171
+ box-shadow: var(--shadow-sm);
172
+ }
173
 
174
+ .message.user .message-bubble {
175
+ background: var(--user-message);
176
+ color: white;
177
+ margin-left: auto;
178
+ }
179
 
180
+ .message.ai .message-bubble {
181
+ background: var(--surface);
 
 
182
  }
183
 
184
+ .message-time {
185
+ font-size: 11px;
186
+ color: var(--text-secondary);
187
+ margin-top: 4px;
188
+ padding: 0 4px;
189
+ }
190
+
191
+ /* Typing Indicator */
192
+ .typing-indicator {
193
+ display: flex;
194
+ gap: 4px;
195
+ padding: 12px 16px;
196
+ }
197
+
198
+ .typing-dot {
199
+ width: 8px;
200
+ height: 8px;
201
+ background: var(--text-secondary);
202
+ border-radius: 50%;
203
+ animation: typing 1.4s infinite;
204
+ }
205
+
206
+ .typing-dot:nth-child(2) {
207
+ animation-delay: 0.2s;
208
+ }
209
+
210
+ .typing-dot:nth-child(3) {
211
+ animation-delay: 0.4s;
212
+ }
213
+
214
+ @keyframes typing {
215
+ 0%, 60%, 100% {
216
+ transform: translateY(0);
217
+ opacity: 0.5;
218
+ }
219
+ 30% {
220
+ transform: translateY(-10px);
221
+ opacity: 1;
222
+ }
223
  }
224
 
225
+ /* Loading Indicator */
226
+ .loading-indicator {
227
+ display: flex;
228
+ flex-direction: column;
229
+ align-items: center;
230
+ gap: 12px;
231
+ padding: 40px;
232
+ background: var(--surface);
233
+ border-radius: 16px;
234
+ margin: 20px;
235
+ box-shadow: var(--shadow-md);
236
+ }
237
+
238
+ .loading-indicator.hidden {
239
+ display: none;
240
+ }
241
+
242
+ .loading-spinner {
243
+ width: 32px;
244
+ height: 32px;
245
+ border: 3px solid var(--border-color);
246
+ border-top-color: var(--primary-color);
247
+ border-radius: 50%;
248
+ animation: spin 1s linear infinite;
249
+ }
250
+
251
+ @keyframes spin {
252
+ to { transform: rotate(360deg); }
253
+ }
254
+
255
+ .progress-bar {
256
+ width: 200px;
257
+ height: 4px;
258
+ background: var(--border-color);
259
+ border-radius: 2px;
260
+ overflow: hidden;
261
+ }
262
+
263
+ .progress-fill {
264
+ height: 100%;
265
+ background: var(--primary-color);
266
+ width: 0%;
267
+ transition: width 0.3s ease;
268
+ }
269
+
270
+ .progress-text {
271
+ font-size: 14px;
272
+ color: var(--text-secondary);
273
+ font-weight: 500;
274
+ }
275
+
276
+ /* Input Area */
277
+ .input-area {
278
+ background: var(--surface);
279
+ border-top: 1px solid var(--border-color);
280
+ padding: 16px 20px;
281
+ }
282
+
283
+ .input-container {
284
+ display: flex;
285
+ gap: 12px;
286
+ align-items: flex-end;
287
+ background: var(--background);
288
+ border-radius: 24px;
289
+ padding: 8px 8px 8px 16px;
290
+ border: 1px solid var(--border-color);
291
+ transition: all 0.3s ease;
292
+ }
293
+
294
+ .input-container:focus-within {
295
+ border-color: var(--primary-color);
296
+ box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
297
+ }
298
+
299
+ .message-input {
300
+ flex: 1;
301
+ border: none;
302
+ background: transparent;
303
+ font-size: 15px;
304
+ font-family: inherit;
305
+ resize: none;
306
+ outline: none;
307
+ max-height: 120px;
308
+ line-height: 1.4;
309
+ padding: 8px 0;
310
+ }
311
+
312
+ .message-input::placeholder {
313
+ color: var(--text-secondary);
314
+ }
315
+
316
+ .message-input:disabled {
317
+ opacity: 0.5;
318
+ cursor: not-allowed;
319
+ }
320
+
321
+ .send-button {
322
+ width: 36px;
323
+ height: 36px;
324
+ border-radius: 50%;
325
+ border: none;
326
+ background: var(--primary-color);
327
+ color: white;
328
+ cursor: pointer;
329
+ display: flex;
330
+ align-items: center;
331
+ justify-content: center;
332
+ transition: all 0.3s ease;
333
+ }
334
+
335
+ .send-button:hover:not(:disabled) {
336
+ background: var(--primary-hover);
337
+ transform: scale(1.05);
338
+ }
339
+
340
+ .send-button:disabled {
341
+ background: var(--border-color);
342
+ cursor: not-allowed;
343
+ transform: none;
344
+ }
345
+
346
+ .input-footer {
347
+ display: flex;
348
+ justify-content: space-between;
349
+ margin-top: 8px;
350
+ padding: 0 8px;
351
+ }
352
+
353
+ .input-footer small {
354
+ font-size: 12px;
355
+ color: var(--text-secondary);
356
+ }
357
+
358
+ /* Responsive Design */
359
+ @media (max-width: 768px) {
360
+ .app-container {
361
+ max-width: 100%;
362
+ box-shadow: none;
363
+ }
364
+
365
+ .message-content {
366
+ max-width: 85%;
367
+ }
368
+
369
+ .header {
370
+ padding: 12px 16px;
371
+ }
372
+
373
+ .chat-container {
374
+ padding: 16px;
375
+ }
376
+
377
+ .input-area {
378
+ padding: 12px 16px;
379
+ }
380
  }
381
 
382
+ /* Scrollbar Styling */
383
+ .chat-container::-webkit-scrollbar {
384
+ width: 6px;
 
385
  }
386
 
387
+ .chat-container::-webkit-scrollbar-track {
388
+ background: transparent;
389
  }
390
 
391
+ .chat-container::-webkit-scrollbar-thumb {
392
+ background: var(--border-color);
393
+ border-radius: 3px;
 
394
  }
395
 
396
+ .chat-container::-webkit-scrollbar-thumb:hover {
397
+ background: var(--text-secondary);
 
 
 
 
398
  }