BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

style.css 28.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/* ─── Duplicates panel ─────────────────────────────────── */
723#sidebar-duplicates {
724 margin-top: 1rem;
725 border-top: 1px solid var(--border);
726 padding-top: 0.75rem;
727}
728
729.sidebar-duplicates-heading {
730 font-size: 0.75rem;
731 font-weight: 600;
732 text-transform: uppercase;
733 letter-spacing: 0.05em;
734 color: var(--text-muted, #888);
735 margin: 0 0 0.4rem;
736}
737
738.sidebar-duplicates-list {
739 list-style: none;
740 margin: 0;
741 padding: 0;
742 display: flex;
743 flex-direction: column;
744 gap: 0.25rem;
745}
746
747.sidebar-duplicate-entry {
748 display: block;
749 width: 100%;
750 background: var(--surface2);
751 color: var(--text);
752 padding: 0.35rem 0.6rem;
753 text-align: left;
754 font-size: 0.8rem;
755 white-space: nowrap;
756 overflow: hidden;
757 text-overflow: ellipsis;
758 border-radius: var(--radius);
759 cursor: pointer;
760}
761
762.sidebar-duplicate-entry:hover {
763 background: var(--border);
764}
765
766.admin-size-feedback {
767 font-size: 0.82rem;
768 margin: 0.25rem 0 0.5rem;
769 padding: 0.25rem 0.5rem;
770 border-radius: var(--radius);
771}
772
773.admin-size-feedback.ok {
774 color: var(--accent);
775}
776
777.admin-size-feedback.err {
778 color: #e55;
779}
780
781/* =========================================================
782 MODALS
783 ========================================================= */
784.modal-overlay {
785 position: fixed;
786 inset: 0;
787 background: rgba(0, 0, 0, 0.65);
788 display: flex;
789 align-items: center;
790 justify-content: center;
791 z-index: 11000;
792}
793
794#file-conflict-modal,
795#overwrite-modal {
796 z-index: 11150;
797}
798
799.modal {
800 background: var(--surface);
801 border: 1px solid var(--border);
802 border-radius: var(--radius);
803 padding: 2rem;
804 width: min(560px, 94vw);
805 max-height: 90vh;
806 overflow-y: auto;
807 position: relative;
808}
809
810.modal.small {
811 width: min(340px, 94vw);
812}
813
814#confirm-modal .modal.confirm-modal-wide {
815 width: min(760px, 94vw);
816}
817
818.modal h2 {
819 font-size: 1.3rem;
820 margin-bottom: 1.25rem;
821}
822
823.modal h3 {
824 font-size: 1rem;
825 color: var(--text-muted);
826 margin: 1rem 0 0.5rem;
827}
828
829.modal-close {
830 position: absolute;
831 top: 0.75rem;
832 right: 0.75rem;
833 background: none;
834 color: var(--text-muted);
835 font-size: 1.1rem;
836 padding: 0.25rem 0.5rem;
837}
838
839.modal-close:hover {
840 color: var(--text);
841}
842
843.update-commit-list {
844 max-height: min(48vh, 420px);
845 overflow: auto;
846 border: 1px solid var(--border);
847 border-radius: 10px;
848 background: var(--bg);
849 padding: 0.6rem 0.8rem;
850}
851
852.update-commit-item + .update-commit-item {
853 margin-top: 0.9rem;
854 padding-top: 0.9rem;
855 border-top: 1px solid var(--border);
856}
857
858.update-commit-item h3 {
859 margin: 0;
860 font-size: 1.06rem;
861 font-weight: 700;
862 color: var(--text);
863}
864
865.update-commit-hash {
866 color: var(--text-muted);
867 font-weight: 600;
868 font-size: 0.9rem;
869}
870
871.update-commit-subject {
872 color: var(--text);
873}
874
875.update-commit-body {
876 margin: 0.45rem 0 0;
877 font-size: 0.94rem;
878 color: var(--text-muted);
879 line-height: 1.45;
880}
881
882/* =========================================================
883 FOLDER ICON PICKER
884 ========================================================= */
885.folder-icon-modal {
886 width: min(680px, 94vw);
887 max-height: 90vh;
888 display: flex;
889 flex-direction: column;
890 gap: 0.75rem;
891 overflow: hidden;
892}
893
894.folder-icon-grid {
895 display: grid;
896 grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
897 gap: 0.5rem;
898 max-height: 50vh;
899 overflow-y: auto;
900 padding: 0.25rem;
901 background: var(--bg);
902 border: 1px solid var(--border);
903 border-radius: var(--radius);
904}
905
906.folder-icon-filter {
907 width: 100%;
908 background: var(--bg);
909 border: 1px solid var(--border);
910 border-radius: 6px;
911 color: var(--text);
912 font-size: 0.9rem;
913 padding: 0.48rem 0.68rem;
914 outline: none;
915}
916
917.folder-icon-filter:focus {
918 border-color: var(--accent);
919}
920
921.folder-icon-cell {
922 display: flex;
923 flex-direction: column;
924 align-items: center;
925 gap: 0.3rem;
926 padding: 0.4rem;
927 border-radius: var(--radius);
928 border: 2px solid transparent;
929 cursor: pointer;
930 transition: border-color var(--transition), background var(--transition);
931}
932
933.folder-icon-cell:hover {
934 background: var(--surface2);
935}
936
937.folder-icon-cell.selected {
938 border-color: var(--accent);
939 background: rgba(91, 127, 255, 0.12);
940}
941
942.folder-icon-thumb {
943 width: 60px;
944 height: 60px;
945 object-fit: cover;
946 border-radius: 4px;
947 background: var(--surface2);
948}
949
950.folder-icon-label {
951 font-size: 0.68rem;
952 color: var(--text-muted);
953 word-break: break-all;
954 text-align: center;
955 max-width: 72px;
956 overflow: hidden;
957 display: -webkit-box;
958 -webkit-line-clamp: 2;
959 -webkit-box-orient: vertical;
960}
961
962.vjs-text-track-cue>div {
963 background: transparent !important;
964 text-shadow: 2px 0 black, -2px 0 black, 0 2px black, 0 -2px black,
965 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
966}
967
968/* Admin path list */
969.path-row {
970 display: flex;
971 align-items: center;
972 gap: 0.5rem;
973 padding: 0.4rem 0;
974 border-bottom: 1px solid var(--border);
975 font-size: 0.88rem;
976}
977
978.path-row span {
979 flex: 1;
980 word-break: break-all;
981}
982
983.path-row button {
984 background: none;
985 color: var(--danger);
986 padding: 0.2rem 0.5rem;
987}
988
989.path-add-row {
990 display: flex;
991 gap: 0.5rem;
992 margin: 0.5rem 0;
993}
994
995.path-add-row input {
996 flex: 1;
997 background: var(--bg);
998 border: 1px solid var(--border);
999 border-radius: 6px;
1000 padding: 0.45rem 0.7rem;
1001 color: var(--text);
1002 font-size: 0.9rem;
1003 outline: none;
1004}
1005
1006.path-add-row input:focus {
1007 border-color: var(--accent);
1008}
1009
1010.path-add-row button {
1011 background: var(--surface2);
1012 color: var(--text);
1013 padding: 0.45rem 0.9rem;
1014}
1015
1016.path-add-row button:hover {
1017 background: var(--border);
1018}
1019
1020.admin-favicon-row {
1021 display: flex;
1022 align-items: center;
1023 justify-content: space-between;
1024 margin: 0.35rem 0 0.6rem;
1025 font-size: 0.88rem;
1026 color: var(--text-muted);
1027}
1028
1029.admin-favicon-row .icon-btn {
1030 color: var(--text);
1031 background: var(--surface2);
1032}
1033
1034.admin-favicon-row .icon-btn:hover {
1035 background: var(--border);
1036}
1037
1038/* User list */
1039.user-row {
1040 display: flex;
1041 align-items: center;
1042 gap: 0.6rem;
1043 padding: 0.5rem 0;
1044 border-bottom: 1px solid var(--border);
1045}
1046
1047.user-row .user-name {
1048 flex: 1;
1049 font-weight: 600;
1050 font-size: 0.9rem;
1051}
1052
1053.user-row .user-admin-badge {
1054 font-size: 0.72rem;
1055 background: var(--accent);
1056 color: #fff;
1057 border-radius: 4px;
1058 padding: 0.1rem 0.4rem;
1059}
1060
1061.user-row button {
1062 background: none;
1063 color: var(--text-muted);
1064 padding: 0.2rem 0.5rem;
1065 font-size: 0.85rem;
1066}
1067
1068.user-row button:hover {
1069 color: var(--text);
1070}
1071
1072.user-row button.danger {
1073 color: var(--danger);
1074}
1075
1076#admin-orphan-userfolders-section {
1077 margin-top: 1rem;
1078 padding-top: 0.55rem;
1079 border-top: 1px solid var(--border);
1080}
1081
1082#admin-orphan-userfolders-section h4 {
1083 margin: 0 0 0.35rem;
1084 font-size: 0.86rem;
1085 color: var(--text);
1086}
1087
1088.orphan-folder-row .orphan-folder-meta {
1089 font-size: 0.8rem;
1090 color: var(--text-muted);
1091}
1092
1093/* User form permissions */
1094#user-permissions {
1095 margin-top: 0.75rem;
1096}
1097
1098#user-permissions h4 {
1099 font-size: 0.85rem;
1100 color: var(--text-muted);
1101 margin-bottom: 0.4rem;
1102}
1103
1104.perm-row {
1105 display: flex;
1106 align-items: center;
1107 gap: 0.75rem;
1108 flex-wrap: wrap;
1109 font-size: 0.85rem;
1110 margin-bottom: 0.4rem;
1111}
1112
1113.perm-row .perm-label {
1114 min-width: 130px;
1115 color: var(--text);
1116}
1117
1118.checkbox-label {
1119 display: flex;
1120 align-items: center;
1121 gap: 0.5rem;
1122 font-size: 0.9rem;
1123 margin-bottom: 0.5rem;
1124}
1125
1126.checkbox-label input[type="checkbox"] {
1127 width: 16px;
1128 height: 16px;
1129 accent-color: var(--accent);
1130}
1131
1132/* Form labels in modals */
1133.modal form label {
1134 display: flex;
1135 flex-direction: column;
1136 gap: 0.3rem;
1137 font-size: 0.85rem;
1138 color: var(--text-muted);
1139 margin-bottom: 0.9rem;
1140}
1141
1142.modal form input[type="text"],
1143.modal form input[type="password"] {
1144 background: var(--bg);
1145 border: 1px solid var(--border);
1146 border-radius: 6px;
1147 padding: 0.5rem 0.75rem;
1148 color: var(--text);
1149 font-size: 0.95rem;
1150 outline: none;
1151 transition: border-color var(--transition);
1152}
1153
1154.modal form input:focus {
1155 border-color: var(--accent);
1156}
1157
1158/* Admin user-folder controls use the same visual language as modal forms. */
1159#admin-userfolder-section label {
1160 display: flex;
1161 flex-direction: column;
1162 gap: 0.3rem;
1163 font-size: 0.85rem;
1164 color: var(--text-muted);
1165 margin-bottom: 0.9rem;
1166}
1167
1168#admin-userfolder-section input[type="text"] {
1169 background: var(--bg);
1170 border: 1px solid var(--border);
1171 border-radius: 6px;
1172 padding: 0.5rem 0.75rem;
1173 color: var(--text);
1174 font-size: 0.95rem;
1175 outline: none;
1176 transition: border-color var(--transition);
1177}
1178
1179#admin-userfolder-section input[type="text"]:focus {
1180 border-color: var(--accent);
1181}
1182
1183/* =========================================================
1184 FILE PREVIEW — SHARED MEDIA STYLES
1185 ========================================================= */
1186.preview-media {
1187 max-width: 100%;
1188 max-height: 100%;
1189 width: auto;
1190 height: auto;
1191 object-fit: contain;
1192}
1193
1194.preview-frame {
1195 width: 100%;
1196 height: 100%;
1197 border: none;
1198 border-radius: 8px;
1199 background: #fff;
1200}
1201
1202.preview-audio {
1203 width: min(640px, 95%);
1204}
1205
1206.preview-model-wrap {
1207 width: 100%;
1208 height: 100%;
1209 min-height: 240px;
1210 border: 1px solid var(--border);
1211 border-radius: 8px;
1212 background: #0d111a;
1213 display: flex;
1214 flex-direction: column;
1215 align-items: stretch;
1216 justify-content: stretch;
1217 overflow: hidden;
1218}
1219
1220.preview-model-canvas {
1221 flex: 1 1 auto;
1222 width: 100%;
1223 min-height: 180px;
1224 display: block;
1225 cursor: grab;
1226}
1227
1228.preview-model-canvas:active {
1229 cursor: grabbing;
1230}
1231
1232.preview-model-hint {
1233 margin: 0;
1234 padding: 0.45rem 0.7rem;
1235 border-top: 1px solid rgba(120, 128, 160, 0.35);
1236 color: #b8c4e8;
1237 font-size: 0.78rem;
1238 text-align: center;
1239}
1240
1241.preview-text {
1242 width: 100%;
1243 min-height: 100%;
1244 color: #dce4ff;
1245 background: #0d111a;
1246 border: 1px solid var(--border);
1247 border-radius: 8px;
1248 padding: 0.9rem;
1249 font: 0.85rem/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
1250 overflow: auto;
1251 white-space: pre;
1252 text-align: left;
1253}
1254
1255.preview-code .tok-comment {
1256 color: #6f7f9a;
1257}
1258
1259.preview-code .tok-string {
1260 color: #9ee37d;
1261}
1262
1263.preview-code .tok-number {
1264 color: #f8c46a;
1265}
1266
1267.preview-code .tok-keyword {
1268 color: #8bb4ff;
1269 font-weight: 600;
1270}
1271
1272.preview-code .tok-key {
1273 color: #59c8ff;
1274}
1275
1276.preview-unsupported {
1277 color: var(--text-muted);
1278 font-size: 0.95rem;
1279 max-width: 56ch;
1280 text-align: center;
1281}
1282
1283.preview-footer {
1284 border-top: 1px solid var(--border);
1285 padding: 0.8rem 1rem;
1286 display: flex;
1287 justify-content: flex-end;
1288}
1289
1290.preview-footer .primary {
1291 width: auto;
1292 margin-top: 0;
1293 min-width: 8rem;
1294}
1295
1296
1297
1298/* =========================================================
1299
1300.toast-msg {
1301 background: var(--surface2);
1302 border: 1px solid var(--border);
1303 border-radius: 8px;
1304 padding: 0.6rem 1.25rem;
1305 font-size: 0.9rem;
1306 animation: slideup 0.25s ease;
1307}
1308
1309.toast-msg.err {
1310 border-color: var(--danger);
1311 color: var(--danger);
1312}
1313
1314.toast-msg.ok {
1315 border-color: var(--success);
1316 color: var(--success);
1317}
1318
1319@keyframes slideup {
1320 from {
1321 opacity: 0;
1322 transform: translateY(12px);
1323 }
1324
1325 to {
1326 opacity: 1;
1327 transform: translateY(0);
1328 }
1329}
1330
1331/* =========================================================
1332 UPLOAD PROGRESS
1333 ========================================================= */
1334.upload-bar-wrap {
1335 position: fixed;
1336 bottom: 0;
1337 left: 0;
1338 right: 0;
1339 background: var(--surface);
1340 border-top: 1px solid var(--border);
1341 padding: 0.5rem 1rem;
1342 z-index: 80;
1343 font-size: 0.85rem;
1344}
1345
1346.upload-bar-track {
1347 height: 6px;
1348 background: var(--border);
1349 border-radius: 3px;
1350 margin-top: 0.3rem;
1351}
1352
1353.upload-bar-fill {
1354 height: 100%;
1355 background: var(--accent);
1356 border-radius: 3px;
1357 transition: width 0.2s linear;
1358}
1359
1360/* =========================================================
1361 RESPONSIVE — narrow screens
1362 ========================================================= */
1363@media (max-width: 600px) {
1364 #topbar {
1365 height: auto;
1366 min-height: var(--topbar-h);
1367 padding: 0.5rem 0.6rem;
1368 align-items: flex-start;
1369 flex-direction: column;
1370 }
1371
1372 #topbar>#btn-refresh {
1373 align-self: flex-start;
1374 }
1375
1376 #breadcrumb-wrap {
1377 width: 100%;
1378 }
1379
1380 #topbar-actions {
1381 width: 100%;
1382 flex-wrap: wrap;
1383 gap: 0.15rem;
1384 }
1385
1386 .top-search {
1387 order: -1;
1388 width: 100%;
1389 margin-right: 0;
1390 }
1391
1392 .top-search input {
1393 flex: 1;
1394 min-width: 0;
1395 width: auto;
1396 }
1397
1398 .topbar-dropdown-menu {
1399 position: fixed;
1400 top: calc(var(--topbar-h) + 0.35rem);
1401 left: 0.6rem;
1402 right: 0.6rem;
1403 min-width: 0;
1404 }
1405
1406 .topbar-dropdown-menu--right {
1407 left: 0.6rem;
1408 right: 0.6rem;
1409 }
1410
1411 .icon-btn {
1412 padding: 0.4rem 0.55rem;
1413 font-size: 0.82rem;
1414 }
1415
1416 #main-content {
1417 padding: 0.9rem;
1418 }
1419
1420 #file-grid {
1421 grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
1422 }
1423
1424 #app.sidebar-open #main-content {
1425 margin-right: 0;
1426 }
1427
1428 #sidebar {
1429 top: auto;
1430 right: 0;
1431 bottom: 0;
1432 left: 0;
1433 height: auto;
1434 max-height: min(68vh, calc(100vh - 0.5rem));
1435 padding: 0.9rem 0.9rem 1rem;
1436 border-left: none;
1437 border-top: 1px solid var(--border);
1438 width: 100%;
1439 border-radius: 14px 14px 0 0;
1440 box-shadow: 0 -12px 26px rgba(0, 0, 0, 0.34);
1441 gap: 0.55rem;
1442 }
1443
1444 #sidebar-close {
1445 display: inline-flex;
1446 position: absolute;
1447 top: 0.45rem;
1448 right: 0.45rem;
1449 border-color: var(--border);
1450 background: var(--surface2);
1451 }
1452
1453 #sidebar-name {
1454 padding-right: 2rem;
1455 }
1456
1457 #sidebar-icon svg {
1458 width: 54px;
1459 height: 54px;
1460 }
1461
1462 #sidebar-actions {
1463 margin-top: 0.2rem;
1464 }
1465
1466 .modal {
1467 padding: 1.25rem;
1468 }
1469
1470 .preview-overlay {
1471 padding: 0.8rem;
1472 }
1473
1474 .preview-sheet {
1475 width: 100%;
1476 height: 92vh;
1477 }
1478
1479 .preview-fold {
1480 width: 54px;
1481 height: 54px;
1482 }
1483
1484 .preview-close {
1485 top: 5px;
1486 right: 5px;
1487 }
1488}
1489
1490/* =========================================================
1491 DIALOG MODALS (confirm / prompt / overwrite)
1492 ========================================================= */
1493.dialog-message {
1494 color: var(--text-muted);
1495 font-size: 0.93rem;
1496 margin: 0 0 1.5rem;
1497 line-height: 1.5;
1498 word-break: break-word;
1499}
1500
1501.dialog-actions {
1502 display: flex;
1503 gap: 0.6rem;
1504 justify-content: flex-end;
1505 flex-wrap: wrap;
1506}
1507
1508.dialog-actions--overwrite {
1509 justify-content: space-between;
1510}
1511
1512.dialog-actions button {
1513 min-width: 5rem;
1514 background: var(--surface2);
1515 color: var(--text);
1516 padding: 0.5rem 1rem;
1517}
1518
1519.dialog-actions button:hover {
1520 background: var(--border);
1521}
1522
1523/* Override .primary full-width inside dialog rows */
1524.dialog-actions button.primary {
1525 width: auto;
1526 margin-top: 0;
1527}