AnesKAM commited on
Commit
4e8cd1e
·
verified ·
1 Parent(s): 7b1a48b

Update public/style.css

Browse files
Files changed (1) hide show
  1. public/style.css +100 -172
public/style.css CHANGED
@@ -6,75 +6,71 @@
6
 
7
  body {
8
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9
- background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
10
- height: 100vh;
11
- overflow: hidden;
 
 
 
12
  }
13
 
14
  .container {
15
- display: flex;
16
- height: 100vh;
17
- max-width: 1400px;
18
- margin: 0 auto;
19
  background: white;
20
- box-shadow: 0 0 20px rgba(0,0,0,0.1);
 
 
 
21
  }
22
 
23
- /* الشريط الجانبي */
24
- .sidebar {
25
- width: 280px;
26
- background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
27
- border-left: 1px solid #dee2e6;
28
- display: flex;
29
- flex-direction: column;
30
- padding: 20px;
31
  }
32
 
33
- .logo {
 
 
 
34
  text-align: center;
35
- padding-bottom: 20px;
36
- border-bottom: 2px solid #dee2e6;
37
- margin-bottom: 20px;
38
  }
39
 
40
- .logo h2 {
41
- color: #2c3e76;
42
  margin-bottom: 5px;
43
  }
44
 
45
- .logo p {
46
- color: #6c757d;
47
- font-size: 12px;
48
  }
49
 
50
- .mode-selector {
51
- flex: 1;
52
- }
53
-
54
- .mode-selector h3 {
55
- margin-bottom: 15px;
56
- color: #495057;
57
- font-size: 16px;
58
  }
59
 
60
  .mode-btn {
61
- width: 100%;
62
  padding: 12px;
63
- margin-bottom: 10px;
64
  border: none;
65
- border-radius: 10px;
66
  cursor: pointer;
67
- transition: all 0.3s ease;
68
- text-align: right;
69
  font-weight: bold;
 
 
70
  display: flex;
71
  flex-direction: column;
72
  gap: 5px;
 
73
  }
74
 
75
  .mode-btn small {
76
- font-size: 11px;
77
- font-weight: normal;
78
  opacity: 0.8;
79
  }
80
 
