-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpopup.css
More file actions
211 lines (199 loc) · 8.22 KB
/
Copy pathpopup.css
File metadata and controls
211 lines (199 loc) · 8.22 KB
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
:root {
--bg: #f7f7fb;
--card: #ffffff;
--ink: #1f2430;
--muted: #6b7280;
--line: #e8e8f0;
--brand: #059669;
--brand-2: #10b981;
--brand-text: #047857; /* contrast-tuned green for text on surfaces */
--saved: #64748b;
--applied: #2563eb;
--interview: #d97706;
--offer: #16a34a;
--rejected: #dc2626;
--shadow: 0 6px 20px rgba(20, 20, 50, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
width: 400px;
min-height: 480px;
max-height: 600px;
overflow-y: auto;
background: var(--bg);
color: var(--ink);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
font-size: 14px;
}
/* ---------- Header ---------- */
.app-header {
position: sticky;
top: 0;
z-index: 5;
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 16px;
background: linear-gradient(135deg, var(--brand), var(--brand-2));
color: #fff;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
width: 34px; height: 34px; border-radius: 10px;
background: rgba(255, 255, 255, 0.2);
display: grid; place-items: center;
font-weight: 800; letter-spacing: 0.5px;
backdrop-filter: blur(4px);
}
.app-header h1 { font-size: 16px; font-weight: 700; }
.tagline { font-size: 11px; opacity: 0.85; }
.icon-btn {
width: 32px; height: 32px; border: none; border-radius: 8px;
background: rgba(255, 255, 255, 0.15); color: #fff;
font-size: 16px; cursor: pointer; transition: background 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.3); }
/* ---------- Stats ---------- */
.stats {
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 6px;
padding: 12px 16px 6px;
}
.stat {
background: var(--card);
border: 1px solid var(--line);
border-radius: 10px;
padding: 8px 4px;
text-align: center;
box-shadow: var(--shadow);
}
.stat .num { font-size: 18px; font-weight: 800; line-height: 1; }
.stat .lbl { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-top: 4px; }
.stat.saved .num { color: var(--saved); }
.stat.applied .num { color: var(--applied); }
.stat.interview .num { color: var(--interview); }
.stat.offer .num { color: var(--offer); }
.stat.rejected .num { color: var(--rejected); }
/* ---------- Actions ---------- */
.actions { display: flex; gap: 8px; padding: 8px 16px; }
.btn {
border: none; border-radius: 10px; cursor: pointer;
font-size: 13px; font-weight: 600; padding: 10px 14px;
transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
flex: 1;
background: linear-gradient(135deg, var(--brand), var(--brand-2));
color: #fff;
box-shadow: var(--shadow);
display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn.primary:hover { box-shadow: 0 10px 26px rgba(5, 150, 105, 0.35); }
.btn.primary .plus { font-size: 16px; }
.btn.ghost {
background: var(--card); color: var(--ink); border: 1px solid var(--line);
}
.btn.ghost:hover { background: #f0f0f7; }
/* ---------- Toolbar ---------- */
.toolbar { padding: 6px 16px 10px; }
#search {
width: 100%; padding: 9px 12px; border: 1px solid var(--line);
border-radius: 10px; font-size: 13px; background: var(--card); color: var(--ink);
outline: none; transition: border 0.15s, box-shadow 0.15s;
}
#search:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12); }
.filters { display: flex; gap: 6px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.filters::-webkit-scrollbar { height: 0; }
.chip {
flex: 0 0 auto; border: 1px solid var(--line); background: var(--card);
color: var(--muted); border-radius: 999px; padding: 5px 12px;
font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
transition: all 0.15s;
}
.chip:hover { border-color: var(--brand); color: var(--brand-text); background: rgba(5, 150, 105, 0.08); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
/* ---------- List ---------- */
.list { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.job {
background: var(--card); border: 1px solid var(--line); border-radius: 12px;
padding: 12px; box-shadow: var(--shadow); position: relative;
animation: rise 0.25s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.job .stage-bar { position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; }
.job.saved .stage-bar { background: var(--saved); }
.job.applied .stage-bar { background: var(--applied); }
.job.interview .stage-bar { background: var(--interview); }
.job.offer .stage-bar { background: var(--offer); }
.job.rejected .stage-bar { background: var(--rejected); opacity: 0.7; }
.job-main { padding-left: 8px; }
.job .title {
font-size: 14px; font-weight: 700; line-height: 1.3; margin-bottom: 2px;
cursor: pointer; display: block; color: var(--ink); text-decoration: none;
}
.job .title:hover { color: var(--brand-text); }
.job .meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.job .meta .dot { opacity: 0.5; }
.job-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 8px; }
.stage-select {
border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px;
font-size: 12px; font-weight: 600; background: var(--bg); color: var(--ink); cursor: pointer;
}
.row-btns { display: flex; gap: 4px; }
.mini {
border: none; background: transparent; cursor: pointer; font-size: 14px;
width: 28px; height: 28px; border-radius: 8px; color: var(--muted); transition: background 0.15s, color 0.15s;
}
.mini:hover { background: #f0f0f7; color: var(--ink); }
.mini.del:hover { color: var(--rejected); background: #fdecec; }
.age { font-size: 11px; color: var(--muted); }
/* ---------- Empty ---------- */
.empty { padding: 40px 24px; text-align: center; }
.empty-art { font-size: 46px; margin-bottom: 8px; }
.empty-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.empty-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
kbd { background: #ececf5; border-radius: 5px; padding: 1px 6px; font-size: 11px; border: 1px solid var(--line); }
/* ---------- Modal ---------- */
.modal {
position: fixed; inset: 0; background: rgba(15, 15, 40, 0.45);
display: grid; place-items: center; z-index: 20; padding: 16px;
animation: fade 0.15s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
background: var(--card); border-radius: 16px; padding: 18px; width: 100%;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3); animation: rise 0.2s ease;
}
.modal-card h2 { font-size: 16px; margin-bottom: 12px; }
.modal-card label { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.modal-card input, .modal-card select, .modal-card textarea {
width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line);
border-radius: 8px; font-size: 13px; font-family: inherit; color: var(--ink); background: var(--bg);
outline: none; transition: border 0.15s, box-shadow 0.15s;
}
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12); background: var(--card);
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
/* ---------- Toast ---------- */
.toast {
position: fixed; left: 50%; bottom: 16px; transform: translate(-50%, 12px);
background: #111827; color: #fff; padding: 9px 16px; border-radius: 10px;
font-size: 12.5px; font-weight: 500; opacity: 0; pointer-events: none;
transition: opacity 0.2s, transform 0.2s; z-index: 30; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.hidden { display: none !important; }
/* ---------- Dark mode ---------- */
@media (prefers-color-scheme: dark) {
:root {
--bg: #14151c; --card: #1e2029; --ink: #e8e8f0; --muted: #9aa0ad;
--line: #2c2e3a; --shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
--brand-text: #34d399; /* brighter green so text stays legible on dark surfaces */
}
.btn.ghost:hover { background: #262836; }
.mini:hover { background: #262836; }
kbd { background: #2c2e3a; }
}