-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1857 lines (1733 loc) · 109 KB
/
index.html
File metadata and controls
1857 lines (1733 loc) · 109 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>
<head>
<title>TM-NMAPUI</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.0/socket.io.js"></script>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/lucide@latest"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
olive: {
50: 'oklch(96% 0.015 110)',
100: 'oklch(91% 0.020 110)',
200: 'oklch(85% 0.028 110)',
300: 'oklch(75% 0.040 110)',
400: 'oklch(62% 0.055 110)',
500: 'oklch(50% 0.065 110)',
600: 'oklch(42% 0.055 110)',
700: 'oklch(35% 0.045 110)',
800: 'oklch(28% 0.035 110)',
900: 'oklch(22% 0.025 110)',
950: 'oklch(16% 0.015 110)',
}
},
fontFamily: {
display: ['Instrument Serif', 'serif'],
sans: ['Inter', 'system-ui', 'sans-serif'],
}
}
}
}
</script>
<style>
body {
font-family: 'Inter', system-ui, sans-serif;
background-color: oklch(91% 0.012 106.5);
color: oklch(15.3% 0.006 107.1);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
scroll-behavior: smooth;
}
h1, h2, h3 {
font-family: 'Instrument Serif', serif;
text-wrap: balance;
}
::selection {
background-color: oklch(75% 0.040 110);
color: oklch(46% 0.046 34);
}
input::placeholder {
color: oklch(50% 0.065 110);
}
.open-ports-cell {
max-width: 200px;
overflow-wrap: break-word;
}
table {
border-collapse: separate;
border-spacing: 0;
}
th {
background-color: oklch(22% 0.025 110);
color: white;
font-weight: 500;
}
tbody tr:nth-child(even) {
background-color: oklch(96% 0.015 110);
}
tbody tr:hover {
background-color: oklch(85% 0.028 110);
}
.card-pulsing {
animation: pulse-border 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
border-color: oklch(22% 0.025 110) !important;
box-shadow: 0 0 0 4px oklch(62% 0.055 110 / 0.6);
}
@keyframes pulse-border {
0%, 100% {
box-shadow: 0 0 0 4px oklch(62% 0.055 110 / 0.6);
}
50% {
box-shadow: 0 0 0 12px oklch(62% 0.055 110 / 0.2);
}
}
/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: oklch(96% 0.015 110);
}
::-webkit-scrollbar-thumb {
background: oklch(75% 0.040 110);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: oklch(62% 0.055 110);
}
/* Focus visible styles for accessibility */
:focus-visible {
outline: 2px solid oklch(62% 0.055 110);
outline-offset: 2px;
}
/* Custom animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.animate-fade-in-up {
animation: fadeInUp 0.6s ease-out forwards;
}
/* Stagger delay utilities */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
/* Line clamp utilities */
.line-clamp-1 {
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Aspect ratio fallback */
.aspect-video {
aspect-ratio: 16 / 9;
}
.aspect-square {
aspect-ratio: 1 / 1;
}
/* Glass morphism utilities */
.glass {
background: rgba(247, 248, 244, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
}
/* Prevent layout shift from images */
img {
max-width: 100%;
height: auto;
}
/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
/* Print styles */
@media print {
.no-print {
display: none !important;
}
body {
background: white;
color: black;
}
}
/* Compact card styles */
.compact-card {
transition: all 0.2s ease;
}
.compact-card:hover {
transform: translateY(-2px);
}
/* Dense grid optimizations */
@media (min-width: 1280px) {
.xl\:grid-cols-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
}
/* Custom form styles */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
/* Loading skeleton animation */
@keyframes skeleton {
0% {
background-position: -200% 0;
}
100% {
background-position: 200% 0;
}
}
.skeleton {
background: linear-gradient(90deg, oklch(94% 0.012 106.5) 25%, oklch(97% 0.008 106.5) 50%, oklch(94% 0.012 106.5) 75%);
background-size: 200% 100%;
animation: skeleton 1.5s infinite;
}
/* Hover lift effect */
.hover-lift {
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hover-lift:hover {
transform: translateY(-2px);
box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
}
.page-shell {
width: 100%;
max-width: 98vw;
margin-inline: auto;
padding-inline: 1rem;
}
@media (min-width: 640px) {
.page-shell {
padding-inline: 1.5rem;
}
}
@media (min-width: 1024px) {
.page-shell {
padding-inline: 2rem;
}
}
.results-band {
width: 100%;
margin-top: 2rem;
border-radius: 0.75rem;
border: 1px solid oklch(75% 0.040 110);
background-color: oklch(96% 0.015 110);
padding-block: 2rem;
box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
overflow-x: auto;
}
#discovery-table {
width: 100%;
min-width: 100%;
}
#discovery-table th,
#discovery-table td {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
#discovery-table th:nth-child(1),
#discovery-table td:nth-child(1) { width: 3%; }
#discovery-table th:nth-child(2),
#discovery-table td:nth-child(2) { width: 11%; }
#discovery-table th:nth-child(3),
#discovery-table td:nth-child(3) { width: 14%; }
#discovery-table th:nth-child(4),
#discovery-table td:nth-child(4) { width: 8%; }
#discovery-table th:nth-child(5),
#discovery-table td:nth-child(5) { width: 10%; }
#discovery-table th:nth-child(6),
#discovery-table td:nth-child(6) { width: 11%; }
#discovery-table th:nth-child(7),
#discovery-table td:nth-child(7) { width: 10%; }
#discovery-table th:nth-child(8),
#discovery-table td:nth-child(8) { width: 5%; }
#discovery-table th:nth-child(9),
#discovery-table td:nth-child(9) { width: 7%; }
#discovery-table th:nth-child(10),
#discovery-table td:nth-child(10) { width: 7%; }
#discovery-table th:nth-child(11),
#discovery-table td:nth-child(11) { width: 10%; }
#discovery-table th:nth-child(12),
#discovery-table td:nth-child(12) { width: 5%; }
#discovery-table .screenshot-cell img {
width: 140px;
height: 78px;
object-fit: cover;
border-radius: 4px;
border: 1px solid oklch(80% 0.035 110);
background-color: oklch(94% 0.018 110);
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#discovery-table .screenshot-cell img:hover {
transform: scale(1.02);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* Lightbox */
#lightbox {
display: none;
position: fixed;
inset: 0;
z-index: 9999;
background: rgb(0 0 0 / 0.9);
padding: 2rem;
align-items: center;
justify-content: center;
}
#lightbox.active {
display: flex;
}
#lightbox img {
max-width: 90vw;
max-height: 90vh;
border-radius: 8px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
#lightbox-close {
position: absolute;
top: 1rem;
right: 1rem;
width: 48px;
height: 48px;
border-radius: 50%;
background: white;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: oklch(22% 0.025 110);
transition: background-color 0.2s ease;
}
#lightbox-close:hover {
background: oklch(91% 0.020 110);
}
#discovery-table .screenshot-cell span {
font-size: 10px;
color: oklch(46% 0.045 110);
}
.modal-overlay {
position: fixed;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
background: rgb(0 0 0 / 0.5);
padding: 1rem;
}
.modal-panel {
width: 100%;
border-radius: 0.5rem;
background: white;
}
.modal-panel-scroll {
display: flex;
max-height: 90vh;
flex-direction: column;
overflow: hidden;
}
.form-control {
width: 100%;
border: 1px solid oklch(75% 0.040 110);
border-radius: 0.5rem;
background: white;
color: oklch(22% 0.025 110);
transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus {
outline: none;
border-color: oklch(62% 0.055 110);
box-shadow: 0 0 0 3px oklch(62% 0.055 110 / 0.14);
}
.form-control-md {
padding: 0.5rem 0.75rem;
}
.form-control-sm {
padding: 0.5rem 1rem;
font-size: 0.875rem;
line-height: 1.25rem;
}
.icon-button {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 9999px;
color: oklch(50% 0.065 110);
transition: color 0.2s ease, background-color 0.2s ease;
}
.icon-button:hover {
color: oklch(22% 0.025 110);
background-color: oklch(91% 0.020 110);
}
.action-button {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
padding: 0.5rem 1rem;
font-weight: 500;
transition: background-color 0.2s ease, color 0.2s ease;
}
.action-button-primary {
background: oklch(42% 0.055 110);
color: white;
}
.action-button-primary:hover {
background: oklch(35% 0.045 110);
}
.action-button-secondary {
background: oklch(50% 0.065 110);
color: white;
}
.action-button-secondary:hover {
background: oklch(42% 0.055 110);
}
.action-button-compact {
padding: 0.5rem 1rem;
font-size: 0.875rem;
line-height: 1.25rem;
}
/* Custom button press effect */
.btn-press:active {
transform: scale(0.98);
}
/* Historical / dimmed rows shown while a new scan is pending */
.historical-row {
opacity: 0.4;
transition: opacity 0.4s ease;
}
/* Gradient text */
.gradient-text {
background: linear-gradient(135deg, oklch(55% 0.065 110) 0%, oklch(62% 0.055 110) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Focus ring custom color */
.focus-ring-olive:focus {
--tw-ring-color: oklch(62% 0.055 110);
}
</style>
</head>
<body class="py-8">
<!-- Main Content Container (1200px) -->
<div class="page-shell">
<!-- Header with Title -->
<div class="flex items-center justify-between mb-8">
<div class="flex items-center gap-6">
<img src="static/techmore.png" class="h-12 w-auto">
<div>
<h1 class="text-4xl font-display italic text-olive-950">TM-NMAPUI</h1>
<div class="flex items-center gap-2">
<div id="app-version" class="text-sm text-olive-600 font-medium">v2026.5.2.15.58</div>
<a
href="https://github.com/techmore/NmapUI"
target="_blank"
rel="noopener noreferrer"
class="inline-flex items-center justify-center rounded-full bg-olive-100 p-1.5 text-olive-700 transition-colors hover:bg-olive-200 hover:text-olive-900"
aria-label="Open NmapUI GitHub repository"
>
<svg class="size-4" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
<path d="M8 0C3.58 0 0 3.67 0 8.2c0 3.63 2.29 6.71 5.47 7.8.4.08.55-.18.55-.4 0-.2-.01-.86-.01-1.56-2.01.38-2.53-.5-2.69-.96-.09-.24-.48-.96-.82-1.15-.28-.16-.68-.56-.01-.57.63-.01 1.08.59 1.23.83.72 1.24 1.87.89 2.33.68.07-.54.28-.89.51-1.09-1.78-.21-3.64-.92-3.64-4.09 0-.9.31-1.64.82-2.22-.08-.21-.36-1.05.08-2.18 0 0 .67-.22 2.2.85.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.07 2.2-.85 2.2-.85.44 1.13.16 1.97.08 2.18.51.58.82 1.31.82 2.22 0 3.18-1.87 3.88-3.65 4.09.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .22.15.48.55.4A8.24 8.24 0 0 0 16 8.2C16 3.67 12.42 0 8 0Z" />
</svg>
</a>
<button id="app-update-badge" onclick="showUpdateModal()" class="hidden px-2 py-0.5 bg-amber-500 text-white text-[10px] font-bold rounded-full hover:bg-amber-600 transition-colors">
Update Available
</button>
</div>
</div>
</div>
<div id="current-date-time" class="text-xl font-display text-olive-950 text-center"></div>
<div class="flex items-center gap-8">
</div>
</div>
<div class="mb-6 rounded-2xl border border-olive-200 bg-white/85 p-2 shadow-sm backdrop-blur">
<div class="flex flex-wrap items-center gap-2">
<button id="tab-dashboard-btn" class="action-button action-button-primary" aria-label="Show dashboard tab">
Dashboard
</button>
<button id="tab-history-btn" class="action-button text-olive-700 hover:bg-olive-100" aria-label="Show history tab">
History
</button>
<button id="tab-reports-btn" class="action-button text-olive-700 hover:bg-olive-100 relative" aria-label="Show reports tab">
Reports
<span id="reports-badge" class="hidden absolute -top-2 -right-3 flex items-center justify-center min-w-[1.25rem] h-5 px-1.5 rounded-full bg-olive-700 text-white text-[9px] font-black shadow-lg border-2 border-white">0</span>
</button>
<button id="tab-customers-btn" class="action-button text-olive-700 hover:bg-olive-100" aria-label="Show customers tab">
Customers
</button>
<button id="tab-logs-btn" class="action-button text-olive-700 hover:bg-olive-100" aria-label="Show logs tab">
Logs
</button>
<button id="tab-settings-btn" class="action-button text-olive-700 hover:bg-olive-100" aria-label="Show settings tab">
Settings
</button>
</div>
</div>
<div id="dashboard-tab-panel">
<!-- Auto-Update Banner -->
<div id="auto-update-banner" class="hidden fixed top-16 left-4 right-4 z-50 bg-gradient-to-r from-olive-600 to-olive-700 text-white p-4 rounded-lg shadow-lg border border-olive-500 max-w-2xl mx-auto">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-4">
<div class="flex-shrink-0">
<svg class="w-6 h-6" fill="currentColor" viewBox="0 0 20 20">
<path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-8.293l-3-3a1 1 0 00-1.414 0l-3 3a1 1 0 001.414 1.414L9 9.414V13a1 1 0 102 0V9.414l1.293 1.293a1 1 0 001.414-1.414z" clip-rule="evenodd"/>
</svg>
</div>
<div>
<h3 class="text-lg font-semibold">Update Available!</h3>
<p id="update-description" class="text-olive-100">NmapUI v2026.5.2.15.58 is ready to install</p>
</div>
</div>
<div class="flex items-center space-x-4">
<div class="text-center">
<div id="countdown-timer" class="text-3xl font-mono font-bold text-olive-100">
30
</div>
<div class="text-xs text-olive-200">seconds</div>
</div>
<div class="flex space-x-2">
<button id="update-now-btn" class="bg-white text-olive-700 px-4 py-2 rounded-lg font-medium hover:bg-olive-50 transition-colors text-sm">
Update Now
</button>
<button id="cancel-update-btn" class="bg-olive-500 text-white px-4 py-2 rounded-lg font-medium hover:bg-olive-400 transition-colors text-sm">
Cancel
</button>
</div>
</div>
</div>
<div class="mt-3">
<div class="bg-olive-500 rounded-full h-2 overflow-hidden">
<div id="progress-bar" class="bg-white h-2 rounded-full transition-all duration-1000" style="width: 100%"></div>
</div>
</div>
</div>
<!-- Hidden customer selector for JavaScript compatibility -->
<select id="current-customer" class="hidden">
<option value="">Auto-detect network...</option>
</select>
<div id="auto-scan-warning-banner" class="hidden mt-4 rounded-2xl border border-amber-300 bg-amber-50 px-5 py-4 shadow-sm">
<div class="flex flex-wrap items-center justify-between gap-4">
<div>
<div class="text-[11px] font-black uppercase tracking-widest text-amber-700">Upcoming Auto-Scan</div>
<div class="mt-1 text-sm font-medium text-amber-950">
A scheduled scan will begin soon.
<span id="auto-scan-warning-next-run" class="font-bold"></span>
</div>
</div>
<div class="text-right">
<div class="text-[10px] font-black uppercase tracking-widest text-amber-600">Starts In</div>
<div id="auto-scan-warning-countdown" class="text-2xl font-mono font-bold text-amber-900">--:--:--</div>
</div>
</div>
</div>
<!-- Local IP Info Panel -->
<div id="local-ip-panel" class="mt-4 p-4 bg-olive-50 rounded-xl shadow-sm border border-olive-300">
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 text-sm mb-4">
<div>
<span class="text-olive-500 block">Local IP</span>
<span id="local-ip-value" class="font-medium text-olive-950"></span>
</div>
<div>
<span class="text-olive-500 block">Subnet Mask</span>
<span id="subnet-mask-value" class="font-medium text-olive-950"></span>
</div>
<div>
<span class="text-olive-500 block">CIDR</span>
<span id="cidr-value" class="font-medium text-olive-950"></span>
</div>
<div>
<span class="text-olive-500 block">Public IP</span>
<span id="public-ip-value" class="font-medium text-olive-950"></span>
</div>
</div>
<div id="network-key-banner" class="p-4 bg-olive-50 text-olive-950 rounded-2xl shadow-sm border border-olive-200">
<div class="flex flex-col gap-4">
<div class="flex items-center justify-between border-b border-olive-100 pb-3">
<div class="flex items-center gap-3">
<span class="text-olive-600 text-xs font-bold uppercase tracking-widest">Network Topology</span>
</div>
<div class="flex items-center gap-8">
<div class="flex flex-col items-end">
<span class="text-[9px] uppercase tracking-tighter text-olive-400 font-black">Hops</span>
<span id="total-hops" class="text-sm font-mono font-bold text-olive-900">--</span>
</div>
<div class="flex flex-col items-end border-l border-olive-100 pl-4">
<span class="text-[9px] uppercase tracking-tighter text-amber-500 font-black">Private</span>
<span id="private-hops" class="text-sm font-mono font-bold text-amber-600">--</span>
</div>
<div class="flex flex-col items-end border-l border-olive-100 pl-4">
<span class="text-[9px] uppercase tracking-tighter text-emerald-500 font-black">Public</span>
<span id="public-hops" class="text-sm font-mono font-bold text-emerald-600">--</span>
</div>
<div class="flex flex-col items-end border-l border-olive-100 pl-4">
<span class="text-[9px] uppercase tracking-tighter text-olive-400 font-black">Exit</span>
<span id="exit-ip" class="text-sm font-mono font-bold text-olive-900">--</span>
</div>
</div>
</div>
<div id="route-path" class="flex items-center flex-wrap gap-2 py-1">
<span class="text-olive-400 text-xs italic">Mapping active route...</span>
</div>
</div>
</div>
</div>
<section id="history-tab-panel" class="hidden rounded-3xl border border-olive-200 bg-white/80 p-6 shadow-sm backdrop-blur">
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-olive-100 pb-4">
<div>
<h2 class="text-3xl font-display italic text-olive-950">History</h2>
<p class="mt-1 text-sm text-olive-600">Review prior scans, compare selected scan pairs, and reopen historical artifacts.</p>
</div>
<div class="flex flex-wrap gap-2">
<button id="history-focus-current-btn" class="action-button action-button-primary action-button-compact" aria-label="Focus history on the current network context">
Current Context
</button>
<button id="history-focus-all-btn" class="action-button action-button-secondary action-button-compact" aria-label="Show all history">
All History
</button>
<button id="refresh-history-tab-btn" class="action-button action-button-primary action-button-compact" aria-label="Refresh scan history">
Refresh History
</button>
</div>
</div>
<div id="history-tab-status" class="mt-4 hidden rounded-xl bg-olive-50 px-4 py-3 text-sm text-olive-800"></div>
<div id="history-context-panel" class="mt-4 hidden rounded-2xl border border-olive-200 bg-white p-5 shadow-sm"></div>
<div id="history-compare-status" class="mt-4 hidden rounded-xl bg-olive-50 px-4 py-3 text-sm text-olive-800"></div>
<div id="history-compare-panel" class="mt-4 hidden rounded-2xl border border-olive-200 bg-olive-50 p-5">
<h3 class="text-xl font-display italic text-olive-950">Scan Comparison</h3>
<p id="history-compare-summary" class="mt-2 text-sm text-olive-700"></p>
<div id="history-compare-details" class="mt-4 grid gap-4 lg:grid-cols-2"></div>
</div>
<div id="history-tab-list" class="mt-6 grid gap-4 md:grid-cols-2 xl:grid-cols-3"></div>
</section>
<section id="reports-tab-panel" class="hidden rounded-3xl border border-olive-200 bg-white/80 p-6 shadow-sm backdrop-blur">
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-olive-100 pb-4">
<div>
<h2 class="text-3xl font-display italic text-olive-950">Reports</h2>
<p class="mt-1 text-sm text-olive-600">Open completed scan reports without relying on transient status messages.</p>
</div>
<button id="refresh-reports-btn" class="action-button action-button-primary action-button-compact" aria-label="Refresh available reports">
Refresh Reports
</button>
</div>
<div id="reports-tab-status" class="mt-4 hidden rounded-xl bg-olive-50 px-4 py-3 text-sm text-olive-800"></div>
<div id="reports-customer-filters" class="mt-4 flex flex-wrap gap-2"></div>
<div id="reports-tab-list" class="mt-4 grid gap-3 md:grid-cols-2 xl:grid-cols-4"></div>
</section>
<section id="customers-tab-panel" class="hidden rounded-3xl border border-olive-200 bg-white/80 p-6 shadow-sm backdrop-blur">
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-olive-100 pb-4">
<div>
<h2 class="text-3xl font-display italic text-olive-950">Customers</h2>
<p class="mt-1 text-sm text-olive-600">Manage customer identities, public IP mappings, and assignment data used by reports and history.</p>
</div>
<div class="flex flex-wrap gap-2">
<button id="refresh-customers-tab-btn" class="action-button action-button-secondary action-button-compact" aria-label="Refresh customers">
Refresh Customers
</button>
<button id="add-customer-tab-btn" class="action-button action-button-primary action-button-compact" aria-label="Add customer from customers tab">
Add Customer
</button>
</div>
</div>
<div id="customers-tab-status" class="mt-4 hidden rounded-xl bg-olive-50 px-4 py-3 text-sm text-olive-800"></div>
<div class="mt-6 rounded-2xl border border-olive-200 bg-olive-50 p-5">
<div class="grid gap-4 lg:grid-cols-[1fr_220px_auto] lg:items-end">
<div>
<h3 class="text-xl font-display italic text-olive-950">WAN Fingerprint</h3>
<p id="customer-fingerprint-summary" class="mt-2 font-mono text-xs text-olive-700">Waiting for WAN fingerprint</p>
<p id="customer-fingerprint-folder" class="mt-1 font-mono text-[11px] text-olive-500"></p>
</div>
<div>
<label for="customer-profile-prefix" class="block text-xs font-bold uppercase tracking-wider text-olive-600">Report Prefix</label>
<input id="customer-profile-prefix" type="text" class="form-control form-control-md mt-1" placeholder="CSP">
</div>
<button id="save-customer-prefix-btn" class="action-button action-button-primary action-button-compact" aria-label="Save report prefix">
Save Prefix
</button>
</div>
</div>
<div id="customers-tab-list" class="mt-6 grid gap-4 md:grid-cols-2 xl:grid-cols-3"></div>
</section>
<section id="logs-tab-panel" class="hidden rounded-3xl border border-olive-200 bg-white/80 p-6 shadow-sm backdrop-blur">
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-olive-100 pb-4">
<div>
<h2 class="text-3xl font-display italic text-olive-950">Logs</h2>
<p class="mt-1 text-sm text-olive-600">Inspect live scan, report, update, and runtime events with searchable filters and export.</p>
</div>
<div class="flex flex-wrap gap-2">
<button id="logs-export-btn" class="action-button action-button-secondary action-button-compact" aria-label="Export visible log entries">
Export Visible Logs
</button>
<button id="logs-clear-btn" class="action-button action-button-secondary action-button-compact" aria-label="Clear captured log entries">
Clear Logs
</button>
<button onclick="toggleLogPanel()" class="action-button action-button-primary action-button-compact" aria-label="Open live audit log drawer">
Open Live Drawer
</button>
</div>
</div>
<div class="mt-6 grid gap-4 lg:grid-cols-[minmax(0,1fr)_260px]">
<div class="rounded-2xl border border-olive-200 bg-zinc-950 p-4 shadow-inner">
<div class="flex flex-wrap items-center justify-between gap-3 border-b border-zinc-800 pb-3">
<div>
<p class="text-xs font-bold uppercase tracking-widest text-olive-400">Runtime Log Stream</p>
<p id="logs-tab-count" class="mt-1 text-xs text-zinc-400">0 visible entries</p>
</div>
<input
type="search"
id="logs-search-input"
class="form-control form-control-sm w-full max-w-xs border-zinc-700 bg-zinc-900 text-zinc-100 placeholder-zinc-500"
placeholder="Search target, message, level, or timestamp"
aria-label="Search log entries"
>
</div>
<div id="logs-tab-empty" class="mt-4 rounded-xl border border-zinc-800 bg-zinc-900 px-4 py-3 text-sm text-zinc-400">
No log entries captured yet.
</div>
<div id="logs-tab-entries" class="mt-4 hidden max-h-[32rem] space-y-1 overflow-y-auto rounded-xl border border-zinc-800 bg-zinc-950 px-4 py-3 font-mono text-xs"></div>
</div>
<aside class="rounded-2xl border border-olive-200 bg-olive-50 p-5">
<h3 class="text-xl font-display italic text-olive-900">Filters</h3>
<div class="mt-4 space-y-4">
<div>
<label for="logs-level-filter" class="block text-xs font-bold uppercase tracking-widest text-olive-600">Severity / Type</label>
<select id="logs-level-filter" class="form-control form-control-md mt-2">
<option value="all">All events</option>
<option value="error">Errors</option>
<option value="warn">Warnings</option>
<option value="scan">Scan feedback</option>
<option value="raw">Raw output</option>
<option value="job">Job status</option>
<option value="report">Reports</option>
<option value="update">Updates</option>
</select>
</div>
<div class="rounded-xl border border-olive-200 bg-white px-4 py-3 text-sm text-olive-700">
Search matches timestamps, targets, messages, and event labels. Raw nmap output and runtime console errors are included in the same stream.
</div>
</div>
</aside>
</div>
</section>
<section id="settings-tab-panel" class="hidden rounded-3xl border border-olive-200 bg-white/80 p-6 shadow-sm backdrop-blur">
<div class="flex flex-wrap items-center justify-between gap-4 border-b border-olive-100 pb-4">
<div>
<h2 class="text-3xl font-display italic text-olive-950">Settings</h2>
<p class="mt-1 text-sm text-olive-600">Manage reusable target profiles, scan rules, and stored sync configuration from one place.</p>
</div>
<button id="save-settings-btn" class="action-button action-button-primary action-button-compact" aria-label="Save application settings">
Save Settings
</button>
</div>
<div id="settings-tab-status" class="mt-4 hidden rounded-xl bg-olive-50 px-4 py-3 text-sm text-olive-800"></div>
<div class="mt-6 grid gap-6 xl:grid-cols-[1.2fr,0.8fr]">
<div class="space-y-6">
<section class="rounded-2xl border border-olive-200 bg-olive-50 p-5">
<div class="flex items-center justify-between gap-3">
<div>
<h3 class="text-xl font-display italic text-olive-900">Target Profiles</h3>
<p class="mt-2 text-sm text-olive-700">Save common targets and customer assignments, then apply them back into the Dashboard with one click.</p>
</div>
<button id="refresh-settings-btn" class="action-button action-button-secondary action-button-compact" aria-label="Refresh settings">
Refresh
</button>
</div>
<div class="mt-4 grid gap-4 md:grid-cols-2">
<div>
<label for="settings-profile-name" class="block text-sm font-medium text-olive-800">Profile Name</label>
<input id="settings-profile-name" type="text" class="form-control form-control-md mt-1" placeholder="Branch office /24">
</div>
<div>
<label for="settings-profile-target" class="block text-sm font-medium text-olive-800">Target</label>
<input id="settings-profile-target" type="text" class="form-control form-control-md mt-1" placeholder="192.168.10.0/24">
</div>
<div>
<label for="settings-profile-customer" class="block text-sm font-medium text-olive-800">Customer</label>
<select id="settings-profile-customer" class="form-control form-control-md mt-1">
<option value="">Use current customer selection</option>
</select>
</div>
<div>
<label for="settings-profile-notes" class="block text-sm font-medium text-olive-800">Notes</label>
<input id="settings-profile-notes" type="text" class="form-control form-control-md mt-1" placeholder="Optional notes">
</div>
<label class="flex items-start gap-3 rounded-xl border border-olive-200 bg-white px-4 py-3">
<input id="settings-profile-scan-only-mode" type="checkbox" class="mt-1 size-4 rounded border-olive-300 text-olive-700 focus:ring-olive-500">
<span>
<span class="block text-sm font-semibold text-olive-900">Profile scan-only override</span>
<span class="block text-sm text-olive-700">Force unprivileged mode when this profile is active.</span>
</span>
</label>
<div>
<label for="settings-profile-excluded-targets" class="block text-sm font-medium text-olive-800">Profile Excluded Targets</label>
<textarea id="settings-profile-excluded-targets" rows="4" class="form-control form-control-md mt-1" placeholder="One host, range, or CIDR per line"></textarea>
</div>
<div>
<label for="settings-profile-max-scan-minutes" class="block text-sm font-medium text-olive-800">Profile max scan duration (minutes)</label>
<input id="settings-profile-max-scan-minutes" type="number" min="15" max="480" step="15" class="form-control form-control-md mt-1" placeholder="Use global default">
<p class="mt-2 text-xs text-olive-600">Overrides the global max scan duration when this profile is active.</p>
</div>
</div>
<div class="mt-4 flex flex-wrap gap-2">
<button id="add-target-profile-btn" class="action-button action-button-primary action-button-compact" aria-label="Add target profile">
Save Target Profile
</button>
<button id="capture-current-target-btn" class="action-button action-button-secondary action-button-compact" aria-label="Capture current dashboard target into settings form">
Use Current Dashboard Target
</button>
</div>
<div id="settings-profile-list" class="mt-5 grid gap-3"></div>
</section>
<section class="rounded-2xl border border-olive-200 bg-olive-50 p-5">
<h3 class="text-xl font-display italic text-olive-900">Scan Rules</h3>
<p class="mt-2 text-sm text-olive-700">Persist operator safety defaults without scattering them across runtime controls.</p>
<div class="mt-4 space-y-4">
<label class="flex items-start gap-3 rounded-xl border border-olive-200 bg-white px-4 py-3">
<input id="settings-scan-only-mode" type="checkbox" class="mt-1 size-4 rounded border-olive-300 text-olive-700 focus:ring-olive-500">
<span>
<span class="block text-sm font-semibold text-olive-900">Scan-only mode</span>
<span class="block text-sm text-olive-700">Force unprivileged scan technique and skip ARP MAC/vendor detection.</span>
</span>
</label>
<div>
<label for="settings-excluded-targets" class="block text-sm font-medium text-olive-800">Excluded Targets</label>
<textarea id="settings-excluded-targets" rows="5" class="form-control form-control-md mt-1" placeholder="One host, range, or CIDR per line"></textarea>
<p class="mt-2 text-xs text-olive-600">Exclusions are applied to Nmap-based scan flows. Current ARP discovery remains best-effort and may still touch excluded IPs outside scan-only mode.</p>
</div>
<div>
<label for="settings-max-scan-minutes" class="block text-sm font-medium text-olive-800">Max scan duration (minutes)</label>
<input id="settings-max-scan-minutes" type="number" min="15" max="480" step="15" class="form-control form-control-md mt-1" placeholder="120">
<p class="mt-2 text-xs text-olive-600">Comprehensive scans will stop after this limit and auto-split into smaller chunks if needed.</p>
</div>
</div>
</section>
<section class="rounded-2xl border border-olive-200 bg-olive-50 p-5">
<h3 class="text-xl font-display italic text-olive-900">Report Exports</h3>
<p class="mt-2 text-sm text-olive-700">Keep a copy of each report outside the app bundle for easy access.</p>
<div class="mt-4 space-y-4">
<label class="flex items-start gap-3 rounded-xl border border-olive-200 bg-white px-4 py-3">
<input id="settings-save-reports-desktop" type="checkbox" class="mt-1 size-4 rounded border-olive-300 text-olive-700 focus:ring-olive-500">
<span>
<span class="block text-sm font-semibold text-olive-900">Save reports to Desktop</span>
<span class="block text-sm text-olive-700">Copy report artifacts into a Desktop folder named <span class="font-semibold">nmapui-reports</span>.</span>
</span>
</label>
</div>
</section>
<section class="rounded-2xl border border-olive-200 bg-olive-50 p-5">
<h3 class="text-xl font-display italic text-olive-900">Auto-monitor Defaults</h3>
<p class="mt-2 text-sm text-olive-700">Define the default schedule used when you enable auto-monitoring for a customer.</p>
<div class="mt-4 grid gap-4 md:grid-cols-2">
<label class="flex items-start gap-3 rounded-xl border border-olive-200 bg-white px-4 py-3 md:col-span-2">
<input id="settings-auto-monitor-enabled-by-default" type="checkbox" class="mt-1 size-4 rounded border-olive-300 text-olive-700 focus:ring-olive-500">
<span>
<span class="block text-sm font-semibold text-olive-900">Enable new customer rules by default</span>
<span class="block text-sm text-olive-700">If disabled, new customer monitor rules start in a saved but paused state.</span>
</span>
</label>
<div>
<label for="settings-auto-monitor-recurrence" class="block text-sm font-medium text-olive-800">Recurrence</label>
<select id="settings-auto-monitor-recurrence" class="form-control form-control-md mt-1">
<option value="daily">Daily</option>
<option value="weekly">Weekly</option>
<option value="biweekly">Bi-weekly</option>
<option value="monthly">Monthly</option>
<option value="quarterly">Quarterly</option>
</select>
</div>
<div>
<label for="settings-auto-monitor-day" class="block text-sm font-medium text-olive-800">Weekday Anchor</label>
<select id="settings-auto-monitor-day" class="form-control form-control-md mt-1">
<option value="monday">Monday</option>
<option value="tuesday">Tuesday</option>
<option value="wednesday">Wednesday</option>
<option value="thursday">Thursday</option>
<option value="friday">Friday</option>
<option value="saturday">Saturday</option>
<option value="sunday">Sunday</option>
</select>
</div>
<div>
<label for="settings-auto-monitor-time" class="block text-sm font-medium text-olive-800">Run Time</label>
<input id="settings-auto-monitor-time" type="time" class="form-control form-control-md mt-1">
</div>
<div class="rounded-xl border border-olive-200 bg-white px-4 py-3 text-sm text-olive-700 md:col-span-2">
New customer rules default to <span class="font-semibold text-olive-900">Complete + PDF</span>. Existing customer-specific rules can still override the inherited schedule from the Customers tab.
</div>
</div>
</section>
</div>
<div class="space-y-6">
<section class="rounded-2xl border border-olive-200 bg-olive-50 p-5">
<h3 class="text-xl font-display italic text-olive-900">Sync Configuration</h3>
<p class="mt-2 text-sm text-olive-700">Store integration settings here now. Live sync flows remain tracked separately.</p>
<div class="mt-4 space-y-4">
<div class="rounded-xl border border-olive-200 bg-white p-4">
<label class="flex items-center gap-3">
<span class="inline-flex size-8 items-center justify-center rounded-lg bg-white shadow-sm border border-olive-200">
<svg viewBox="0 0 87.3 78" width="20" height="20" aria-hidden="true">
<path d="m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z" fill="#0066da"></path>
<path d="m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z" fill="#00ac47"></path>
<path d="m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z" fill="#ea4335"></path>
<path d="m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z" fill="#00832d"></path>
<path d="m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z" fill="#2684fc"></path>
<path d="m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z" fill="#ffba00"></path>
</svg>
</span>
<input id="settings-google-drive-enabled" type="checkbox" class="size-4 rounded border-olive-300 text-olive-700 focus:ring-olive-500">
<span class="text-sm font-semibold text-olive-900">Google Drive sync enabled</span>
</label>
<label for="settings-google-drive-folder" class="mt-3 block text-sm font-medium text-olive-800">Drive Folder ID</label>