@@ -85,7 +81,7 @@ body {
85
 
86
  .mode-btn.flash:hover, .mode-btn.flash.active {
87
  background: #ffc107;
88
- transform: translateX(-5px);
89
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
90
  }
91
 
@@ -96,80 +92,37 @@ body {
96
 
97
  .mode-btn.pro:hover, .mode-btn.pro.active {
98
  background: #357abd;
99
- transform: translateX(-5px);
100
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
101
  }
102
 
103
- .info {
104
- padding-top: 20px;
105
- border-top: 1px solid #dee2e6;
106
- font-size: 14px;
107
- }
108
-
109
- .mode-info, .token-info {
110
- margin-bottom: 10px;
111
- display: flex;
112
- justify-content: space-between;
113
- }
114
-
115
- .token-info {
116
- font-size: 12px;
117
- color: #6c757d;
118
- }
119
-
120
- /* منطقة الشات */
121
- .chat-area {
122
- flex: 1;
123
  display: flex;
124
  flex-direction: column;
125
- background: white;
126
- }
127
-
128
- .chat-header {
129
- padding: 15px 20px;
130
- border-bottom: 1px solid #e0e0e0;
131
- display: flex;
132
- justify-content: space-between;
133
- align-items: center;
134
- background: #f8f9fa;
135
- }
136
-
137
- .clear-btn {
138
- background: #dc3545;
139
- color: white;
140
- border: none;
141
- padding: 8px 15px;
142
- border-radius: 6px;
143
- cursor: pointer;
144
- transition: all 0.3s;
145
- }
146
-
147
- .clear-btn:hover {
148
- background: #c82333;
149
- transform: scale(0.95);
150
  }
151
 
152
  .chat-messages {
153
  flex: 1;
154
  overflow-y: auto;
155
  padding: 20px;
156
- background: #ffffff;
157
  }
158
 
159
  .message {
160
  display: flex;
161
- margin-bottom: 20px;
162
  animation: slideIn 0.3s ease;
163
  }
164
 
165
  @keyframes slideIn {
166
  from {
167
  opacity: 0;
168
- transform: translateY(20px);
169
  }
170
  to {
171
  opacity: 1;
172
- transform: translateY(0);
173
  }
174
  }
175
 
@@ -177,62 +130,48 @@ body {
177
  flex-direction: row-reverse;
178
  }
179
 
180
- .message-avatar {
181
  width: 40px;
182
  height: 40px;
183
  border-radius: 50%;
184
  display: flex;
185
  align-items: center;
186
  justify-content: center;
187
- font-size: 24px;
188
  margin: 0 10px;
189
  }
190
 
191
- .message.user .message-avatar {
192
  background: #4a90e2;
 
193
  }
194
 
195
- .message.bot .message-avatar {
196
- background: #f0f0f0;
197
  }
198
 
199
- .message-content {
200
  max-width: 70%;
201
- background: #f8f9fa;
202
- border-radius: 15px;
203
  padding: 12px 16px;
204
- position: relative;
 
 
205
  }
206
 
207
- .message.user .message-content {
208
  background: #4a90e2;
209
  color: white;
210
  }
211
 
212
- .message-text {
213
- line-height: 1.5;
214
- }
215
-
216
- /* حاوية التفكير */
217
  .thought-container {
218
  background: #fff3e0;
219
  border-right: 4px solid #ff9800;
220
  padding: 15px;
221
  margin: 10px 0;
222
  border-radius: 10px;
223
- position: relative;
224
- animation: fadeIn 0.5s ease;
225
- }
226
-
227
- @keyframes fadeIn {
228
- from {
229
- opacity: 0;
230
- max-height: 0;
231
- }
232
- to {
233
- opacity: 1;
234
- max-height: 500px;
235
- }
236
  }
237
 
238
  .thought-header {
@@ -240,84 +179,78 @@ body {
240
  align-items: center;
241
  gap: 8px;
242
  margin-bottom: 10px;
243
- color: #ff9800;
244
  font-weight: bold;
245
- font-size: 14px;
246
- }
247
-
248
- .thought-icon {
249
- font-size: 18px;
250
- }
251
-
252
- .thought-content {
253
- color: #5a3e1b;
254
- font-style: italic;
255
- line-height: 1.6;
256
- white-space: pre-wrap;
257
- }
258
-
259
- .regular-content {
260
- white-space: pre-wrap;
261
- line-height: 1.5;
262
  }
263
 
264
- /* منطقة الإدخال */
265
  .input-area {
266
- padding: 20px;
267
- border-top: 1px solid #e0e0e0;
268
  display: flex;
269
  gap: 10px;
270
- background: #f8f9fa;
 
 
271
  }
272
 
273
- #userInput {
274
  flex: 1;
275
  padding: 12px;
276
  border: 2px solid #e0e0e0;
277
- border-radius: 10px;
278
  font-family: inherit;
279
  font-size: 14px;
280
  resize: none;
281
  transition: all 0.3s;
282
  }
283
 
284
- #userInput:focus {
285
  outline: none;
286
- border-color: #4a90e2;
287
- box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
288
  }
289
 
290
- .send-btn {
291
- background: #4a90e2;
 
292
  color: white;
293
  border: none;
294
- padding: 0 20px;
295
- border-radius: 10px;
296
  cursor: pointer;
297
  font-weight: bold;
298
  transition: all 0.3s;
299
- position: relative;
 
 
300
  }
301
 
302
- .send-btn:hover {
303
- background: #357abd;
304
  transform: translateY(-2px);
305
- box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
306
- }
307
-
308
- .shortcut {
309
- font-size: 12px;
310
- opacity: 0.8;
311
- margin-right: 8px;
312
  }
313
 
314
- .status {
315
  padding: 10px 20px;
316
- font-size: 12px;
 
317
  color: #6c757d;
 
318
  border-top: 1px solid #e0e0e0;
319
  }
320
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  /* شريط التمرير */
322
  .chat-messages::-webkit-scrollbar {
323
  width: 8px;
@@ -332,17 +265,12 @@ body {
332
  border-radius: 4px;
333
  }
334
 
335
- .chat-messages::-webkit-scrollbar-thumb:hover {
336
- background: #555;
337
- }
338
-
339
- /* Responsive */
340
- @media (max-width: 768px) {
341
- .sidebar {
342
- width: 200px;
343
  }
344
 
345
- .message-content {
346
- max-width: 85%;
347
  }
348
  }
 
6
 
7
  body {
8
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
9
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
10
+ min-height: 100vh;
11
+ display: flex;
12
+ justify-content: center;
13
+ align-items: center;
14
+ padding: 20px;
15
  }
16
 
17
  .container {
18
+ max-width: 900px;
19
+ width: 100%;
 
 
20
  background: white;
21
+ border-radius: 20px;
22
+ box-shadow: 0 20px 60px rgba(0,0,0,0.3);
23
+ overflow: hidden;
24
+ animation: fadeIn 0.5s ease;
25
  }
26
 
27
+ @keyframes fadeIn {
28
+ from { opacity: 0; transform: translateY(-20px); }
29
+ to { opacity: 1; transform: translateY(0); }
 
 
 
 
 
30
  }
31
 
32
+ .header {
33
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
34
+ color: white;
35
+ padding: 25px;
36
  text-align: center;
 
 
 
37
  }
38
 
39
+ .header h1 {
40
+ font-size: 1.8em;
41
  margin-bottom: 5px;
42
  }
43
 
44
+ .header p {
45
+ opacity: 0.9;
46
+ font-size: 0.9em;
47
  }
48
 
49
+ .mode-buttons {
50
+ display: flex;
51
+ gap: 15px;
52
+ padding: 15px 20px;
53
+ background: #f8f9fa;
54
+ border-bottom: 1px solid #e0e0e0;
 
 
55
  }
56
 
57
  .mode-btn {
58
+ flex: 1;
59
  padding: 12px;
 
60
  border: none;
61
+ border-radius: 12px;
62
  cursor: pointer;
 
 
63
  font-weight: bold;
64
+ font-size: 1em;
65
+ transition: all 0.3s ease;
66
  display: flex;
67
  flex-direction: column;
68
  gap: 5px;
69
+ align-items: center;
70
  }
71
 
72
  .mode-btn small {
73
+ font-size: 0.75em;
 
74
  opacity: 0.8;
75
  }
76
 
 
81
 
82
  .mode-btn.flash:hover, .mode-btn.flash.active {
83
  background: #ffc107;
84
+ transform: translateY(-2px);
85
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
86
  }
87
 
 
92
 
93
  .mode-btn.pro:hover, .mode-btn.pro.active {
94
  background: #357abd;
95
+ transform: translateY(-2px);
96
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
97
  }
98
 
99
+ .chat-container {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  display: flex;
101
  flex-direction: column;
102
+ height: 500px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
103
  }
104
 
105
  .chat-messages {
106
  flex: 1;
107
  overflow-y: auto;
108
  padding: 20px;
109
+ background: #f0f2f5;
110
  }
111
 
112
  .message {
113
  display: flex;
114
+ margin-bottom: 15px;
115
  animation: slideIn 0.3s ease;
116
  }
117
 
118
  @keyframes slideIn {
119
  from {
120
  opacity: 0;
121
+ transform: translateX(20px);
122
  }
123
  to {
124
  opacity: 1;
125
+ transform: translateX(0);
126
  }
127
  }
128
 
 
130
  flex-direction: row-reverse;
131
  }
132
 
133
+ .avatar {
134
  width: 40px;
135
  height: 40px;
136
  border-radius: 50%;
137
  display: flex;
138
  align-items: center;
139
  justify-content: center;
140
+ font-size: 20px;
141
  margin: 0 10px;
142
  }
143
 
144
+ .message.user .avatar {
145
  background: #4a90e2;
146
+ color: white;
147
  }
148
 
149
+ .message.bot .avatar {
150
+ background: #e0e0e0;
151
  }
152
 
153
+ .content {
154
  max-width: 70%;
155
+ background: white;
 
156
  padding: 12px 16px;
157
+ border-radius: 15px;
158
+ box-shadow: 0 1px 2px rgba(0,0,0,0.1);
159
+ line-height: 1.5;
160
  }
161
 
162
+ .message.user .content {
163
  background: #4a90e2;
164
  color: white;
165
  }
166
 
 
 
 
 
 
167
  .thought-container {
168
  background: #fff3e0;
169
  border-right: 4px solid #ff9800;
170
  padding: 15px;
171
  margin: 10px 0;
172
  border-radius: 10px;
173
+ font-style: italic;
174
+ color: #5a3e1b;
 
 
 
 
 
 
 
 
 
 
 
175
  }
176
 
177
  .thought-header {
 
179
  align-items: center;
180
  gap: 8px;
181
  margin-bottom: 10px;
 
182
  font-weight: bold;
183
+ color: #ff9800;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  }
185
 
 
186
  .input-area {
 
 
187
  display: flex;
188
  gap: 10px;
189
+ padding: 15px 20px;
190
+ background: white;
191
+ border-top: 1px solid #e0e0e0;
192
  }
193
 
194
+ textarea {
195
  flex: 1;
196
  padding: 12px;
197
  border: 2px solid #e0e0e0;
198
+ border-radius: 12px;
199
  font-family: inherit;
200
  font-size: 14px;
201
  resize: none;
202
  transition: all 0.3s;
203
  }
204
 
205
+ textarea:focus {
206
  outline: none;
207
+ border-color: #764ba2;
208
+ box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1);
209
  }
210
 
211
+ button {
212
+ padding: 12px 24px;
213
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
214
  color: white;
215
  border: none;
216
+ border-radius: 12px;
 
217
  cursor: pointer;
218
  font-weight: bold;
219
  transition: all 0.3s;
220
+ display: flex;
221
+ align-items: center;
222
+ gap: 8px;
223
  }
224
 
225
+ button:hover {
 
226
  transform: translateY(-2px);
227
+ box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
 
 
 
 
 
 
228
  }
229
 
230
+ .status-bar {
231
  padding: 10px 20px;
232
+ background: #f8f9fa;
233
+ font-size: 0.85em;
234
  color: #6c757d;
235
+ text-align: center;
236
  border-top: 1px solid #e0e0e0;
237
  }
238
 
239
+ .loading {
240
+ display: inline-block;
241
+ width: 20px;
242
+ height: 20px;
243
+ border: 3px solid #f3f3f3;
244
+ border-top: 3px solid #764ba2;
245
+ border-radius: 50%;
246
+ animation: spin 1s linear infinite;
247
+ }
248
+
249
+ @keyframes spin {
250
+ 0% { transform: rotate(0deg); }
251
+ 100% { transform: rotate(360deg); }
252
+ }
253
+
254
  /* شريط التمرير */
255
  .chat-messages::-webkit-scrollbar {
256
  width: 8px;
 
265
  border-radius: 4px;
266
  }
267
 
268
+ @media (max-width: 600px) {
269
+ .content {
270
+ max-width: 85%;
 
 
 
 
 
271
  }
272
 
273
+ .mode-btn small {
274
+ display: none;
275
  }
276
  }