File size: 14,145 Bytes
84851c8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
/* ============================================================
   Utility Classes - Replacing inline styles for proper dark mode
   ============================================================ */

/* --- Icon background colors (semantic, dark-mode aware) --- */
.icon-bg-red    { background: #FED7D7; }
.icon-bg-green  { background: #C6F6D5; }
.icon-bg-purple { background: #E9D8FD; }
.icon-bg-blue   { background: #BEE3F8; }
.icon-bg-pink   { background: #FED7E2; }
.icon-bg-yellow { background: #FEFCBF; }
.icon-bg-orange { background: #FED7AA; }
.icon-bg-lavender { background: #EDE9FE; }
.icon-bg-lightblue { background: #DBEAFE; }

[data-theme="dark"] .icon-bg-red      { background: rgba(155,44,44,0.2); }
[data-theme="dark"] .icon-bg-green    { background: rgba(38,111,71,0.2); }
[data-theme="dark"] .icon-bg-purple   { background: rgba(85,60,154,0.2); }
[data-theme="dark"] .icon-bg-blue     { background: rgba(49,130,206,0.2); }
[data-theme="dark"] .icon-bg-pink     { background: rgba(155,44,96,0.2); }
[data-theme="dark"] .icon-bg-yellow   { background: rgba(151,90,22,0.2); }
[data-theme="dark"] .icon-bg-orange   { background: rgba(154,52,18,0.2); }
[data-theme="dark"] .icon-bg-lavender { background: rgba(85,60,154,0.2); }
[data-theme="dark"] .icon-bg-lightblue { background: rgba(49,130,206,0.2); }

/* --- Badge classes (replacing inline badge styles) --- */
.badge-team { background: var(--deep-blue); color: white; padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.badge-foreign { background: var(--border); color: var(--text-light); padding: 2px 8px; border-radius: 8px; font-size: 11px; }
.badge-chaoyang { background: var(--success); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-removed { background: var(--speed-red); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-pending { background: #ED8936; color: white; padding: 2px 8px; border-radius: 8px; font-size: 12px; }

[data-theme="dark"] .badge-pending { background: rgba(237,137,54,0.6); }

/* --- Button utility classes --- */
.btn-primary { padding: 4px 12px; border-radius: 8px; border: none; background: var(--deep-blue); color: white; cursor: pointer; font-size: 13px; transition: opacity 0.15s; }
.btn-primary:hover { opacity: 0.9; }
.btn-danger { padding: 4px 12px; border-radius: 8px; border: none; background: var(--speed-red); color: white; cursor: pointer; font-size: 13px; transition: opacity 0.15s; }
.btn-danger:hover { opacity: 0.9; }
.btn-success { padding: 4px 10px; border-radius: 8px; border: none; background: var(--success); color: white; cursor: pointer; font-size: 12px; }
.btn-outline { padding: 4px 12px; border-radius: 8px; border: none; background: var(--deep-blue); color: white; cursor: pointer; font-size: 12px; }
.btn-amber { padding: 4px 10px; border-radius: 8px; border: none; background: #ED8936; color: white; cursor: pointer; font-size: 12px; }
.btn-blue { padding: 4px 10px; border-radius: 8px; border: none; background: #2563EB; color: white; cursor: pointer; font-size: 12px; }
.btn-delete { color: #E53E3E; font-size: 12px; cursor: pointer; background: none; border: none; }

[data-theme="dark"] .btn-delete { color: #FC8181; }

/* --- Medal badges --- */
.medal-gold   { background: linear-gradient(135deg,#F6AD55,#ED8936); padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: white; }
.medal-silver { background: linear-gradient(135deg,#A0AEC0,#718096); padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: white; }
.medal-bronze { background: linear-gradient(135deg,#ED8936,#C05621); padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: white; }

/* --- Stat color classes --- */
.stat-green  { color: #38A169; }
.stat-purple { color: #805AD5; }
.stat-blue   { color: #2B6CB0; }
.stat-red    { color: #9B2C2C; }
.stat-gold   { color: #DD6B20; }
.stat-free   { color: #38A169; font-weight: 600; font-size: 12px; }

[data-theme="dark"] .stat-green  { color: #68D391; }
[data-theme="dark"] .stat-purple { color: #B794F4; }
[data-theme="dark"] .stat-blue   { color: var(--accent-blue); }
[data-theme="dark"] .stat-red    { color: #FC8181; }
[data-theme="dark"] .stat-gold   { color: #F6AD55; }
[data-theme="dark"] .stat-free   { color: #68D391; }

/* --- Settings page classes --- */
.settings-section-label { font-size: 13px; font-weight: 600; color: var(--text-light); margin-bottom: 8px; padding-left: 4px; text-transform: uppercase; letter-spacing: 1px; }
.settings-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); margin-bottom: 16px; }
.settings-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; border: none; background: none; width: 100%; text-align: left; font-size: 15px; color: var(--text); transition: background 0.15s; }
.settings-row:hover { background: var(--ice-blue); }
.settings-row .chevron { color: var(--text-light); font-size: 18px; }

[data-theme="dark"] .settings-card { background: var(--card); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }

/* --- Login page classes --- */
.login-btn { width: 100%; padding: 14px; background: linear-gradient(135deg,#1a365d,#3182CE); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; margin-bottom: 16px; }
.login-btn:hover { opacity: 0.9; }
.login-theme-toggle { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); z-index: 10000; background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 16px; backdrop-filter: blur(4px); }
.login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-hint { font-size: 12px; color: var(--text-light); margin: -2px 0 10px; }
.login-switch { text-align: center; color: var(--text-light); font-size: 14px; }
.login-switch a { color: var(--accent-blue); text-decoration: none; font-weight: 600; }
.login-checkbox { width: 18px; height: 18px; accent-color: #3182CE; cursor: pointer; }
.login-checkbox-label { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; cursor: pointer; font-size: 14px; color: var(--text-light); user-select: none; }
.login-apk-section { color: var(--accent-blue); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.login-apk-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; background: #1a365d; color: white; text-decoration: none; border-radius: 10px; font-size: 14px; font-weight: 500; }

/* --- Card subtitle (replacing inline subtitle styles) --- */
.card-subtitle { font-size: 13px; color: var(--text-light); }

/* --- Tag/chip classes --- */
.tag { display: inline-flex; align-items: center; gap: 4px; background: #E9D8FD; padding: 4px 10px; border-radius: 12px; font-size: 13px; }
.tag-remove { cursor: pointer; color: var(--speed-red); font-weight: bold; }

[data-theme="dark"] .tag { background: rgba(85,60,154,0.3); }

/* --- Relay highlight row --- */
.relay-row { background: #EDE9FE; opacity: 0.95; }
.relay-row td { font-size: 12px; white-space: nowrap; }
.relay-event { color: #6B46C1; }
.relay-time { color: #6B46C1; font-weight: 500; }

[data-theme="dark"] .relay-row { background: rgba(85,60,154,0.15); }
[data-theme="dark"] .relay-event { color: #B794F4; }
[data-theme="dark"] .relay-time { color: #B794F4; }

/* --- PB badge --- */
.pb-badge { background: linear-gradient(135deg,#EBF8FF,#BEE3F8); padding: 6px 12px; border-radius: 8px; font-size: 12px; white-space: nowrap; cursor: default; }
.pb-time { color: var(--speed-red); font-weight: 700; }
.pb-place { color: var(--text-light); }

[data-theme="dark"] .pb-badge { background: rgba(49,130,206,0.15); }

/* --- Update banner buttons --- */
.update-btn-later { padding: 8px 16px; background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); border-radius: 8px; font-weight: 500; cursor: pointer; }
.update-btn-now { padding: 8px 20px; background: white; color: #1a365d; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }

[data-theme="dark"] .update-btn-now { background: var(--card); color: var(--accent-blue); }

/* --- Modal overlay --- */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 99997; display: flex; align-items: center; justify-content: center; padding: max(20px, env(safe-area-inset-top, 20px)) max(20px, env(safe-area-inset-right, 20px)) max(20px, env(safe-area-inset-bottom, 20px)) max(20px, env(safe-area-inset-left, 20px)); }
.modal-content { background: white; border-radius: 16px; padding: 24px; max-width: 600px; width: 100%; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

[data-theme="dark"] .modal-content { background: var(--card); }

/* --- Delete action button (small) --- */
.action-delete { padding: 2px 8px; font-size: 11px; background: #FED7D7; color: #C53030; border: none; border-radius: 6px; cursor: pointer; }
.action-edit { padding: 2px 8px; font-size: 11px; background: #BEE3F8; color: var(--deep-blue); border: none; border-radius: 6px; cursor: pointer; margin-right: 4px; }

[data-theme="dark"] .action-delete { background: rgba(155,44,44,0.25); color: #FC8181; }
[data-theme="dark"] .action-edit { background: rgba(49,130,206,0.25); color: var(--accent-blue); }

/* --- Settings back header --- */
.settings-header { position: sticky; top: 0; z-index: 2; background: var(--deep-blue); color: white; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.settings-header button { background: none; border: none; color: white; font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1; }
.settings-header span { font-size: 18px; font-weight: 700; }

/* --- Avatar related --- */
.avatar-circle { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--deep-blue), var(--accent-blue)); color: white; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; border: 3px solid var(--ice-blue); }
.avatar-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid var(--ice-blue); display: none; }
.avatar-edit-badge { position: absolute; bottom: -2px; right: -2px; width: 20px; height: 20px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; border: 2px solid white; }

/* --- Tab transition animations --- */
.tab-panel { display: none; opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.tab-panel.active { display: block; opacity: 1; transform: translateY(0); }

/* --- Stat card --- */
.stat-card { background: var(--bg); border-radius: 12px; padding: 16px; text-align: center; border: 1px solid var(--border); min-width: 120px; }

/* --- Legend items --- */
.legend-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-dot-green { background: #C6F6D5; }
.legend-dot-purple { background: #E9D8FD; }
.legend-dot-split { background: linear-gradient(135deg, #C6F6D5 50%, #E9D8FD 50%); }

[data-theme="dark"] .legend-dot-green { background: rgba(38,111,71,0.4); }
[data-theme="dark"] .legend-dot-purple { background: rgba(85,60,154,0.4); }

/* --- Chart stats row --- */
.chart-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding: 12px 16px; background: var(--bg); border-radius: 12px; font-size: 13px; }
.chart-stat-item { display: flex; align-items: center; gap: 4px; }

/* --- Override item --- */
.override-item { display: flex; align-items: center; gap: 8px; background: var(--bg); padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); }
.deleted-item { display: flex; align-items: center; gap: 8px; background: #FFF5F5; padding: 8px 14px; border-radius: 12px; border: 1px solid #FED7D7; }
.deleted-item .name { font-weight: 600; font-size: 14px; color: var(--speed-red); text-decoration: line-through; }

[data-theme="dark"] .deleted-item { background: rgba(155,44,44,0.1); border-color: rgba(155,44,44,0.3); }

/* --- Profile bio --- */
.profile-bio { padding: 14px 16px; background: var(--bg); border-radius: 12px; font-size: 14px; min-height: 40px; white-space: pre-wrap; line-height: 1.6; }
.profile-bio-empty { color: var(--text-light); }

/* --- Profile add result form --- */
.profile-add-form { background: #E8F5E9; }

[data-theme="dark"] .profile-add-form { background: rgba(38,111,71,0.15); }

/* --- Fee detail labels --- */
.fee-prepaid-label { font-size: 11px; color: #2B6CB0; }
.fee-settled-label { font-size: 11px; color: #38A169; }
.fee-free-label { font-size: 11px; color: #38A169; }

[data-theme="dark"] .fee-prepaid-label { color: var(--accent-blue); }
[data-theme="dark"] .fee-settled-label { color: #68D391; }
[data-theme="dark"] .fee-free-label { color: #68D391; }

/* --- Type class labels --- */
.type-class { color: #2B6CB0; }
.type-custom { color: #9B2C2C; }

[data-theme="dark"] .type-class { color: var(--accent-blue); }
[data-theme="dark"] .type-custom { color: #FC8181; }

/* --- Settlement amount --- */
.settlement-amount { font-weight: 600; color: #38A169; }
[data-theme="dark"] .settlement-amount { color: #68D391; }

/* --- Message avatar --- */
.msg-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.msg-avatar-fallback { width: 24px; height: 24px; border-radius: 50%; background: var(--deep-blue); color: white; display: none; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; }

/* --- Hover toggle (replaces onmouseover/onmouseout) --- */
.hover-bg:hover { background: var(--ice-blue); }

/* --- Card close button --- */
.card-close-btn { padding: 8px 16px; font-size: 13px; }
.card-action-btn { padding: 6px 14px; font-size: 13px; }
</task_progress>