File size: 4,016 Bytes
b66240d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* ============================================
   Components CSS - Reusable UI Components
   ============================================
   
   This file contains all reusable component styles:
   - Toast notifications
   - Loading spinners
   - Status badges (info, success, warning, danger)
   - Empty states
   - Stream items
   - Alerts
   
   ============================================ */

/* === Toast Notification Styles === */

.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
}

.toast {
  min-width: 260px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  padding: 14px 18px;
  box-shadow: var(--ui-shadow);
  display: flex;
  gap: 12px;
  align-items: center;
  animation: toast-in 220ms ease;
}

.toast.success { border-color: rgba(22, 163, 74, 0.4); }
.toast.error { border-color: rgba(220, 38, 38, 0.4); }
.toast.info { border-color: rgba(37, 99, 235, 0.4); }

.toast strong {
  font-size: 0.95rem;
  color: var(--ui-text);
}

.toast small {
  color: var(--ui-text-muted);
  display: block;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Loading Spinner Styles === */

.loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ui-text-muted);
  font-size: 0.9rem;
}

.loading-indicator::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid var(--ui-border);
  border-top-color: var(--ui-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fade-in {
  animation: fade 250ms ease;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* === Badge Styles === */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.badge.info {
  color: var(--ui-primary);
  border-color: var(--ui-primary);
  background: rgba(37, 99, 235, 0.08);
}

.badge.success {
  color: var(--ui-success);
  border-color: rgba(22, 163, 74, 0.3);
  background: rgba(22, 163, 74, 0.08);
}

.badge.warning {
  color: var(--ui-warning);
  border-color: rgba(217, 119, 6, 0.3);
  background: rgba(217, 119, 6, 0.08);
}

.badge.danger {
  color: var(--ui-danger);
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}

.badge.source-fallback {
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--ui-danger);
  background: rgba(220, 38, 38, 0.06);
}

.badge.source-live {
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--ui-success);
  background: rgba(22, 163, 74, 0.08);
}

/* === Empty State Styles === */

.empty-state {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px dashed var(--ui-border);
  color: var(--ui-text-muted);
  background: #fff;
}

/* === Stream Item Styles === */

.ws-stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 300px;
  overflow-y: auto;
}

.stream-item {
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--ui-panel-muted);
}

/* === Alert Styles === */

.alert {
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert.info {
  background: rgba(37, 99, 235, 0.08);
  color: var(--ui-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.alert.success {
  background: rgba(22, 163, 74, 0.08);
  color: var(--ui-success);
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.alert.warning {
  background: rgba(217, 119, 6, 0.08);
  color: var(--ui-warning);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.alert.danger,
.alert.error {
  background: rgba(220, 38, 38, 0.08);
  color: var(--ui-danger);
  border: 1px solid rgba(220, 38, 38, 0.2);
}