salomonsky commited on
Commit
6273668
·
verified ·
1 Parent(s): 152b33a

Upload style.css with huggingface_hub

Browse files
Files changed (1) hide show
  1. style.css +319 -87
style.css CHANGED
@@ -1,178 +1,410 @@
1
  /* Estilos generales */
2
  body {
3
- background-color: #f5f5f5;
4
- font-family: Arial, sans-serif;
 
5
  }
6
 
7
  .container {
8
  max-width: 1200px;
9
  margin: 0 auto;
 
10
  }
11
 
12
  /* Estilos de la tarjeta */
13
  .card {
 
14
  border-radius: 15px;
15
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
 
16
  }
17
 
18
  .card-header {
 
19
  border-radius: 15px 15px 0 0;
20
  padding: 1rem;
 
21
  }
22
 
23
  /* Estilos de las pestañas */
 
 
 
 
 
 
 
24
  .nav-tabs .nav-link {
25
- border: none;
26
- color: #fff;
27
- padding: 0.5rem 1rem;
28
  margin-right: 0.5rem;
29
- border-radius: 5px;
30
- transition: background-color 0.3s;
 
31
  }
32
 
33
  .nav-tabs .nav-link:hover {
34
- background-color: rgba(255, 255, 255, 0.1);
 
 
35
  }
36
 
37
  .nav-tabs .nav-link.active {
38
- background-color: rgba(255, 255, 255, 0.2);
39
- border: none;
 
 
40
  }
41
 
42
  /* Estilos del chat */
43
- .chat-box {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  height: 400px;
45
  overflow-y: auto;
46
- padding: 1rem;
47
- background-color: #fff;
48
  border-radius: 5px;
49
- margin-bottom: 1rem;
 
50
  }
51
 
52
  .message {
53
- padding: 0.5rem 1rem;
54
- margin-bottom: 0.5rem;
55
  border-radius: 10px;
56
  max-width: 80%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
58
 
59
  .user-message {
60
- background-color: #e3f2fd;
 
61
  margin-left: auto;
 
 
 
 
 
 
62
  }
63
 
64
  .bot-message {
65
- background-color: #f5f5f5;
 
66
  margin-right: auto;
67
  }
68
 
69
- /* Estilos de los controles */
70
- .input-group {
71
- margin-top: 1rem;
 
 
 
 
72
  }
73
 
74
- .btn {
75
- padding: 0.5rem 1rem;
76
- border-radius: 5px;
77
- transition: all 0.3s;
 
 
 
 
 
 
78
  }
79
 
80
- .btn i {
81
- margin-right: 0.5rem;
82
  }
83
 
84
- .btn-primary {
85
- background-color: #2196f3;
86
- border-color: #2196f3;
87
  }
88
 
89
- .btn-primary:hover {
90
- background-color: #1976d2;
91
- border-color: #1976d2;
 
 
 
 
 
 
 
 
 
92
  }
93
 
94
- .btn-success {
95
- background-color: #4caf50;
96
- border-color: #4caf50;
 
97
  }
98
 
99
- .btn-success:hover {
100
- background-color: #388e3c;
101
- border-color: #388e3c;
102
  }
103
 
104
- /* Estilos para el botón de grabación */
105
- #startRecording {
106
- position: relative;
107
- transition: all 0.3s;
108
  }
109
 
110
- #startRecording.active {
111
- background-color: #f44336;
112
- border-color: #f44336;
113
  }
114
 
115
- #startRecording.active:hover {
116
- background-color: #d32f2f;
117
- border-color: #d32f2f;
118
  }
119
 
120
- /* Estilos para los selectores */
121
- .form-select {
122
- padding: 0.5rem;
123
- border-radius: 5px;
124
- border: 1px solid #ddd;
125
- background-color: #fff;
126
  }
127
 
128
- /* Estilos para la configuración */
129
- .form-label {
130
- font-weight: bold;
131
- color: #333;
 
 
132
  }
133
 
134
- .form-control {
135
- border-radius: 5px;
136
- border: 1px solid #ddd;
137
- padding: 0.5rem;
 
138
  }
139
 
