File size: 7,526 Bytes
745f475
 
 
656059f
9e370f5
 
745f475
 
9e370f5
 
745f475
 
 
 
 
 
9e370f5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745f475
 
 
 
9e370f5
 
 
 
 
745f475
 
 
9e370f5
745f475
9e370f5
 
 
 
 
 
 
 
 
 
 
 
 
 
745f475
 
9e370f5
745f475
9e370f5
745f475
9e370f5
 
25fd1e9
 
 
745f475
25fd1e9
 
 
745f475
 
 
ac3107a
 
 
 
 
 
 
745f475
 
 
 
ac3107a
 
 
745f475
ac3107a
 
 
 
 
745f475
ac3107a
 
 
 
745f475
ac3107a
745f475
ac3107a
 
 
 
745f475
 
 
 
ac3107a
 
 
 
745f475
 
ac3107a
 
745f475
 
 
 
 
 
 
ac3107a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745f475
 
ac3107a
745f475
ac3107a
 
 
 
745f475
 
 
 
 
ac3107a
 
 
 
 
 
 
 
 
 
745f475
ac3107a
 
745f475
 
 
5cb8e2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745f475
5cb8e2c
 
 
 
 
 
 
 
 
 
 
 
 
 
745f475
5cb8e2c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745f475
5cb8e2c
 
 
 
 
 
 
 
745f475
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5cb8e2c
eb69de5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
/* ============================
   Global & Base
============================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Optional: CRA root */
.App {
  text-align: center;
}

/* Root layout */
.ide-root {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

/* Themes */
.ide-dark {
  background: #1e1e1e;
  color: #ddd;
}

.ide-light {
  background: #f5f5f5;
  color: #222;
}

/* ============================
   Menubar
============================ */

.ide-menubar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  background: #252526;
  color: #eee;
  font-size: 13px;
  border-bottom: 1px solid #444;
}

.ide-menubar-left,
.ide-menubar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ide-logo {
  font-weight: 600;
  margin-right: 12px;
}

.ide-menubar button {
  margin-right: 4px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.ide-menubar button:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================
   Body Layout
============================ */

.ide-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* ============================
   Sidebar (Explorer)
============================ */

.ide-sidebar {
  width: 210px;
  background: #252526;
  color: #ccc;
  padding: 5px;
  border-right: 1px solid #444;
  overflow-y: auto;
  font-size: 14px;
}

.tree-item {
  padding: 4px 6px;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;
}

.tree-item:hover {
  background: #3a3d41;
}

/* ============================
   Main (Editor + Output)
============================ */

.ide-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}

/* Monaco wrapper */
.ide-editor-wrapper {
  flex: 1;
  min-height: 0;
}

/* Bottom panels (output, stdin, problems) */
.ide-panels {
  background: #1e1e1e;
  border-top: 1px solid #444;
  padding: 6px;
  font-size: 13px;
  height: 28%;
  overflow-y: auto;
}

.ide-output {
  background: #000;
  color: #0f0;
  padding: 6px;
  min-height: 60px;
  max-height: 120px;
  overflow-y: auto;
  border-radius: 4px;
  font-family: "Consolas", monospace;
  font-size: 12px;
}

.ide-input-box {
  width: 100%;
  margin-top: 4px;
  padding: 4px;
  background: #111;
  border: 1px solid #444;
  color: #eee;
  border-radius: 3px;
  font-size: 12px;
}

/* Problems panel */
.ide-problems-panel {
  margin-top: 6px;
  padding: 4px;
  background: #3c0000;
  color: #fff;
  border-left: 3px solid red;
  font-size: 12px;
  border-radius: 3px;
}

/* ============================
   Right AI Panel
============================ */

.ide-right-panel {
  width: 280px;
  border-left: 1px solid #444;
  background: #252526;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.ide-ai-header {
  font-weight: 600;
  margin-bottom: 4px;
}

.ide-ai-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ide-ai-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}

