-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevoloop.html
More file actions
1750 lines (1615 loc) · 64.5 KB
/
Copy pathevoloop.html
File metadata and controls
1750 lines (1615 loc) · 64.5 KB
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
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ro">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EvoLoop v2 – EvoDigiline</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');
:root {
--bg: #09090e;
--surface: #111118;
--surface2: #18181f;
--surface3: #1f1f28;
--border: #252530;
--border2: #30303e;
--accent: #ff6b2b;
--accent2: #ff8f5e;
--accent-dim: rgba(255,107,43,0.12);
--accent-glow: rgba(255,107,43,0.25);
--green: #27c96a;
--green-dim: rgba(39,201,106,0.12);
--red: #e74c3c;
--red-dim: rgba(231,76,60,0.12);
--yellow: #f0b429;
--yellow-dim: rgba(240,180,41,0.12);
--blue: #4a9eff;
--text: #e4e4ee;
--text2: #7a7a92;
--text3: #4a4a5a;
--mono: 'JetBrains Mono', monospace;
--sans: 'DM Sans', sans-serif;
--r: 10px;
--r2: 14px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 14px; }
body {
background: var(--bg);
color: var(--text);
font-family: var(--sans);
min-height: 100vh;
overflow-x: hidden;
}
/* ═══════════════ SCROLLBAR ═══════════════ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }
/* ═══════════════ HEADER ═══════════════ */
.header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px 28px;
background: var(--surface);
border-bottom: 1px solid var(--border);
position: sticky;
top: 0;
z-index: 100;
}
.logo {
display: flex;
align-items: center;
gap: 14px;
}
.logo-svg-wrap {
width: 44px;
height: 48px;
flex-shrink: 0;
}
.logo-text { line-height: 1.1; }
.logo-app {
font-family: var(--mono);
font-size: 20px;
font-weight: 700;
color: var(--text);
letter-spacing: -0.5px;
}
.logo-app span { color: var(--accent); }
.logo-brand {
font-size: 10px;
color: var(--text2);
font-family: var(--mono);
letter-spacing: 2px;
text-transform: uppercase;
margin-top: 1px;
}
.header-right {
display: flex;
align-items: center;
gap: 12px;
}
.badge {
background: var(--accent-dim);
border: 1px solid var(--accent);
color: var(--accent);
padding: 4px 14px;
border-radius: 20px;
font-size: 11px;
font-family: var(--mono);
font-weight: 700;
letter-spacing: 1px;
}
/* ═══════════════ LAYOUT ═══════════════ */
.main {
display: grid;
grid-template-columns: 1fr 360px;
min-height: calc(100vh - 81px);
}
.left {
padding: 24px 28px;
overflow-y: auto;
border-right: 1px solid var(--border);
}
.right {
background: var(--surface);
padding: 20px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 20px;
}
/* ═══════════════ SECTION ═══════════════ */
.section { margin-bottom: 22px; }
.section-title {
font-family: var(--mono);
font-size: 10px;
text-transform: uppercase;
letter-spacing: 2.5px;
color: var(--accent);
margin-bottom: 12px;
display: flex;
align-items: center;
gap: 8px;
}
.section-title::before {
content: '';
width: 6px; height: 6px;
background: var(--accent);
border-radius: 2px;
flex-shrink: 0;
}
/* ═══════════════ UPLOAD ZONE ═══════════════ */
.upload-zone {
border: 2px dashed var(--border2);
border-radius: var(--r2);
padding: 32px 24px;
text-align: center;
cursor: pointer;
transition: all 0.25s;
background: var(--surface);
position: relative;
}
.upload-zone:hover, .upload-zone.dragover {
border-color: var(--accent);
background: var(--accent-dim);
}
.upload-icon { font-size: 32px; margin-bottom: 10px; }
.upload-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.upload-sub { font-size: 12px; color: var(--text2); }
.upload-sub strong { color: var(--text); }
.upload-badge {
display: inline-block;
margin-top: 10px;
background: var(--surface2);
border: 1px solid var(--border);
border-radius: 6px;
padding: 3px 10px;
font-size: 11px;
font-family: var(--mono);
color: var(--text2);
}
#fileInput { display: none; }
/* ═══════════════ SETTINGS ═══════════════ */
.settings-accordion {}
.acc-group {
border: 1px solid var(--border);
border-radius: var(--r);
margin-bottom: 8px;
overflow: hidden;
}
.acc-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 13px 16px;
background: var(--surface);
cursor: pointer;
user-select: none;
transition: background 0.2s;
}
.acc-header:hover { background: var(--surface2); }
.acc-title {
font-family: var(--mono);
font-size: 12px;
font-weight: 600;
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}
.acc-icon { font-size: 15px; }
.acc-chevron {
color: var(--text2);
font-size: 12px;
transition: transform 0.2s;
}
.acc-group.open .acc-chevron { transform: rotate(180deg); }
.acc-body {
display: none;
padding: 16px;
background: var(--surface2);
border-top: 1px solid var(--border);
}
.acc-group.open .acc-body { display: block; }
.cg {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.cg.cols3 { grid-template-columns: 1fr 1fr 1fr; }
.ctrl {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--r);
padding: 12px;
}
.ctrl.full { grid-column: 1 / -1; }
.ctrl label {
display: block;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--text2);
margin-bottom: 7px;
font-family: var(--mono);
}
.ctrl input[type="number"], .ctrl select {
width: 100%;
background: var(--surface);
border: 1px solid var(--border);
color: var(--text);
padding: 8px 10px;
border-radius: 7px;
font-family: var(--mono);
font-size: 13px;
outline: none;
transition: border-color 0.2s;
-moz-appearance: textfield;
}
.ctrl input::-webkit-outer-spin-button,
.ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ctrl input:focus, .ctrl select:focus {
border-color: var(--accent);
box-shadow: 0 0 0 3px var(--accent-dim);
}
.ctrl .unit { font-size: 10px; color: var(--text2); margin-top: 4px; font-family: var(--mono); }
.ctrl .hint { font-size: 10px; color: var(--text3); margin-top: 5px; line-height: 1.4; }
.ctrl .warn { font-size: 10px; color: var(--yellow); margin-top: 5px; }
.dual-input { display: flex; gap: 6px; }
.dual-input input { flex: 1; }
.dual-label { display: flex; gap: 6px; font-size: 9px; color: var(--text3); margin-top: 3px; font-family: var(--mono); }
.dual-label span { flex: 1; text-transform: uppercase; letter-spacing: 0.5px; }
/* Range */
.range-row {
display: flex;
align-items: center;
gap: 10px;
margin-top: 2px;
}
input[type="range"] {
flex: 1;
-webkit-appearance: none;
background: var(--border2);
height: 4px;
border-radius: 2px;
outline: none;
cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none;
width: 18px; height: 18px;
background: var(--accent);
border-radius: 50%;
cursor: pointer;
box-shadow: 0 0 8px var(--accent-glow);
}
.range-val {
font-family: var(--mono);
font-size: 16px;
font-weight: 700;
color: var(--accent);
min-width: 42px;
text-align: right;
}
.loop-inf { font-size: 10px; color: var(--text2); margin-top: 4px; font-family: var(--mono); }
/* Toggle */
.toggle-list { display: flex; flex-direction: column; gap: 6px; }
.toggle-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 0;
border-bottom: 1px solid var(--border);
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 12px; color: var(--text); }
.toggle-sub { font-size: 10px; color: var(--text2); margin-top: 1px; }
.toggle {
position: relative;
width: 40px; height: 22px;
flex-shrink: 0;
}
.toggle input { display: none; }
.toggle .slider {
position: absolute;
inset: 0;
background: var(--border2);
border-radius: 11px;
cursor: pointer;
transition: 0.25s;
}
.toggle .slider::before {
content: '';
position: absolute;
width: 16px; height: 16px;
background: #fff;
border-radius: 50%;
top: 3px; left: 3px;
transition: 0.25s;
}
.toggle input:checked + .slider { background: var(--accent); }
.toggle input:checked + .slider::before { transform: translateX(18px); }
/* ═══════════════ PROCESS BUTTON ═══════════════ */
.btn-process {
width: 100%;
padding: 14px;
background: var(--accent);
color: #fff;
border: none;
border-radius: var(--r2);
font-family: var(--mono);
font-size: 13px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
text-transform: uppercase;
letter-spacing: 2px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.btn-process:hover:not(:disabled) {
background: var(--accent2);
transform: translateY(-1px);
box-shadow: 0 6px 24px rgba(255,107,43,0.3);
}
.btn-process:disabled { opacity: 0.35; cursor: not-allowed; }
/* ═══════════════ LOG ═══════════════ */
.log {
background: var(--bg);
border: 1px solid var(--border);
border-radius: var(--r);
padding: 12px 14px;
max-height: 180px;
overflow-y: auto;
font-family: var(--mono);
font-size: 11px;
line-height: 1.9;
color: var(--text2);
}
.log .l-ok { color: var(--green); }
.log .l-warn { color: var(--yellow); }
.log .l-err { color: var(--red); }
.log .l-info { color: var(--accent); }
.log .l-ts { color: var(--text3); margin-right: 6px; }
/* ═══════════════ STATS ═══════════════ */
.stats-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.stat-card {
background: var(--surface2);
border: 1px solid var(--border);
border-radius: var(--r);
padding: 12px;
text-align: center;
}
.stat-val {
font-family: var(--mono);
font-size: 24px;
font-weight: 700;
color: var(--accent);
line-height: 1;
}
.stat-val.small { font-size: 16px; }
.stat-label {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 1.5px;
color: var(--text2);
margin-top: 4px;
font-family: var(--mono);
}
/* ═══════════════ QUEUE ═══════════════ */
.queue-list { display: flex; flex-direction: column; gap: 8px; }
.queue-empty {
text-align: center;
padding: 30px 20px;
color: var(--text3);
font-size: 12px;
border: 1px dashed var(--border);
border-radius: var(--r);
}
.queue-item {
background: var(--surface2);
border: 1px solid var(--border);
border-radius: var(--r);
overflow: hidden;
transition: border-color 0.2s;
}
.queue-item:hover { border-color: var(--border2); }
.queue-item.status-ready { border-color: rgba(39,201,106,0.3); }
.queue-item.status-error { border-color: rgba(231,76,60,0.3); }
.queue-item.status-processing { border-color: rgba(255,107,43,0.4); }
.qi-header {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 12px 12px 8px;
}
.qi-drag {
color: var(--text3);
cursor: grab;
font-size: 16px;
margin-top: 1px;
padding: 2px;
flex-shrink: 0;
}
.qi-drag:active { cursor: grabbing; }
.qi-info { flex: 1; min-width: 0; }
.qi-name {
font-family: var(--mono);
font-size: 11px;
font-weight: 600;
color: var(--text);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 4px;
}
.qi-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
align-items: center;
}
.qi-tag {
font-family: var(--mono);
font-size: 9px;
padding: 2px 7px;
border-radius: 8px;
background: var(--surface3);
color: var(--text2);
border: 1px solid var(--border);
}
.qi-tag.accent { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.qi-tag.green { background: var(--green-dim); color: var(--green); border-color: transparent; }
.qi-tag.red { background: var(--red-dim); color: var(--red); border-color: transparent; }
.qi-tag.yellow { background: var(--yellow-dim); color: var(--yellow); border-color: transparent; }
.qi-actions {
display: flex;
gap: 4px;
flex-shrink: 0;
}
.qi-btn {
background: none;
border: 1px solid var(--border);
color: var(--text2);
cursor: pointer;
font-size: 12px;
padding: 4px 7px;
border-radius: 6px;
transition: all 0.15s;
font-family: var(--mono);
line-height: 1;
}
.qi-btn:hover { background: var(--surface3); color: var(--text); border-color: var(--border2); }
.qi-btn.danger:hover { background: var(--red-dim); color: var(--red); border-color: var(--red); }
.qi-btn.download:hover { background: var(--green-dim); color: var(--green); border-color: var(--green); }
/* Progress bar on processing items */
.qi-progress {
height: 2px;
background: var(--accent);
width: 0%;
transition: width 0.3s;
}
.queue-item.status-processing .qi-progress { animation: progress-pulse 1.5s ease-in-out infinite; }
@keyframes progress-pulse {
0% { opacity: 1; }
50% { opacity: 0.4; }
100% { opacity: 1; }
}
/* ═══════════════ DOWNLOAD BUTTONS ═══════════════ */
.btn-dl-all {
width: 100%;
padding: 12px;
background: var(--green);
color: #fff;
border: none;
border-radius: var(--r);
font-family: var(--mono);
font-size: 12px;
font-weight: 700;
cursor: pointer;
transition: all 0.2s;
text-transform: uppercase;
letter-spacing: 1.5px;
}
.btn-dl-all:hover:not(:disabled) {
filter: brightness(1.1);
transform: translateY(-1px);
}
.btn-dl-all:disabled { opacity: 0.35; cursor: not-allowed; }
/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0,0,0,0.7);
z-index: 200;
align-items: center;
justify-content: center;
backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
background: var(--surface);
border: 1px solid var(--border2);
border-radius: var(--r2);
width: 90%;
max-width: 700px;
max-height: 85vh;
display: flex;
flex-direction: column;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 18px 22px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.modal-title {
font-family: var(--mono);
font-size: 13px;
font-weight: 700;
color: var(--text);
}
.modal-close {
background: none;
border: none;
color: var(--text2);
font-size: 18px;
cursor: pointer;
padding: 4px;
line-height: 1;
border-radius: 4px;
}
.modal-close:hover { color: var(--text); background: var(--surface2); }
.modal-body {
padding: 20px 22px;
overflow-y: auto;
flex: 1;
}
.modal-footer {
padding: 14px 22px;
border-top: 1px solid var(--border);
display: flex;
gap: 10px;
justify-content: flex-end;
flex-shrink: 0;
}
.btn { padding: 9px 18px; border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; transition: all 0.2s; text-transform: uppercase; letter-spacing: 1px; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent2); }
.btn-secondary { background: var(--surface2); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface3); }
/* G-code preview */
.gcode-preview {
background: var(--bg);
border-radius: 8px;
padding: 14px;
font-family: var(--mono);
font-size: 11px;
line-height: 1.8;
overflow-x: auto;
white-space: pre;
max-height: 400px;
overflow-y: auto;
border: 1px solid var(--border);
}
.gcode-preview .gc-comment { color: var(--text3); }
.gcode-preview .gc-cmd { color: var(--blue); }
.gcode-preview .gc-inject { background: rgba(255,107,43,0.08); }
.gcode-preview .gc-section { color: var(--accent); font-weight: 700; }
/* Edit modal settings */
.edit-modal-cg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.edit-modal-ctrl { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.edit-modal-ctrl label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text2); margin-bottom: 6px; font-family: var(--mono); }
.edit-modal-ctrl input { width: 100%; background: var(--bg); border: 1px solid var(--border); color: var(--text); padding: 7px 9px; border-radius: 6px; font-family: var(--mono); font-size: 12px; outline: none; -moz-appearance: textfield; }
.edit-modal-ctrl input::-webkit-outer-spin-button, .edit-modal-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.edit-modal-ctrl input:focus { border-color: var(--accent); }
.edit-modal-ctrl .unit { font-size: 9px; color: var(--text3); margin-top: 3px; font-family: var(--mono); }
/* Sortable ghost */
.sortable-ghost { opacity: 0.3; }
.sortable-drag { opacity: 0.9; box-shadow: 0 8px 30px rgba(0,0,0,0.4); }
/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 820px) {
.main { grid-template-columns: 1fr; }
.left { border-right: none; border-bottom: 1px solid var(--border); }
.right { min-height: auto; }
.cg { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<!-- ═══ HEADER ═══ -->
<div class="header">
<div class="logo">
<div class="logo-svg-wrap">
<!-- EvoDigiline logo SVG - diamond + symbol -->
<svg viewBox="0 0 54.34 60.58" width="44" height="48" xmlns="http://www.w3.org/2000/svg">
<!-- Black parts -->
<polygon points="49.335,47.262 44.305,51.472 29.088,38.732 34.121,34.525" fill="#e4e4ee"/>
<polygon points="41.212,56.372 36.183,60.582 5.03,34.502 5.03,34.502 0.0,30.292 0.001,30.291 5.03,26.081 36.183,0.0 41.212,4.211 10.06,30.291" fill="#e4e4ee"/>
<polygon points="49.237,30.501 44.207,34.712 39.053,30.396 44.082,26.186" fill="#e4e4ee"/>
<polygon points="44.305,9.32 49.335,13.531 34.121,26.267 29.092,22.057" fill="#e4e4ee"/>
<!-- Red diamond -->
<polygon points="19.131,30.397 29.092,38.736 39.053,30.397 29.092,22.057" fill="#ff6b2b"/>
</svg>
</div>
<div class="logo-text">
<div class="logo-app">Evo<span>Loop</span> <span style="font-size:12px;color:var(--text2);font-weight:400">v2</span></div>
<div class="logo-brand">EvoDigiline · Print Farm Automation</div>
</div>
</div>
<div class="header-right">
<div class="badge">∞ UNLIMITED LOOPS</div>
</div>
</div>
<!-- ═══ MAIN ═══ -->
<div class="main">
<!-- ═══ LEFT PANEL ═══ -->
<div class="left">
<!-- Upload -->
<div class="section">
<div class="section-title">Încarcă G-code</div>
<div class="upload-zone" id="dropZone">
<div class="upload-icon">📦</div>
<div class="upload-title">Drop <strong>.gcode.3mf</strong> sau click pentru browse</div>
<div class="upload-sub">Export din Bambu Studio → File → Export plate sliced file</div>
<div class="upload-badge">Acceptă multiple fișiere simultan</div>
<input type="file" id="fileInput" accept=".3mf" multiple>
</div>
</div>
<!-- Settings Accordion -->
<div class="section">
<div class="section-title">Setări Globale</div>
<div class="settings-accordion">
<!-- Loop Settings -->
<div class="acc-group open">
<div class="acc-header" onclick="toggleAcc(this)">
<div class="acc-title"><span class="acc-icon">🔄</span> Loop & Cooldown</div>
<span class="acc-chevron">▼</span>
</div>
<div class="acc-body">
<div class="cg">
<div class="ctrl full">
<label>Număr Loops</label>
<div class="range-row">
<input type="range" id="loopCount" min="1" max="100" value="5" oninput="updateLoopVal(this)">
<div class="range-val" id="loopVal">5</div>
</div>
<div class="loop-inf">Trage până la 100 sau introduce manual: <input type="number" id="loopCountNum" value="5" min="1" max="9999" style="background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:3px 7px;border-radius:5px;font-family:var(--mono);font-size:12px;width:65px;outline:none;" oninput="syncLoopNum(this)"> loops</div>
</div>
<div class="ctrl">
<label>Cooldown Temp</label>
<input type="number" id="cooldownTemp" value="25" min="15" max="40" step="1">
<div class="unit">°C (bed)</div>
<div class="hint">PLA pe textured PEI: 20-25°C</div>
</div>
<div class="ctrl">
<label>First Layer Flow</label>
<input type="number" id="firstLayerFlow" value="80" min="50" max="100" step="5">
<div class="unit">% (M221)</div>
<div class="hint">Aderență redusă → piese se detașează mai ușor</div>
</div>
</div>
<div class="ctrl full" style="margin-top:12px;">
<label>Opțiuni Fan</label>
<div class="toggle-list">
<div class="toggle-row">
<div>
<div class="toggle-label">Fan de răcire (P2 + P3)</div>
<div class="toggle-sub">Activat în cooldown pentru răcire mai rapidă</div>
</div>
<label class="toggle"><input type="checkbox" id="coolFan" checked><div class="slider"></div></label>
</div>
</div>
</div>
</div>
</div>
<!-- Bend Settings -->
<div class="acc-group open">
<div class="acc-header" onclick="toggleAcc(this)">
<div class="acc-title"><span class="acc-icon">↕️</span> Bending Plăcii</div>
<span class="acc-chevron">▼</span>
</div>
<div class="acc-body">
<div class="cg">
<div class="ctrl">
<label>Cicluri Bend</label>
<input type="number" id="bendCycles" value="6" min="0" max="20" step="1">
<div class="unit">up/down strokes</div>
<div class="hint">Placa flexează pentru a rupe adeziunea. 6 default.</div>
</div>
<div class="ctrl">
<label>Bend Z Sus / Jos</label>
<div class="dual-input">
<input type="number" id="bendUp" value="235" min="200" max="256" step="5">
<input type="number" id="bendDown" value="200" min="150" max="230" step="5">
</div>
<div class="dual-label"><span>Sus (mm)</span><span>Jos (mm)</span></div>
</div>
</div>
</div>
</div>
<!-- Push / Sweep Settings -->
<div class="acc-group open">
<div class="acc-header" onclick="toggleAcc(this)">
<div class="acc-title"><span class="acc-icon">🧹</span> Push & Sweep</div>
<span class="acc-chevron">▼</span>
</div>
<div class="acc-body">
<div class="cg">
<div class="ctrl">
<label>Push Height</label>
<input type="number" id="pushHeight" value="2" min="0.5" max="250" step="0.5">
<div class="unit">mm deasupra patului</div>
<div class="hint">Sub înălțimea piesei! Pentru 2.2mm: max 1.5-1.8mm</div>
</div>
<div class="ctrl">
<label>Sweep Step X</label>
<input type="number" id="sweepStep" value="30" min="10" max="50" step="5">
<div class="unit">mm între pasaje</div>
</div>
<div class="ctrl">
<label>Viteză Sweep Lent</label>
<input type="number" id="sweepSlow" value="3000" min="1000" max="10000" step="500">
<div class="unit">mm/min (F)</div>
</div>
<div class="ctrl">
<label>Viteză Sweep Rapid</label>
<input type="number" id="sweepFast" value="12000" min="3000" max="20000" step="1000">
<div class="unit">mm/min (F)</div>
</div>
<div class="ctrl">
<label>Sweep X Start / End</label>
<div class="dual-input">
<input type="number" id="sweepXStart" value="220" min="100" max="250" step="10">
<input type="number" id="sweepXEnd" value="30" min="0" max="100" step="10">
</div>
<div class="dual-label"><span>Start mm</span><span>End mm</span></div>
</div>
<div class="ctrl">
<label>Opțiuni Sweep</label>
<div class="toggle-list">
<div class="toggle-row" style="padding:5px 0;border-bottom:1px solid var(--border);">
<div class="toggle-label" style="font-size:11px;">Central sweeps</div>
<label class="toggle"><input type="checkbox" id="centralSweep" checked><div class="slider"></div></label>
</div>
<div class="toggle-row" style="padding:5px 0;border-bottom:none;">
<div class="toggle-label" style="font-size:11px;">Double sweep (lent + rapid)</div>
<label class="toggle"><input type="checkbox" id="doubleSweep" checked><div class="slider"></div></label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Process Button -->
<div class="section">
<button class="btn-process" id="btnProcessAll" onclick="processAll()">
<span>⚡</span> Procesează Toate Fișierele
</button>
</div>
<!-- Log -->
<div class="section">
<div class="section-title">Log Procesare</div>
<div class="log" id="log">
<span class="l-info">▶ EvoLoop v2 gata. Încarcă fișiere .gcode.3mf pentru a începe.</span>
</div>
</div>
</div>
<!-- ═══ RIGHT PANEL ═══ -->
<div class="right">
<!-- Stats -->
<div>
<div class="section-title" style="margin-bottom:10px;">Statistici</div>
<div class="stats-grid">
<div class="stat-card">
<div class="stat-val" id="statTotalLoops">0</div>
<div class="stat-label">Total Loops</div>
</div>
<div class="stat-card">
<div class="stat-val" id="statFiles">0</div>
<div class="stat-label">Fișiere</div>
</div>
<div class="stat-card">
<div class="stat-val small" id="statTime">—</div>
<div class="stat-label">Timp Estimat</div>
</div>
<div class="stat-card">
<div class="stat-val" id="statReady">0</div>
<div class="stat-label">Gata Download</div>
</div>
</div>
</div>
<!-- Queue -->
<div style="flex:1;">
<div class="section-title" style="margin-bottom:10px;">
Coadă Printuri
<span style="margin-left:auto;font-size:10px;color:var(--text3);font-family:var(--mono);letter-spacing:0;">drag to reorder</span>
</div>
<div class="queue-list" id="queueList">
<div class="queue-empty">Niciun fișier încărcat.<br>Drop .gcode.3mf files ↑</div>
</div>
</div>
<!-- Download All -->
<div>
<button class="btn-dl-all" id="btnDownloadAll" onclick="downloadAll()" disabled>
⬇ Download Toate (ZIP)
</button>
</div>
<!-- Print Schedule -->
<div id="printScheduleWrap" style="display:none;">
<div class="section-title" style="margin-bottom:10px;margin-top:4px;">
Print Schedule
<span style="margin-left:auto;display:flex;align-items:center;gap:8px;">
<span id="schedClockBadge" style="font-size:10px;color:var(--text3);font-family:var(--mono);"></span>
<button onclick="schedStartNow()" style="font-size:10px;padding:3px 10px;border-radius:5px;border:1px solid var(--border2);background:var(--surface3);color:var(--text2);cursor:pointer;font-family:var(--mono);">▶ Start acum</button>
<button onclick="schedReset()" style="font-size:10px;padding:3px 8px;border-radius:5px;border:1px solid var(--border2);background:var(--surface3);color:var(--text3);cursor:pointer;font-family:var(--mono);">✕</button>
</span>
</div>
<div id="printScheduleList" style="display:flex;flex-direction:column;gap:6px;"></div>
</div>
</div>
</div>
<!-- ═══ MODAL: EDIT SETĂRI PER FIȘIER ═══ -->
<div class="modal-overlay" id="editModal">
<div class="modal">
<div class="modal-header">
<div class="modal-title" id="editModalTitle">Editează Setări</div>
<button class="modal-close" onclick="closeModal('editModal')">✕</button>
</div>
<div class="modal-body">
<div id="editModalFile" style="font-family:var(--mono);font-size:11px;color:var(--text2);margin-bottom:16px;padding:8px 10px;background:var(--bg);border-radius:6px;"></div>
<div style="font-family:var(--mono);font-size:10px;color:var(--text2);text-transform:uppercase;letter-spacing:1.5px;margin-bottom:10px;">Loop & Cooldown</div>
<div class="edit-modal-cg">
<div class="edit-modal-ctrl">
<label>Loops</label>
<input type="number" id="em-loops" value="5" min="1" max="9999">
</div>
<div class="edit-modal-ctrl">
<label>Cooldown (°C)</label>
<input type="number" id="em-cooldownTemp" value="25" min="15" max="40">
</div>
<div class="edit-modal-ctrl">
<label>Flow 1st Layer (%)</label>
<input type="number" id="em-firstLayerFlow" value="80" min="50" max="100">
</div>
</div>
<div style="font-family:var(--mono);font-size:10px;color:var(--text2);text-transform:uppercase;letter-spacing:1.5px;margin-bottom:10px;margin-top:4px;">Bending</div>
<div class="edit-modal-cg">
<div class="edit-modal-ctrl">
<label>Cicluri Bend</label>
<input type="number" id="em-bendCycles" value="6" min="0" max="20">
</div>
<div class="edit-modal-ctrl">
<label>Bend Z Sus (mm)</label>
<input type="number" id="em-bendUp" value="235" min="200" max="256">
</div>
<div class="edit-modal-ctrl">
<label>Bend Z Jos (mm)</label>
<input type="number" id="em-bendDown" value="200" min="150" max="230">
</div>
</div>
<div style="font-family:var(--mono);font-size:10px;color:var(--text2);text-transform:uppercase;letter-spacing:1.5px;margin-bottom:10px;margin-top:4px;">Push & Sweep</div>
<div class="edit-modal-cg">
<div class="edit-modal-ctrl">
<label>Push Height (mm)</label>
<input type="number" id="em-pushHeight" value="2" min="0.5" max="250" step="0.5">
</div>
<div class="edit-modal-ctrl">
<label>Sweep Step (mm)</label>
<input type="number" id="em-sweepStep" value="30" min="10" max="50">
</div>
<div class="edit-modal-ctrl">
<label>Sweep Lent (mm/min)</label>
<input type="number" id="em-sweepSlow" value="3000" min="1000" max="10000">
</div>
<div class="edit-modal-ctrl">
<label>Sweep Rapid (mm/min)</label>
<input type="number" id="em-sweepFast" value="12000" min="3000" max="20000">
</div>
<div class="edit-modal-ctrl">
<label>Sweep X Start (mm)</label>
<input type="number" id="em-sweepXStart" value="220" min="100" max="250">
</div>
<div class="edit-modal-ctrl">
<label>Sweep X End (mm)</label>
<input type="number" id="em-sweepXEnd" value="30" min="0" max="100">
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" onclick="closeModal('editModal')">Anulează</button>
<button class="btn btn-primary" onclick="saveEditAndProcess()">Salvează & Procesează</button>
</div>
</div>
</div>
<!-- ═══ MODAL: G-CODE PREVIEW ═══ -->
<div class="modal-overlay" id="previewModal">
<div class="modal">
<div class="modal-header">
<div class="modal-title" id="previewModalTitle">Preview G-code (End Section)</div>
<button class="modal-close" onclick="closeModal('previewModal')">✕</button>
</div>
<div class="modal-body">
<div style="font-size:11px;color:var(--text2);margin-bottom:10px;">
Afișează ultimele 200 linii din G-code-ul procesat. Secțiunile injectate sunt evidențiate.
</div>
<div class="gcode-preview" id="gcodePreviewContent"></div>
</div>
<div class="modal-footer">
<button class="btn btn-secondary" onclick="closeModal('previewModal')">Închide</button>
</div>
</div>
</div>