140
- /* Estilos para el estado */
141
- #statusLabel {
142
- font-size: 0.9rem;
143
- color: #666;
144
- margin-bottom: 1rem;
145
- text-align: center;
146
  }
147
 
148
- /* Animaciones */
149
- @keyframes pulse {
150
- 0% {
151
- transform: scale(1);
152
- }
153
- 50% {
154
- transform: scale(1.05);
155
- }
156
- 100% {
157
- transform: scale(1);
158
- }
159
  }
160
 
161
- .recording {
162
- animation: pulse 1.5s infinite;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
163
  }
164
 
165
  /* Responsive */
166
  @media (max-width: 768px) {
167
- .container {
168
- padding: 0.5rem;
 
169
  }
170
 
171
  .message {
172
  max-width: 90%;
173
  }
174
 
175
- .chat-box {
176
- height: 300px;
177
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
178
  }
 
1
  /* Estilos generales */
2
  body {
3
+ background-color: #1a1a1a;
4
+ font-family: 'Segoe UI', Arial, sans-serif;
5
+ color: #e0e0e0;
6
  }
7
 
8
  .container {
9
  max-width: 1200px;
10
  margin: 0 auto;
11
+ padding-top: 20px;
12
  }
13
 
14
  /* Estilos de la tarjeta */
15
  .card {
16
+ background-color: #2d2d2d;
17
  border-radius: 15px;
18
+ box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
19
+ border: 1px solid #3d3d3d;
20
  }
21
 
22
  .card-header {
23
+ background-color: #363636;
24
  border-radius: 15px 15px 0 0;
25
  padding: 1rem;
26
+ border-bottom: 1px solid #3d3d3d;
27
  }
28
 
29
  /* Estilos de las pestañas */
30
+ .nav-tabs {
31
+ border-bottom: 1px solid #3d3d3d;
32
+ padding: 10px 10px 0;
33
+ background-color: #2d2d2d;
34
+ border-radius: 10px 10px 0 0;
35
+ }
36
+
37
  .nav-tabs .nav-link {
38
+ color: #a0a0a0;
39
+ padding: 0.8rem 1.5rem;
 
40
  margin-right: 0.5rem;
41
+ border-radius: 8px 8px 0 0;
42
+ transition: all 0.3s ease;
43
+ border: 1px solid transparent;
44
  }
45
 
46
  .nav-tabs .nav-link:hover {
47
+ background-color: #363636;
48
+ color: #fff;
49
+ border-color: #3d3d3d;
50
  }
51
 
52
  .nav-tabs .nav-link.active {
53
+ background-color: #363636;
54
+ color: #fff;
55
+ border-color: #3d3d3d;
56
+ border-bottom-color: transparent;
57
  }
58
 
59
  /* Estilos del chat */
60
+ .chat-container {
61
+ max-width: 800px;
62
+ margin: 20px auto;
63
+ padding: 20px;
64
+ background-color: #2d2d2d;
65
+ border-radius: 10px;
66
+ box-shadow: 0 4px 15px rgba(0,0,0,0.3);
67
+ display: flex;
68
+ gap: 20px;
69
+ }
70
+
71
+ .chat-main {
72
+ flex: 1;
73
+ display: flex;
74
+ flex-direction: column;
75
+ }
76
+
77
+ #chatBox {
78
  height: 400px;
79
  overflow-y: auto;
80
+ padding: 20px;
81
+ border: 1px solid #404040;
82
  border-radius: 5px;
83
+ margin-bottom: 20px;
84
+ background-color: #222222;
85
  }
86
 
87
  .message {
88
+ margin: 10px 0;
89
+ padding: 12px;
90
  border-radius: 10px;
91
  max-width: 80%;
92
+ position: relative;
93
+ animation: fadeIn 0.3s ease-in;
94
+ display: flex;
95
+ align-items: flex-start;
96
+ }
97
+
98
+ .message-icon {
99
+ margin-right: 8px;
100
+ font-size: 1.2em;
101
+ }
102
+
103
+ .message-text {
104
+ word-wrap: break-word;
105
+ flex: 1;
106
  }
107
 
