BlueGit

timfa filemanager

Files

filemanager / public / style.css

style.css

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