AnesKAM commited on
Commit
8c28e1b
·
verified ·
1 Parent(s): b9fb186

Create public/style.css

Browse files
Files changed (1) hide show
  1. public/style.css +348 -0
public/style.css ADDED
@@ -0,0 +1,348 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ * {
2
+ margin: 0;
3
+ padding: 0;
4
+ box-sizing: border-box;
5
+ }
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
+
81
+ .mode-btn.flash {
82
+ background: #ffd93d;
83
+ color: #8b6b00;
84
+ }
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
+
92
+ .mode-btn.pro {
93
+ background: #4a90e2;
94
+ color: white;
95
+ }
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
+
176
+ .message.user {
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 {
239
+ display: flex;
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;
324
+ }
325
+
326
+ .chat-messages::-webkit-scrollbar-track {
327
+ background: #f1f1f1;
328
+ }
329
+
330
+ .chat-messages::-webkit-scrollbar-thumb {
331
+ background: #888;
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
+ }