108
  .user-message {
109
+ background-color: #0056b3;
110
+ color: #ffffff;
111
  margin-left: auto;
112
+ flex-direction: row-reverse;
113
+ }
114
+
115
+ .user-message .message-icon {
116
+ margin-right: 0;
117
+ margin-left: 8px;
118
  }
119
 
120
  .bot-message {
121
+ background-color: #404040;
122
+ color: #e0e0e0;
123
  margin-right: auto;
124
  }
125
 
126
+ /* Control Panel */
127
+ .control-panel {
128
+ background-color: #333333;
129
+ padding: 15px;
130
+ border-radius: 5px;
131
+ margin-bottom: 20px;
132
+ border: 1px solid #404040;
133
  }
134
 
135
+ .status-label {
136
+ font-size: 0.9em;
137
+ color: #b0b0b0;
138
+ margin-top: 10px;
139
+ text-align: center;
140
+ font-style: normal;
141
+ padding: 8px;
142
+ background-color: transparent;
143
+ border: none;
144
+ transition: all 0.3s ease;
145
  }
146
 
147
+ .status-label.error {
148
+ color: #ff4444;
149
  }
150
 
151
+ .status-label.success {
152
+ color: #00c851;
 
153
  }
154
 
155
+ .recording-button {
156
+ transition: all 0.3s ease;
157
+ width: 50px;
158
+ height: 38px;
159
+ padding: 0;
160
+ display: flex;
161
+ align-items: center;
162
+ justify-content: center;
163
+ position: relative;
164
+ border-radius: 0 5px 5px 0;
165
+ background-color: #404040;
166
+ border-color: #505050;
167
  }
168
 
169
+ .recording-button.active {
170
+ background-color: #00c851;
171
+ border-color: #00a844;
172
+ animation: pulse 1.5s infinite;
173
  }
174
 
175
+ .recording-button:hover {
176
+ transform: scale(1.05);
177
+ background-color: #505050;
178
  }
179
 
180
+ @keyframes pulse {
181
+ 0% { transform: scale(1); }
182
+ 50% { transform: scale(1.1); }
183
+ 100% { transform: scale(1); }
184
  }
185
 
186
+ @keyframes fadeIn {
187
+ from { opacity: 0; transform: translateY(10px); }
188
+ to { opacity: 1; transform: translateY(0); }
189
  }
190
 
191
+ .input-group {
192
+ margin: 5px 15px;
 
193
  }
194
 
195
+ #textInput {
196
+ border-radius: 5px 0 0 5px;
197
+ border: 1px solid #404040;
198
+ padding: 8px 12px;
199
+ background-color: #333333;
200
+ color: #e0e0e0;
201
  }
202
 
203
+ #textInput:focus {
204
+ background-color: #404040;
205
+ border-color: #505050;
206
+ color: #ffffff;
207
+ outline: none;
208
+ box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
209
  }
210
 
211
+ #sendText {
212
+ border-radius: 0;
213
+ margin-right: -1px;
214
+ background-color: #0056b3;
215
+ border-color: #004494;
216
  }
217
 
218
+ #startRecording {
219
+ border-radius: 0 5px 5px 0;
220
+ background-color: #404040;
221
+ border-color: #505050;
 
 
222
  }
223
 
224
+ .form-select {
225
+ cursor: pointer;
226
+ background-color: #333333;
227
+ color: #e0e0e0;
228
+ border-color: #404040;
 
 
 
 
 
 
229
  }
230
 
231
+ .form-select:focus {
232
+ background-color: #404040;
233
+ color: #ffffff;
234
+ border-color: #505050;
235
+ box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
236
+ }
237
+
238
+ .form-label {
239
+ font-weight: 500;
240
+ margin-bottom: 5px;
241
+ color: #b0b0b0;
242
+ }
243
+
244
+ /* URL Display */
245
+ #ngrokUrl {
246
+ font-size: 0.9em;
247
+ background-color: #333333;
248
+ border-color: #404040;
249
+ color: #e0e0e0;
250
+ min-width: 250px;
251
  }
252
 
253
  /* Responsive */