/* AI instruction textarea */
.ide-agent-textarea {
  width: 100%;
  min-height: 80px;
  max-height: 160px;
  resize: vertical;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #1e1e1e;
  color: #eee;
  font-family: Consolas, monospace;
  font-size: 12px;
}

/* AI buttons */
.ide-ai-buttons {
  display: flex;
  gap: 6px;
}

.ide-ai-buttons button {
  flex: 1;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid #555;
  background: #0e639c;
  color: #fff;
  cursor: pointer;
}

.ide-ai-buttons button:hover {
  background: #1177bb;
}

/* AI explanation box */
.ide-explain {
  max-height: 180px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 4px;
  background: #1e1e1e;
  border: 1px solid #444;
  font-size: 12px;
  color: #eee;
  font-family: Consolas, monospace;
}

/* ============================
   AI Suggestions Popup
============================ */

.ai-popup {
  position: absolute;
  bottom: 35%;
  right: 5px;
  width: 230px;
  background: #333;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 4px;
  animation: fadeIn 0.25s ease-in-out;
  font-size: 12px;
  z-index: 20;
}

.ai-suggest {
  padding: 4px;
  cursor: pointer;
}

.ai-suggest:hover {
  background: #444;
}

/* ============================
   Search Dialog
============================ */

.search-dialog {
  position: absolute;
  right: 10px;
  top: 50px;
  background: #333;
  padding: 10px;
  border: 1px solid #444;
  border-radius: 5px;
  z-index: 30;
}

.search-dialog input {
  width: 200px;
  padding: 4px 6px;
  border-radius: 3px;
  border: 1px solid #555;
  background: #1e1e1e;
  color: #eee;
}

/* ============================
   Context Menu
============================ */

.ide-context-menu {
  position: absolute;
  background: #333;
  color: #eee;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 4px;
  z-index: 40;
}

.ide-context-menu div {
  padding: 4px 8px;
  cursor: pointer;
  font-size: 13px;
}

.ide-context-menu div:hover {
  background: #555;
}

/* ============================
   Animations
============================ */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   📱 Mobile / Tablet Responsive
============================ */

@media (max-width: 768px) {
  /* Stack everything vertically */
  .ide-body {
    flex-direction: column;
  }

  /* Sidebar: full width at top */
  .ide-sidebar {
    width: 100%;
    max-height: 24vh;
    border-right: none;
    border-bottom: 1px solid #444;
  }

  /* Main editor: comes after sidebar */
  .ide-main {
    order: 2;
  }

  .ide-editor-wrapper {
    height: 40vh;
  }

  /* Output panel: keep compact */
  .ide-panels {
    height: auto;
    max-height: 26vh;
  }

  /* Right AI panel: full width at bottom */
  .ide-right-panel {
    width: 100%;
    order: 3;
    border-left: none;
    border-top: 1px solid #444;
  }

  /* Search dialog: more width */
  .search-dialog {
    right: 8px;
    left: 8px;
    width: auto;
  }

  /* Context menu: keep inside viewport */
  .ide-context-menu {
    max-width: 70vw;
  }

  /* AI popup: center-ish on mobile */
  .ai-popup {
    right: 8px;
    left: 8px;
    width: auto;
  }
}


/* ---------- progress bar under menubar ---------- */
.ide-progress-wrap {
  height: 3px;
  background: transparent;
  width: 100%;
  position: relative;
  overflow: hidden;
}
.ide-progress {
  position: absolute;
  height: 3px;
  width: 30%;
  left: -30%;
  top: 0;
  background: linear-gradient(90deg, #0e9, #08f);
  animation: progress-slide 1.2s linear infinite;
  border-radius: 2px;
}

@keyframes progress-slide {
  0% { left: -30%; width: 30%; }
  50% { left: 35%; width: 40%; }
  100% { left: 100%; width: 30%; }
}

/* ---------- small inline spinner (optional) ---------- */
.button-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.95);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 6px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}