File size: 4,828 Bytes
774fe36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/* ===== App Layout ===== */
.app-container { display: flex; height: 100vh; width: 100vw; overflow: hidden; }

/* ===== Sidebar ===== */
.sidebar {
    width: 220px; min-width: 220px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    z-index: 100; transition: transform var(--transition);
}

.sidebar-header { padding: 20px 16px 12px; border-bottom: 1px solid var(--border); }
.sidebar-header h1 { font-size: 1.3rem; font-weight: 700; color: var(--accent); letter-spacing: 0.5px; }
.sidebar-header .subtitle { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 8px; overflow-y: auto; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius);
    cursor: pointer; color: var(--text-secondary);
    font-size: 0.9rem; transition: all var(--transition);
    user-select: none; margin-bottom: 2px;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent); color: #ffffff; font-weight: 500; }
.nav-item .nav-icon { font-size: 1.15rem; width: 24px; text-align: center; flex-shrink: 0; }

.sidebar-footer {
    padding: 12px 16px; border-top: 1px solid var(--border);
    font-size: 0.75rem; color: var(--text-muted); text-align: center;
}

/* ===== Main Content ===== */
.main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.page-header {
    padding: 12px 24px; background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    min-height: 50px;
}
.page-header h2 { font-size: 1.1rem; font-weight: 600; }

.page-body { flex: 1; overflow: hidden; display: flex; }

.page-content { display: none; width: 100%; height: 100%; }
.page-content.active { display: flex; }

/* ===== Collapsible ===== */
.collapsible-section { margin-bottom: 14px; }

.collapsible-header {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; user-select: none; padding: 6px 0;
    border-radius: var(--radius); transition: color var(--transition);
}
.collapsible-header:hover { color: var(--accent); }

.collapsible-arrow {
    font-size: 0.7rem; color: var(--text-muted);
    transition: transform var(--transition);
    width: 14px; text-align: center; flex-shrink: 0;
}

.collapsible-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease;
    opacity: 0; padding-top: 0;
}
.collapsible-content.open { max-height: 5000px; opacity: 1; padding-top: 12px; }

/* ===== Upload Dropzone ===== */
.upload-dropzone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 16px; text-align: center; cursor: pointer;
    transition: all var(--transition); background: var(--bg-input);
}
.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: var(--accent); background: var(--bg-hover);
}
.upload-dropzone-text {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; color: var(--text-muted); font-size: 0.85rem;
}
.upload-icon { font-size: 1.5rem; opacity: 0.7; }
.upload-hint { font-size: 0.7rem; opacity: 0.6; }

/* ===== Queue Status ===== */
.queue-status {
    text-align: center; padding: 8px; font-size: 0.8rem;
    color: var(--text-muted); min-height: 30px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.queue-status .spinner {
    width: 14px; height: 14px;
    border: 2px solid var(--border); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}

/* ===== Mobile ===== */
.mobile-menu-btn {
    display: none; background: none; border: none;
    color: var(--text-primary); font-size: 1.3rem;
    cursor: pointer; padding: 4px 8px;
}

.sidebar-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 99;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .sidebar {
        position: fixed; left: 0; top: 0; height: 100%;
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
}

/* Dropzone focus for paste */
.upload-dropzone:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-color: var(--accent);
}

.upload-dropzone .paste-hint {
    font-size: 0.65rem;
    opacity: 0.5;
    margin-top: 2px;
}

.header-logout-btn {
    text-decoration: none;
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: var(--radius);
    transition: background var(--transition);
    cursor: pointer;
}

.header-logout-btn:hover {
    background: var(--bg-hover);
}