akhaliq HF Staff commited on
Commit
0862c92
·
verified ·
1 Parent(s): 35fed5f

Deploy from anycoder - style.css

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