A form builder that keeps forms and responses in TSV files: git-friendly, no database, CSV export.

0 downloads

Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-forms.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-forms.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-forms.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

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