File size: 5,186 Bytes
94004a2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
/* ── Notification Panel ────────────────────────────────────────────── */

.notif-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-fg-muted);
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
  flex-shrink: 0;
}

.notif-trigger:hover {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-strong);
}

.notif-trigger--has-items {
  color: var(--color-brand);
  border-color: var(--color-brand);
}

/* Badge count */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 14px;
  height: 14px;
  background: var(--color-danger, #cc241d);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-mono);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.notif-badge--warn {
  background: var(--color-warn, #d79921);
}

/* Dropdown panel */
.notif-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 340px;
  max-height: 420px;
  overflow-y: auto;
  background: var(--color-bg-elev-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0, 0, 0, 0.4));
  z-index: 9999;
  animation: notif-slide-in 0.15s ease-out;
}

@keyframes notif-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

.notif-panel__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-fg);
  margin: 0;
}

.notif-panel__dismiss {
  font-size: var(--text-xs);
  color: var(--color-fg-subtle);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.notif-panel__dismiss:hover {
  color: var(--color-fg);
  background: rgba(255, 255, 255, 0.06);
}

/* Empty state */
.notif-panel__empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--color-fg-muted);
  font-size: var(--text-sm);
}

.notif-panel__empty-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

/* Individual notification item */
.notif-item {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: background 0.1s;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Level indicators */
.notif-item__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  margin-top: 1px;
}

.notif-item__icon--warn {
  background: rgba(215, 153, 33, 0.15);
  color: #d79921;
}

.notif-item__icon--error {
  background: rgba(204, 36, 29, 0.15);
  color: #cc241d;
}

.notif-item__icon--info {
  background: rgba(131, 165, 152, 0.15);
  color: #83a598;
}

.notif-item__body {
  flex: 1;
  min-width: 0;
}

.notif-item__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-fg);
  margin: 0 0 2px;
}

.notif-item__message {
  font-size: var(--text-xs);
  color: var(--color-fg-muted);
  line-height: 1.5;
  margin: 0 0 6px;
}

/* Action button */
.notif-item__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-brand);
  background: rgba(211, 134, 155, 0.1);
  border: 1px solid rgba(211, 134, 155, 0.2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.notif-item__action:hover {
  background: rgba(211, 134, 155, 0.2);
  border-color: rgba(211, 134, 155, 0.4);
}

/* HF token input inline */
.notif-hf-input {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.notif-hf-input input {
  flex: 1;
  background: var(--color-bg-elev-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-fg);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  padding: 4px 8px;
}

.notif-hf-input input:focus {
  border-color: var(--color-brand);
  outline: none;
}

.notif-hf-input button {
  background: var(--color-brand);
  color: #1d2021;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 4px 10px;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.notif-hf-input button:hover {
  opacity: 0.85;
}

/* Scrollbar */
.notif-panel::-webkit-scrollbar { width: 5px; }
.notif-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}