BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

style.css 31.5 KiB Download Raw
1/* =========================================================
2 RESET & CUSTOM PROPERTIES
3 ========================================================= */
4*,
5*::before,
6*::after {
7 box-sizing: border-box;
8 margin: 0;
9 padding: 0;
10}
11
12:root {
13 --bg: #0f1117;
14 --surface: #1a1d27;
15 --surface2: #21242f;
16 --border: #2e3247;
17 --accent: #5b7fff;
18 --accent-hover: #7b9fff;
19 --text: #e8eaf0;
20 --text-muted: #7880a0;
21 --danger: #e05c6e;
22 --success: #3fcf8e;
23 --radius: 10px;
24 --topbar-h: 56px;
25 --sidebar-w: 300px;
26 --transition: 0.18s ease;
27}
28
29html,
30body {
31 height: 100%;
32 font-family: system-ui, -apple-system, sans-serif;
33}
34
35body {
36 background: var(--bg);
37 color: var(--text);
38 overflow: hidden;
39}
40
41.hidden {
42 display: none !important;
43}
44
45.muted {
46 color: var(--text-muted);
47}
48
49.error {
50 color: var(--danger);
51 font-size: 0.85rem;
52 margin-top: 0.3rem;
53}
54
55/* =========================================================
56 AUTH OVERLAY
57 ========================================================= */
58.overlay {
59 position: fixed;
60 inset: 0;
61 background: var(--bg);
62 display: flex;
63 align-items: center;
64 justify-content: center;
65 z-index: 100;
66}
67
68.auth-card {
69 background: var(--surface);
70 border: 1px solid var(--border);
71 border-radius: var(--radius);
72 padding: 2.5rem 2rem;
73 width: min(420px, 92vw);
74}
75
76.auth-card h1 {
77 font-size: 1.6rem;
78 margin-bottom: 0.5rem;
79}
80
81.auth-subtitle {
82 font-size: 0.88rem;
83 color: var(--text-muted);
84 margin-bottom: 1.2rem;
85}
86
87#auth-form label {
88 display: flex;
89 flex-direction: column;
90 gap: 0.3rem;
91 font-size: 0.85rem;
92 color: var(--text-muted);
93 margin-bottom: 1rem;
94}
95
96#auth-form input {
97 background: var(--bg);
98 border: 1px solid var(--border);
99 border-radius: 6px;
100 padding: 0.55rem 0.75rem;
101 color: var(--text);
102 font-size: 1rem;
103 outline: none;
104 transition: border-color var(--transition);
105}
106
107#auth-form input:focus {
108 border-color: var(--accent);
109}
110
111/* =========================================================
112 BUTTONS
113 ========================================================= */
114button {
115 cursor: pointer;
116 border: none;
117 border-radius: 6px;
118 font-size: 0.9rem;
119 transition: background var(--transition), color var(--transition);
120}
121
122.icon-btn {
123 display: flex;
124 align-items: center;
125 gap: 0.4rem;
126 background: transparent;
127 color: var(--text-muted);
128 padding: 0.4rem 0.7rem;
129 border-radius: 6px;
130 position: relative;
131}
132
133.icon-btn:hover {
134 background: var(--surface2);
135 color: var(--text);
136}
137
138.icon-btn svg {
139 width: 18px;
140 height: 18px;
141}
142
143.topbar-badge {
144 position: absolute;
145 top: -0.25rem;
146 right: -0.3rem;
147 min-width: 1.1rem;
148 height: 1.1rem;
149 padding: 0 0.28rem;
150 border-radius: 999px;
151 background: #d33131;
152 color: #fff;
153 font-size: 0.68rem;
154 font-weight: 700;
155 line-height: 1.1rem;
156 text-align: center;
157 border: 1px solid var(--surface);
158}
159
160button[type="submit"],
161.primary {
162 background: var(--accent);
163 color: #fff;
164 padding: 0.55rem 1.2rem;
165 font-weight: 600;
166 width: 100%;
167 margin-top: 0.5rem;
168}
169
170button[type="submit"]:hover,
171.primary:hover {
172 background: var(--accent-hover);
173}
174
175button.danger {
176 background: var(--surface2);
177 color: var(--danger);
178 padding: 0.55rem 1.2rem;
179 width: 100%;
180 margin-top: 0.5rem;
181}
182
183button.danger:hover {
184 background: var(--border);
185}
186
187button.danger.admin-update-highlight {
188 animation: admin-update-pulse 0.9s ease-in-out 2;
189}
190
191@keyframes admin-update-pulse {
192 0% {
193 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0.55);
194 transform: scale(1);
195 }
196
197 50% {
198 box-shadow: 0 0 0 10px rgba(211, 49, 49, 0);
199 transform: scale(1.02);
200 }
201
202 100% {
203 box-shadow: 0 0 0 0 rgba(211, 49, 49, 0);
204 transform: scale(1);
205 }
206}
207
208/* =========================================================
209 TOP BAR
210 ========================================================= */
211#app {
212 display: flex;
213 flex-direction: column;
214 height: 100vh;
215}
216
217#topbar {
218 height: var(--topbar-h);
219 background: var(--surface);
220 border-bottom: 1px solid var(--border);
221 display: flex;
222 align-items: center;
223 padding: 0 1rem;
224 gap: 0.5rem;
225 flex-shrink: 0;
226}
227
228#topbar>#btn-refresh {
229 flex: 0 0 auto;
230}
231
232#breadcrumb-wrap {
233 flex: 1;
234 min-width: 0;
235}
236
237#breadcrumb {
238 display: flex;
239 align-items: center;
240 flex-wrap: wrap;
241 gap: 0.1rem;
242 font-size: 0.9rem;
243 white-space: nowrap;
244 overflow: hidden;
245}
246
247#breadcrumb .crumb {
248 color: var(--text-muted);
249 background: none;
250 padding: 0.2rem 0.35rem;
251 border-radius: 4px;
252 text-decoration: none;
253 cursor: pointer;
254}
255
256#breadcrumb .crumb:hover {
257 color: var(--text);
258 background: var(--surface2);
259}
260
261#breadcrumb .crumb.active {
262 color: var(--text);
263 cursor: default;
264}
265
266#breadcrumb .sep {
267 color: var(--border);
268 user-select: none;
269}
270
271#topbar-actions {
272 display: flex;
273 align-items: center;
274 gap: 0.25rem;
275 flex-shrink: 0;
276 position: relative;
277}
278
279.topbar-dropdown {
280 position: relative;
281}
282
283.topbar-dropdown-menu {
284 position: absolute;
285 top: calc(100% + 0.4rem);
286 left: 0;
287 min-width: 180px;
288 background: var(--surface);
289 border: 1px solid var(--border);
290 border-radius: var(--radius);
291 box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
292 padding: 0.35rem;
293 z-index: 140;
294 display: none;
295}
296
297.topbar-dropdown-menu--right {
298 left: auto;
299 right: 0;
300}
301
302.topbar-dropdown.open .topbar-dropdown-menu {
303 display: flex;
304 flex-direction: column;
305 gap: 0.2rem;
306}
307
308.topbar-menu-item {
309 display: flex;
310 align-items: center;
311 gap: 0.48rem;
312 width: 100%;
313 background: transparent;
314 color: var(--text-muted);
315 border-radius: 6px;
316 padding: 0.45rem 0.55rem;
317 text-align: left;
318 position: relative;
319}
320
321.topbar-menu-item svg {
322 width: 16px;
323 height: 16px;
324 flex: 0 0 auto;
325}
326
327.topbar-menu-item:hover {
328 background: var(--surface2);
329 color: var(--text);
330}
331
332.topbar-menu-item .topbar-badge {
333 top: -0.24rem;
334 right: -0.22rem;
335}
336
337.top-search {
338 display: flex;
339 align-items: center;
340 gap: 0.35rem;
341 margin-right: 0.2rem;
342}
343
344.top-search input {
345 width: min(34vw, 300px);
346 min-width: 150px;
347 background: var(--bg);
348 border: 1px solid var(--border);
349 border-radius: 6px;
350 color: var(--text);
351 font-size: 0.88rem;
352 padding: 0.42rem 0.6rem;
353 outline: none;
354}
355
356.top-search input:focus {
357 border-color: var(--accent);
358}
359
360#btn-search {
361 padding: 0.36rem 0.62rem;
362}
363
364.global-favicon-preview {
365 width: 18px;
366 height: 18px;
367 display: inline-flex;
368 align-items: center;
369 justify-content: center;
370 border-radius: 4px;
371 overflow: hidden;
372 color: #fff;
373}
374
375.global-favicon-preview svg,
376.global-favicon-preview img {
377 width: 100%;
378 height: 100%;
379 display: block;
380 object-fit: cover;
381}
382
383.icon-btn.icon-only {
384 width: 2rem;
385 height: 2rem;
386 padding: 0;
387 justify-content: center;
388}
389
390/* =========================================================
391 MAIN + SIDEBAR LAYOUT
392 ========================================================= */
393#main-content {
394 flex: 1;
395 overflow-y: auto;
396 padding: 1.25rem;
397 position: relative;
398}
399
400#folder-stats {
401 margin-bottom: 0.8rem;
402 font-size: 0.85rem;
403}
404
405/* Drop overlay */
406#drop-overlay {
407 position: absolute;
408 inset: 0;
409 background: rgba(91, 127, 255, 0.12);
410 border: 3px dashed var(--accent);
411 border-radius: var(--radius);
412 display: flex;
413 align-items: center;
414 justify-content: center;
415 z-index: 10;
416 font-size: 1.4rem;
417 color: var(--accent);
418 pointer-events: none;
419}
420
421/* When sidebar is open, shrink main content */
422#app.sidebar-open #main-content {
423 margin-right: var(--sidebar-w);
424}
425
426/* =========================================================
427 FILE GRID
428 ========================================================= */
429#file-grid {
430 display: grid;
431 grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
432 gap: 0.75rem;
433}
434
435.file-group-separator {
436 grid-column: 1 / -1;
437 display: flex;
438 align-items: center;
439 gap: 0.55rem;
440 margin-top: 0.1rem;
441 margin-bottom: 0.1rem;
442 color: var(--text-muted);
443 font-size: 0.76rem;
444 letter-spacing: 0.02em;
445}
446
447.file-group-separator::before,
448.file-group-separator::after {
449 content: '';
450 height: 1px;
451 background: var(--border);
452 flex: 1;
453}
454
455.file-group-separator span {
456 padding: 0.12rem 0.45rem;
457 border: 1px solid var(--border);
458 border-radius: 999px;
459 background: rgba(255, 255, 255, 0.02);
460 white-space: nowrap;
461}
462
463.file-item {
464 display: flex;
465 flex-direction: column;
466 align-items: center;
467 padding: 0.9rem 0.5rem 0.7rem;
468 border-radius: var(--radius);
469 border: 1px solid transparent;
470 cursor: pointer;
471 user-select: none;
472 transition: background var(--transition), border-color var(--transition);
473 text-align: center;
474 gap: 0.4rem;
475 position: relative;
476 touch-action: manipulation;
477}
478
479.file-item:hover {
480 background: var(--surface);
481 border-color: var(--border);
482}
483
484.file-item.file-item--preview-placeholder {
485 visibility: hidden;
486 pointer-events: none;
487}
488
489.file-item.selected {
490 background: var(--surface2);
491 border-color: var(--accent);
492}
493
494.file-item .icon {
495 width: 52px;
496 height: 52px;
497 display: flex;
498 align-items: center;
499 justify-content: center;
500 position: relative;
501}
502
503.file-item .icon.thumb-pending::after {
504 content: '';
505 position: absolute;
506 width: 14px;
507 height: 14px;
508 left: 50%;
509 top: 50%;
510 border: 2px solid rgba(232, 234, 240, 0.35);
511 border-top-color: var(--accent);
512 border-radius: 50%;
513 animation: icon-thumb-spin 0.75s linear infinite;
514 background: rgba(15, 17, 23, 0.85);
515}
516
517@keyframes icon-thumb-spin {
518 from {
519 transform: translate(-50%, -50%) rotate(0deg);
520 }
521
522 to {
523 transform: translate(-50%, -50%) rotate(360deg);
524 }
525}
526
527.file-item .icon svg {
528 width: 100%;
529 height: 100%;
530}
531
532.file-item .icon .watched-overlay {
533 position: absolute;
534 left: 50%;
535 top: 50%;
536 width: 28px;
537 height: 28px;
538 transform: translate(-50%, -50%);
539 display: flex;
540 align-items: center;
541 justify-content: center;
542 pointer-events: none;
543 border-radius: 50%;
544 background: rgba(15, 17, 23, 0.45);
545}
546
547.file-item .icon .watched-overlay--partway {
548 width: 16.8px;
549 height: 16.8px;
550}
551
552.file-item .icon .watched-overlay--partway path {
553 fill: #8f98a5;
554}
555
556.file-item .icon .watched-overlay-svg {
557 width: 100%;
558 height: 100%;
559}
560
561.file-item .name {
562 font-size: 0.8rem;
563 word-break: normal;
564 overflow-wrap: anywhere;
565 max-width: 100%;
566 line-height: 1.3;
567 color: var(--text);
568 white-space: normal;
569 overflow: hidden;
570 text-overflow: ellipsis;
571 max-height: calc(1.3em * 4);
572 display: -webkit-box;
573 -webkit-box-orient: vertical;
574 -webkit-line-clamp: 4;
575 line-clamp: 4;
576}
577
578/* =========================================================
579 SIDEBAR
580 ========================================================= */
581#sidebar {
582 position: fixed;
583 top: var(--topbar-h);
584 right: 0;
585 bottom: 0;
586 width: var(--sidebar-w);
587 background: var(--surface);
588 border-left: 1px solid var(--border);
589 padding: 1.25rem;
590 overflow-y: auto;
591 z-index: 20;
592 display: flex;
593 flex-direction: column;
594 gap: 0.75rem;
595}
596
597#sidebar-close {
598 display: none;
599 align-items: center;
600 justify-content: center;
601 width: 1.7rem;
602 height: 1.7rem;
603 border: 1px solid transparent;
604 border-radius: 999px;
605 background: transparent;
606 color: var(--text-muted);
607 font-size: 1rem;
608 line-height: 1;
609}
610
611#sidebar-close:hover {
612 background: var(--surface2);
613 color: var(--text);
614}
615
616#sidebar-icon {
617 display: flex;
618 justify-content: center;
619}
620
621#sidebar-icon svg {
622 width: 64px;
623 height: 64px;
624}
625
626#sidebar-name {
627 font-size: 1rem;
628 word-break: break-all;
629 text-align: center;
630}
631
632#sidebar-meta {
633 display: grid;
634 grid-template-columns: auto 1fr;
635 gap: 0.3rem 0.75rem;
636}
637
638#sidebar-meta dt {
639 color: var(--text-muted);
640 font-size: 0.8rem;
641 font-weight: 600;
642}
643
644#sidebar-meta dd {
645 font-size: 0.8rem;
646 word-break: break-all;
647}
648
649#sidebar-meta .root-access-list {
650 margin: 0;
651 padding-left: 1rem;
652}
653
654#sidebar-meta .root-access-list li {
655 margin: 0.12rem 0;
656}
657
658#sidebar-actions {
659 display: flex;
660 flex-direction: column;
661 gap: 0.5rem;
662 margin-top: 0.5rem;
663}
664
665#sidebar-actions button {
666 background: var(--surface2);
667 color: var(--text);
668 padding: 0.5rem 0.8rem;
669 text-align: left;
670}
671
672#sidebar-actions button:hover {
673 background: var(--border);
674}
675
676#sidebar-actions button.danger {
677 color: var(--danger);
678}
679
680.sidebar-view-options {
681 display: flex;
682 flex-direction: column;
683 gap: 0.5rem;
684 border-top: 1px solid var(--border);
685 padding-top: 0.7rem;
686 margin-top: 0.2rem;
687}
688
689.sidebar-view-options h3 {
690 margin: 0;
691 font-size: 0.82rem;
692 color: var(--text-muted);
693 text-transform: uppercase;
694 letter-spacing: 0.04em;
695}
696
697.sidebar-view-option-label {
698 display: flex;
699 flex-direction: column;
700 gap: 0.28rem;
701 font-size: 0.8rem;
702 color: var(--text-muted);
703}
704
705.sidebar-view-option-control {
706 width: 100%;
707 background: var(--surface2);
708 border: 1px solid var(--border);
709 border-radius: var(--radius);
710 color: var(--text);
711 padding: 0.42rem 0.5rem;
712}
713
714.sidebar-view-toggle {
715 display: flex;
716 align-items: center;
717 gap: 0.45rem;
718 font-size: 0.8rem;
719 color: var(--text);
720}
721
722.custom-context-menu {
723 position: fixed;
724 min-width: 220px;
725 max-width: min(320px, calc(100vw - 12px));
726 background: var(--surface);
727 border: 1px solid var(--border);
728 border-radius: var(--radius);
729 box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
730 padding: 0.35rem;
731 z-index: 12000;
732}
733
734.custom-context-menu button,
735.custom-context-menu .custom-context-menu-item {
736 display: flex;
737 align-items: center;
738 justify-content: space-between;
739 width: 100%;
740 background: transparent;
741 color: var(--text);
742 padding: 0.45rem 0.55rem;
743 text-align: left;
744 border-radius: 6px;
745}
746
747.custom-context-menu button:hover,
748.custom-context-menu .custom-context-menu-item:hover {
749 background: var(--surface2);
750}
751
752.custom-context-menu button.danger,
753.custom-context-menu .custom-context-menu-item.danger {
754 color: var(--danger);
755}
756
757.custom-context-menu-separator {
758 height: 1px;
759 background: var(--border);
760 margin: 0.32rem 0;
761}
762
763.custom-context-menu-row {
764 position: relative;
765}
766
767.custom-context-submenu {
768 position: absolute;
769 top: 0;
770 left: calc(100% + 0.3rem);
771 min-width: 210px;
772 background: var(--surface);
773 border: 1px solid var(--border);
774 border-radius: var(--radius);
775 box-shadow: 0 14px 28px rgba(0, 0, 0, 0.35);
776 padding: 0.35rem;
777 display: none;
778}
779
780.custom-context-menu-row:hover > .custom-context-submenu,
781.custom-context-menu-row:focus-within > .custom-context-submenu {
782 display: block;
783}
784
785/* ─── Duplicates panel ─────────────────────────────────── */
786#sidebar-duplicates {
787 margin-top: 1rem;
788 border-top: 1px solid var(--border);
789 padding-top: 0.75rem;
790}
791
792.sidebar-duplicates-heading {
793 font-size: 0.75rem;
794 font-weight: 600;
795 text-transform: uppercase;
796 letter-spacing: 0.05em;
797 color: var(--text-muted, #888);
798 margin: 0 0 0.4rem;
799}
800
801.sidebar-duplicates-list {
802 list-style: none;
803 margin: 0;
804 padding: 0;
805 display: flex;
806 flex-direction: column;
807 gap: 0.25rem;
808}
809
810.sidebar-duplicate-entry {
811 display: block;
812 width: 100%;
813 background: var(--surface2);
814 color: var(--text);
815 padding: 0.35rem 0.6rem;
816 text-align: left;
817 font-size: 0.8rem;
818 white-space: nowrap;
819 overflow: hidden;
820 text-overflow: ellipsis;
821 border-radius: var(--radius);
822 cursor: pointer;
823}
824
825.sidebar-duplicate-entry:hover {
826 background: var(--border);
827}
828
829.admin-size-feedback {
830 font-size: 0.82rem;
831 margin: 0.25rem 0 0.5rem;
832 padding: 0.25rem 0.5rem;
833 border-radius: var(--radius);
834}
835
836.admin-size-feedback.ok {
837 color: var(--accent);
838}
839
840.admin-size-feedback.err {
841 color: #e55;
842}
843
844/* =========================================================
845 MODALS
846 ========================================================= */
847.modal-overlay {
848 position: fixed;
849 inset: 0;
850 background: rgba(0, 0, 0, 0.65);
851 display: flex;
852 align-items: center;
853 justify-content: center;
854 z-index: 11000;
855}
856
857#file-conflict-modal,
858#overwrite-modal {
859 z-index: 11150;
860}
861
862.modal {
863 background: var(--surface);
864 border: 1px solid var(--border);
865 border-radius: var(--radius);
866 padding: 2rem;
867 width: min(560px, 94vw);
868 max-height: 90vh;
869 overflow-y: auto;
870 position: relative;
871}
872
873.modal.small {
874 width: min(340px, 94vw);
875}
876
877#confirm-modal .modal.confirm-modal-wide {
878 width: min(760px, 94vw);
879}
880
881.modal h2 {
882 font-size: 1.3rem;
883 margin-bottom: 1.25rem;
884}
885
886.modal h3 {
887 font-size: 1rem;
888 color: var(--text-muted);
889 margin: 1rem 0 0.5rem;
890}
891
892.modal-close {
893 position: absolute;
894 top: 0.75rem;
895 right: 0.75rem;
896 background: none;
897 color: var(--text-muted);
898 font-size: 1.1rem;
899 padding: 0.25rem 0.5rem;
900}
901
902.modal-close:hover {
903 color: var(--text);
904}
905
906.update-commit-list {
907 max-height: min(48vh, 420px);
908 overflow: auto;
909 border: 1px solid var(--border);
910 border-radius: 10px;
911 background: var(--bg);
912 padding: 0.6rem 0.8rem;
913}
914
915.update-commit-item + .update-commit-item {
916 margin-top: 0.9rem;
917 padding-top: 0.9rem;
918 border-top: 1px solid var(--border);
919}
920
921.update-commit-item h3 {
922 margin: 0;
923 font-size: 1.06rem;
924 font-weight: 700;
925 color: var(--text);
926}
927
928.update-commit-hash {
929 color: var(--text-muted);
930 font-weight: 600;
931 font-size: 0.9rem;
932}
933
934.update-commit-subject {
935 color: var(--text);
936}
937
938.update-commit-body {
939 margin: 0.45rem 0 0;
940 font-size: 0.94rem;
941 color: var(--text-muted);
942 line-height: 1.45;
943}
944
945/* =========================================================
946 FOLDER ICON PICKER
947 ========================================================= */
948.folder-icon-modal {
949 width: min(680px, 94vw);
950 max-height: 90vh;
951 display: flex;
952 flex-direction: column;
953 gap: 0.75rem;
954 overflow: hidden;
955}
956
957.folder-icon-grid {
958 display: grid;
959 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
960 gap: 0.5rem;
961 max-height: 50vh;
962 overflow-y: auto;
963 padding: 0.25rem;
964 background: var(--bg);
965 border: 1px solid var(--border);
966 border-radius: var(--radius);
967}
968
969.folder-icon-filter {
970 width: 100%;
971 background: var(--bg);
972 border: 1px solid var(--border);
973 border-radius: 6px;
974 color: var(--text);
975 font-size: 0.9rem;
976 padding: 0.48rem 0.68rem;
977 outline: none;
978}
979
980.folder-icon-filter:focus {
981 border-color: var(--accent);
982}
983
984.debug-modal {
985 width: min(980px, 96vw);
986 max-height: 92vh;
987}
988
989.debug-toolbar {
990 display: flex;
991 justify-content: space-between;
992 align-items: center;
993 gap: 0.8rem;
994 margin: 0.75rem 0 1rem;
995}
996
997.debug-summary-grid {
998 display: grid;
999 grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
1000 gap: 0.6rem;
1001 margin-bottom: 0.8rem;
1002}
1003
1004.debug-summary-item {
1005 background: var(--bg);
1006 border: 1px solid var(--border);
1007 border-radius: 10px;
1008 padding: 0.55rem 0.7rem;
1009}
1010
1011.debug-summary-item .k {
1012 display: block;
1013 color: var(--text-muted);
1014 font-size: 0.82rem;
1015}
1016
1017.debug-summary-item .v {
1018 display: block;
1019 color: var(--text);
1020 font-weight: 650;
1021 margin-top: 0.12rem;
1022}
1023
1024.debug-chips {
1025 display: flex;
1026 flex-wrap: wrap;
1027 gap: 0.45rem;
1028}
1029
1030.debug-chip {
1031 border: 1px solid var(--border);
1032 border-radius: 999px;
1033 padding: 0.22rem 0.6rem;
1034 background: var(--bg);
1035 font-size: 0.82rem;
1036}
1037
1038.debug-table-wrap {
1039 border: 1px solid var(--border);
1040 border-radius: 10px;
1041 overflow: auto;
1042 background: var(--bg);
1043}
1044
1045.debug-table {
1046 width: 100%;
1047 border-collapse: collapse;
1048 font-size: 0.85rem;
1049}
1050
1051.debug-table th,
1052.debug-table td {
1053 border-bottom: 1px solid var(--border);
1054 text-align: left;
1055 vertical-align: top;
1056 padding: 0.45rem 0.55rem;
1057}
1058
1059.debug-table thead th {
1060 position: sticky;
1061 top: 0;
1062 z-index: 1;
1063 background: var(--surface);
1064}
1065
1066.debug-table tr:last-child td {
1067 border-bottom: 0;
1068}
1069
1070.debug-path {
1071 font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
1072 word-break: break-word;
1073}
1074
1075.folder-icon-cell {
1076 display: flex;
1077 flex-direction: column;
1078 align-items: center;
1079 gap: 0.3rem;
1080 padding: 0.4rem;
1081 border-radius: var(--radius);
1082 border: 2px solid transparent;
1083 cursor: pointer;
1084 transition: border-color var(--transition), background var(--transition);
1085}
1086
1087.folder-icon-cell:hover {
1088 background: var(--surface2);
1089}
1090
1091.folder-icon-cell.selected {
1092 border-color: var(--accent);
1093 background: rgba(91, 127, 255, 0.12);
1094}
1095
1096.folder-icon-thumb {
1097 width: 60px;
1098 height: 60px;
1099 object-fit: cover;
1100 border-radius: 4px;
1101 background: var(--surface2);
1102}
1103
1104.folder-icon-label {
1105 font-size: 0.68rem;
1106 color: var(--text-muted);
1107 word-break: break-all;
1108 text-align: center;
1109 max-width: 72px;
1110 overflow: hidden;
1111 display: -webkit-box;
1112 -webkit-line-clamp: 2;
1113 -webkit-box-orient: vertical;
1114}
1115
1116.vjs-text-track-cue>div {
1117 background: transparent !important;
1118 text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black,
1119 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
1120}
1121
1122/* Admin path list */
1123.path-row {
1124 display: flex;
1125 align-items: center;
1126 gap: 0.5rem;
1127 padding: 0.4rem 0;
1128 border-bottom: 1px solid var(--border);
1129 font-size: 0.88rem;
1130}
1131
1132.path-row span {
1133 flex: 1;
1134 word-break: break-all;
1135}
1136
1137.path-row button {
1138 background: none;
1139 color: var(--danger);
1140 padding: 0.2rem 0.5rem;
1141}
1142
1143.path-add-row {
1144 display: flex;
1145 gap: 0.5rem;
1146 margin: 0.5rem 0;
1147}
1148
1149.path-add-row input {
1150 flex: 1;
1151 background: var(--bg);
1152 border: 1px solid var(--border);
1153 border-radius: 6px;
1154 padding: 0.45rem 0.7rem;
1155 color: var(--text);
1156 font-size: 0.9rem;
1157 outline: none;
1158}
1159
1160.path-add-row input:focus {
1161 border-color: var(--accent);
1162}
1163
1164.path-add-row button {
1165 background: var(--surface2);
1166 color: var(--text);
1167 padding: 0.45rem 0.9rem;
1168}
1169
1170.path-add-row button:hover {
1171 background: var(--border);
1172}
1173
1174.admin-favicon-row {
1175 display: flex;
1176 align-items: center;
1177 justify-content: space-between;
1178 margin: 0.35rem 0 0.6rem;
1179 font-size: 0.88rem;
1180 color: var(--text-muted);
1181}
1182
1183.admin-favicon-row .icon-btn {
1184 color: var(--text);
1185 background: var(--surface2);
1186}
1187
1188.admin-favicon-row .icon-btn:hover {
1189 background: var(--border);
1190}
1191
1192/* User list */
1193.user-row {
1194 display: flex;
1195 align-items: center;
1196 gap: 0.6rem;
1197 padding: 0.5rem 0;
1198 border-bottom: 1px solid var(--border);
1199}
1200
1201.user-row .user-name {
1202 flex: 1;
1203 font-weight: 600;
1204 font-size: 0.9rem;
1205}
1206
1207.user-row .user-admin-badge {
1208 font-size: 0.72rem;
1209 background: var(--accent);
1210 color: #fff;
1211 border-radius: 4px;
1212 padding: 0.1rem 0.4rem;
1213}
1214
1215.user-row button {
1216 background: none;
1217 color: var(--text-muted);
1218 padding: 0.2rem 0.5rem;
1219 font-size: 0.85rem;
1220}
1221
1222.user-row button:hover {
1223 color: var(--text);
1224}
1225
1226.user-row button.danger {
1227 color: var(--danger);
1228}
1229
1230#admin-orphan-userfolders-section {
1231 margin-top: 1rem;
1232 padding-top: 0.55rem;
1233 border-top: 1px solid var(--border);
1234}
1235
1236#admin-orphan-userfolders-section h4 {
1237 margin: 0 0 0.35rem;
1238 font-size: 0.86rem;
1239 color: var(--text);
1240}
1241
1242.orphan-folder-row .orphan-folder-meta {
1243 font-size: 0.8rem;
1244 color: var(--text-muted);
1245}
1246
1247/* User form permissions */
1248#user-permissions {
1249 margin-top: 0.75rem;
1250}
1251
1252#user-permissions h4 {
1253 font-size: 0.85rem;
1254 color: var(--text-muted);
1255 margin-bottom: 0.4rem;
1256}
1257
1258.perm-row {
1259 display: flex;
1260 align-items: center;
1261 gap: 0.75rem;
1262 flex-wrap: wrap;
1263 font-size: 0.85rem;
1264 margin-bottom: 0.4rem;
1265}
1266
1267.perm-row .perm-label {
1268 min-width: 130px;
1269 color: var(--text);
1270}
1271
1272.checkbox-label {
1273 display: flex;
1274 align-items: center;
1275 gap: 0.5rem;
1276 font-size: 0.9rem;
1277 margin-bottom: 0.5rem;
1278}
1279
1280.checkbox-label input[type="checkbox"] {
1281 width: 16px;
1282 height: 16px;
1283 accent-color: var(--accent);
1284}
1285
1286/* Form labels in modals */
1287.modal form label {
1288 display: flex;
1289 flex-direction: column;
1290 gap: 0.3rem;
1291 font-size: 0.85rem;
1292 color: var(--text-muted);
1293 margin-bottom: 0.9rem;
1294}
1295
1296.modal form input[type="text"],
1297.modal form input[type="password"] {
1298 background: var(--bg);
1299 border: 1px solid var(--border);
1300 border-radius: 6px;
1301 padding: 0.5rem 0.75rem;
1302 color: var(--text);
1303 font-size: 0.95rem;
1304 outline: none;
1305 transition: border-color var(--transition);
1306}
1307
1308.modal form input:focus {
1309 border-color: var(--accent);
1310}
1311
1312/* Admin user-folder controls use the same visual language as modal forms. */
1313#admin-userfolder-section label {
1314 display: flex;
1315 flex-direction: column;
1316 gap: 0.3rem;
1317 font-size: 0.85rem;
1318 color: var(--text-muted);
1319 margin-bottom: 0.9rem;
1320}
1321
1322#admin-userfolder-section input[type="text"] {
1323 background: var(--bg);
1324 border: 1px solid var(--border);
1325 border-radius: 6px;
1326 padding: 0.5rem 0.75rem;
1327 color: var(--text);
1328 font-size: 0.95rem;
1329 outline: none;
1330 transition: border-color var(--transition);
1331}
1332
1333#admin-userfolder-section input[type="text"]:focus {
1334 border-color: var(--accent);
1335}
1336
1337/* =========================================================
1338 FILE PREVIEW — SHARED MEDIA STYLES
1339 ========================================================= */
1340.preview-media {
1341 max-width: 100%;
1342 max-height: 100%;
1343 width: auto;
1344 height: auto;
1345 object-fit: contain;
1346}
1347
1348.preview-frame {
1349 width: 100%;
1350 height: 100%;
1351 border: none;
1352 border-radius: 8px;
1353 background: #fff;
1354}
1355
1356.preview-audio {
1357 width: min(640px, 95%);
1358}
1359
1360.preview-model-wrap {
1361 width: 100%;
1362 height: 100%;
1363 min-height: 240px;
1364 border: 1px solid var(--border);
1365 border-radius: 8px;
1366 background: #0d111a;
1367 display: flex;
1368 flex-direction: column;
1369 align-items: stretch;
1370 justify-content: stretch;
1371 overflow: hidden;
1372}
1373
1374.preview-model-canvas {
1375 flex: 1 1 auto;
1376 width: 100%;
1377 min-height: 180px;
1378 display: block;
1379 cursor: grab;
1380}
1381
1382.preview-model-canvas:active {
1383 cursor: grabbing;
1384}
1385
1386.preview-model-hint {
1387 margin: 0;
1388 padding: 0.45rem 0.7rem;
1389 border-top: 1px solid rgba(120, 128, 160, 0.35);
1390 color: #b8c4e8;
1391 font-size: 0.78rem;
1392 text-align: center;
1393}
1394
1395.preview-text {
1396 width: 100%;
1397 min-height: 100%;
1398 color: #dce4ff;
1399 background: #0d111a;
1400 border: 1px solid var(--border);
1401 border-radius: 8px;
1402 padding: 0.9rem;
1403 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1404 overflow: auto;
1405 white-space: pre;
1406 text-align: left;
1407}
1408
1409.preview-code .tok-comment {
1410 color: #6f7f9a;
1411}
1412
1413.preview-code .tok-string {
1414 color: #9ee37d;
1415}
1416
1417.preview-code .tok-number {
1418 color: #f8c46a;
1419}
1420
1421.preview-code .tok-keyword {
1422 color: #8bb4ff;
1423 font-weight: 600;
1424}
1425
1426.preview-code .tok-key {
1427 color: #59c8ff;
1428}
1429
1430.preview-unsupported {
1431 color: var(--text-muted);
1432 font-size: 0.95rem;
1433 max-width: 56ch;
1434 text-align: center;
1435}
1436
1437.preview-footer {
1438 border-top: 1px solid var(--border);
1439 padding: 0.8rem 1rem;
1440 display: flex;
1441 justify-content: flex-end;
1442}
1443
1444.preview-footer .primary {
1445 width: auto;
1446 margin-top: 0;
1447 min-width: 8rem;
1448}
1449
1450
1451
1452/* =========================================================
1453
1454.toast-msg {
1455 background: var(--surface2);
1456 border: 1px solid var(--border);
1457 border-radius: 8px;
1458 padding: 0.6rem 1.25rem;
1459 font-size: 0.9rem;
1460 animation: slideup 0.25s ease;
1461}
1462
1463.toast-msg.err {
1464 border-color: var(--danger);
1465 color: var(--danger);
1466}
1467
1468.toast-msg.ok {
1469 border-color: var(--success);
1470 color: var(--success);
1471}
1472
1473@keyframes slideup {
1474 from {
1475 opacity: 0;
1476 transform: translateY(12px);
1477 }
1478
1479 to {
1480 opacity: 1;
1481 transform: translateY(0);
1482 }
1483}
1484
1485/* =========================================================
1486 UPLOAD PROGRESS
1487 ========================================================= */
1488.upload-bar-wrap {
1489 position: fixed;
1490 bottom: 0;
1491 left: 0;
1492 right: 0;
1493 background: var(--surface);
1494 border-top: 1px solid var(--border);
1495 padding: 0.5rem 1rem;
1496 z-index: 80;
1497 font-size: 0.85rem;
1498}
1499
1500.upload-bar-track {
1501 height: 6px;
1502 background: var(--border);
1503 border-radius: 3px;
1504 margin-top: 0.3rem;
1505}
1506
1507.upload-bar-fill {
1508 height: 100%;
1509 background: var(--accent);
1510 border-radius: 3px;
1511 transition: width 0.2s linear;
1512}
1513
1514/* =========================================================
1515 RESPONSIVE — narrow screens
1516 ========================================================= */
1517@media (max-width: 600px) {
1518 #topbar {
1519 height: auto;
1520 min-height: var(--topbar-h);
1521 padding: 0.5rem 0.6rem;
1522 align-items: flex-start;
1523 flex-direction: column;
1524 }
1525
1526 #topbar>#btn-refresh {
1527 align-self: flex-start;
1528 }
1529
1530 #breadcrumb-wrap {
1531 width: 100%;
1532 }
1533
1534 #topbar-actions {
1535 width: 100%;
1536 flex-wrap: wrap;
1537 gap: 0.15rem;
1538 }
1539
1540 .top-search {
1541 order: -1;
1542 width: 100%;
1543 margin-right: 0;
1544 }
1545
1546 .top-search input {
1547 flex: 1;
1548 min-width: 0;
1549 width: auto;
1550 }
1551
1552 .topbar-dropdown-menu {
1553 position: fixed;
1554 top: calc(var(--topbar-h) + 0.35rem);
1555 left: 0.6rem;
1556 right: 0.6rem;
1557 min-width: 0;
1558 }
1559
1560 .topbar-dropdown-menu--right {
1561 left: 0.6rem;
1562 right: 0.6rem;
1563 }
1564
1565 .icon-btn {
1566 padding: 0.4rem 0.55rem;
1567 font-size: 0.82rem;
1568 }
1569
1570 #main-content {
1571 padding: 0.9rem;
1572 }
1573
1574 #file-grid {
1575 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1576 }
1577
1578 #app.sidebar-open #main-content {
1579 margin-right: 0;
1580 }
1581
1582 #sidebar {
1583 top: auto;
1584 right: 0;
1585 bottom: 0;
1586 left: 0;
1587 height: auto;
1588 max-height: min(68vh, calc(100vh - 0.5rem));
1589 padding: 0.9rem 0.9rem 1rem;
1590 border-left: none;
1591 border-top: 1px solid var(--border);
1592 width: 100%;
1593 border-radius: 14px 14px 0 0;
1594 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1595 gap: 0.55rem;
1596 }
1597
1598 #sidebar-close {
1599 display: inline-flex;
1600 position: absolute;
1601 top: 0.45rem;
1602 right: 0.45rem;
1603 border-color: var(--border);
1604 background: var(--surface2);
1605 }
1606
1607 #sidebar-name {
1608 padding-right: 2rem;
1609 }
1610
1611 #sidebar-icon svg {
1612 width: 54px;
1613 height: 54px;
1614 }
1615
1616 #sidebar-actions {
1617 margin-top: 0.2rem;
1618 }
1619
1620 .modal {
1621 padding: 1.25rem;
1622 }
1623
1624 .preview-overlay {
1625 padding: 0.8rem;
1626 }
1627
1628 .preview-sheet {
1629 width: 100%;
1630 height: 92vh;
1631 }
1632
1633 .preview-fold {
1634 width: 54px;
1635 height: 54px;
1636 }
1637
1638 .preview-close {
1639 top: 5px;
1640 right: 5px;
1641 }
1642}
1643
1644/* =========================================================
1645 DIALOG MODALS (confirm / prompt / overwrite)
1646 ========================================================= */
1647.dialog-message {
1648 color: var(--text-muted);
1649 font-size: 0.93rem;
1650 margin: 0 0 1.5rem;
1651 line-height: 1.5;
1652 word-break: break-word;
1653}
1654
1655.dialog-actions {
1656 display: flex;
1657 gap: 0.6rem;
1658 justify-content: flex-end;
1659 flex-wrap: wrap;
1660}
1661
1662.dialog-actions--overwrite {
1663 justify-content: space-between;
1664}
1665
1666.dialog-actions button {
1667 min-width: 5rem;
1668 background: var(--surface2);
1669 color: var(--text);
1670 padding: 0.5rem 1rem;
1671}
1672
1673.dialog-actions button:hover {
1674 background: var(--border);
1675}
1676
1677/* Override .primary full-width inside dialog rows */
1678.dialog-actions button.primary {
1679 width: auto;
1680 margin-top: 0;
1681}