254
  @media (max-width: 768px) {
255
+ .chat-container {
256
+ margin: 10px;
257
+ padding: 15px;
258
  }
259
 
260
  .message {
261
  max-width: 90%;
262
  }
263
 
264
+ .control-panel {
265
+ padding: 15px;
266
  }
267
+
268
+ .voice-commands {
269
+ width: 100%;
270
+ margin-top: 20px;
271
+ }
272
+ }
273
+
274
+ /* Voice Commands */
275
+ .voice-commands {
276
+ width: 200px;
277
+ height: fit-content;
278
+ margin-top: 0;
279
+ padding: 15px;
280
+ background-color: #333333;
281
+ border-radius: 5px;
282
+ border: 1px solid #404040;
283
+ position: sticky;
284
+ top: 20px;
285
+ }
286
+
287
+ .voice-commands h5 {
288
+ color: #4d94ff;
289
+ margin-bottom: 10px;
290
+ font-size: 0.9em;
291
+ text-align: center;
292
+ }
293
+
294
+ .command-group {
295
+ display: flex;
296
+ flex-direction: column;
297
+ gap: 8px;
298
+ margin-bottom: 15px;
299
+ }
300
+
301
+ .command-pill {
302
+ background-color: #404040;
303
+ color: #e0e0e0;
304
+ padding: 8px 12px;
305
+ border-radius: 15px;
306
+ font-size: 0.85em;
307
+ display: flex;
308
+ align-items: center;
309
+ justify-content: center;
310
+ gap: 5px;
311
+ text-align: center;
312
+ }
313
+
314
+ .command-pill.stop {
315
+ background-color: #dc3545;
316
+ color: white;
317
+ }
318
+
319
+ .command-pill.greet {
320
+ background-color: #198754;
321
+ color: white;
322
+ }
323
+
324
+ .command-pill.interest {
325
+ background-color: #0d6efd;
326
+ color: white;
327
+ }
328
+
329
+ .permission-modal {
330
+ display: none;
331
+ position: fixed;
332
+ top: 0;
333
+ left: 0;
334
+ width: 100%;
335
+ height: 100%;
336
+ background-color: rgba(0,0,0,0.7);
337
+ z-index: 1000;
338
+ align-items: center;
339
+ justify-content: center;
340
+ }
341
+
342
+ .permission-modal.show {
343
+ display: flex;
344
+ }
345
+
346
+ .permission-content {
347
+ background-color: #2d2d2d;
348
+ padding: 20px;
349
+ border-radius: 10px;
350
+ max-width: 400px;
351
+ width: 90%;
352
+ text-align: center;
353
+ color: #e0e0e0;
354
+ box-shadow: 0 4px 15px rgba(0,0,0,0.3);
355
+ }
356
+
357
+ .permission-content img {
358
+ max-width: 200px;
359
+ margin: 20px 0;
360
+ }
361
+
362
+ .permission-buttons {
363
+ display: flex;
364
+ justify-content: center;
365
+ gap: 10px;
366
+ margin-top: 20px;
367
+ }
368
+
369
+ .alert-warning {
370
+ background-color: #332d1a;
371
+ border: 1px solid #403d1a;
372
+ color: #ffd966;
373
+ padding: 10px;
374
+ border-radius: 5px;
375
+ margin: 10px 0;
376
+ }
377
+
378
+ /* Scrollbar Styling */
379
+ ::-webkit-scrollbar {
380
+ width: 8px;
381
+ }
382
+
383
+ ::-webkit-scrollbar-track {
384
+ background: #333333;
385
+ }
386
+
387
+ ::-webkit-scrollbar-thumb {
388
+ background: #505050;
389
+ border-radius: 4px;
390
+ }
391
+
392
+ ::-webkit-scrollbar-thumb:hover {
393
+ background: #606060;
394
+ }
395
+
396
+ /* Button Hover States */
397
+ .btn-primary:hover {
398
+ background-color: #0062cc;
399
+ border-color: #005cbf;
400
+ }
401
+
402
+ .btn-secondary:hover {
403
+ background-color: #505050;
404
+ border-color: #606060;
405
+ }
406
+
407
+ /* Focus States */
408
+ .btn:focus, .form-control:focus {
409
+ box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
410
  }