File size: 7,424 Bytes
cb756bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
/* ============================================================================
   WALLET MESSAGE STYLES
   ============================================================================ */

.wallet-message {
  margin-top: 1.5rem;
  padding: 1.1rem 1.3rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  animation: messageSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.wallet-message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  animation: progressBar 5s linear forwards;
}

.wallet-message.success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.08) 100%);
  color: #22c55e;
  border: 1.5px solid rgba(34, 197, 94, 0.35);
}

.wallet-message.success::before {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.wallet-message.error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(239, 68, 68, 0.08) 100%);
  color: #ef4444;
  border: 1.5px solid rgba(239, 68, 68, 0.35);
}

.wallet-message.error::before {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.wallet-message.hidden {
  display: none;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes progressBar {
  from {
    height: 100%;
  }
  to {
    height: 0%;
  }
}


/* ============================================================================
   WALLET FORM STYLES
   ============================================================================ */

.wallet-form {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: #202534;
  border-radius: 10px;
  padding: 1.3rem 1.2rem 1.5rem 1.2rem;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.04);
  border: 1px solid #242a38;
  animation: formFadeIn 0.3s ease-out;
}

@keyframes formFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wallet-form h3 {
  margin-bottom: 0.5rem;
  color: #06b6d4;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.wallet-form input {
  padding: 0.9rem 1.1rem;
  border-radius: 7px;
  border: 1.5px solid #242a38;
  background: #23283a;
  color: #fff;
  margin-bottom: 0.7rem;
  width: 100%;
  font-size: 1.05rem;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
}

.wallet-form input:focus {
  outline: none;
  border-color: #3b82f6;
  background: #1a1f2e;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wallet-form input:hover {
  border-color: #2a3040;
}

.wallet-form input::placeholder {
  color: #6b7280;
  font-weight: 500;
}

.wallet-form button {
  background: linear-gradient(90deg, #3b82f6 80%, #a5b4fc 100%);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 1rem 0;
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08);
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.wallet-form button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.wallet-form button:hover::before {
  width: 300px;
  height: 300px;
}

.wallet-form button:hover {
  background: linear-gradient(90deg, #2563eb 80%, #818cf8 100%);
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.wallet-form button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.wallet-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}


/* ============================================================================
   WALLET PANEL ENHANCEMENTS
   ============================================================================ */

.wallet-panel h2 {
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #fff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wallet-balance {
  position: relative;
}

.wallet-balance::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #22c55e 50%, transparent 100%);
  opacity: 0.3;
}


/* ============================================================================
   LOADING SPINNER FOR FORM SUBMISSIONS
   ============================================================================ */

.wallet-form button.loading {
  pointer-events: none;
  opacity: 0.8;
}

.wallet-form button.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spinner 0.6s linear infinite;
}

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


/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (max-width: 500px) {
  .wallet-panel {
    width: 100%;
    border-radius: 0;
  }

  .wallet-panel-content {
    padding: 2rem 1.5rem;
  }

  .wallet-form {
    padding: 1rem;
  }

  .wallet-message {
    font-size: 0.85rem;
    padding: 0.9rem 1rem;
  }
}


/* ============================================================================
   TRANSACTION HISTORY (OPTIONAL ENHANCEMENT)
   ============================================================================ */

.wallet-transactions {
  margin-top: 1.5rem;
}

.wallet-transactions h4 {
  color: #06b6d4;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1rem;
  background: #1a1f2e;
  border: 1px solid #242a38;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.transaction-item:hover {
  background: #202534;
  border-color: #2a3040;
  transform: translateX(4px);
}

.transaction-type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.transaction-type.credit {
  color: #22c55e;
}

.transaction-type.debit {
  color: #ef4444;
}

.transaction-amount {
  font-weight: 700;
  font-size: 0.95rem;
}

.transaction-date {
  font-size: 0.7rem;
  color: #6b7280;
  margin-top: 0.2rem;
}


/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.wallet-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #6b7280;
}

.wallet-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.wallet-empty p {
  font-size: 0.85rem;
  line-height: 1.5;
}