File size: 7,990 Bytes
4343907
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
/* SAAP Component Styles - Production Ready */

/* ===================================
   BUTTON COMPONENTS
=================================== */
.saap-button-primary {
  @apply inline-flex items-center justify-center px-4 py-2;
  @apply text-sm font-medium text-white;
  @apply bg-saap-primary-600 hover:bg-saap-primary-700;
  @apply border border-transparent rounded-lg;
  @apply shadow-sm hover:shadow-md;
  @apply transition-all duration-200;
  @apply focus:outline-none focus:ring-2 focus:ring-saap-primary-500 focus:ring-offset-2;
  @apply disabled:opacity-50 disabled:cursor-not-allowed;
}

.saap-button-secondary {
  @apply inline-flex items-center justify-center px-4 py-2;
  @apply text-sm font-medium text-saap-gray-700;
  @apply bg-white hover:bg-saap-gray-50;
  @apply border border-saap-gray-300 hover:border-saap-gray-400 rounded-lg;
  @apply shadow-sm hover:shadow-md;
  @apply transition-all duration-200;
  @apply focus:outline-none focus:ring-2 focus:ring-saap-primary-500 focus:ring-offset-2;
  @apply disabled:opacity-50 disabled:cursor-not-allowed;
}

.saap-button-accent {
  @apply inline-flex items-center justify-center px-4 py-2;
  @apply text-sm font-medium text-white;
  @apply bg-saap-accent-600 hover:bg-saap-accent-700;
  @apply border border-transparent rounded-lg;
  @apply shadow-sm hover:shadow-md;
  @apply transition-all duration-200;
  @apply focus:outline-none focus:ring-2 focus:ring-saap-accent-500 focus:ring-offset-2;
  @apply disabled:opacity-50 disabled:cursor-not-allowed;
}

.saap-button-danger {
  @apply inline-flex items-center justify-center px-4 py-2;
  @apply text-sm font-medium text-white;
  @apply bg-red-600 hover:bg-red-700;
  @apply border border-transparent rounded-lg;
  @apply shadow-sm hover:shadow-md;
  @apply transition-all duration-200;
  @apply focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-offset-2;
  @apply disabled:opacity-50 disabled:cursor-not-allowed;
}

/* Button Sizes */
.saap-button-sm {
  @apply px-3 py-1.5 text-xs;
}

.saap-button-lg {
  @apply px-6 py-3 text-base;
}

.saap-button-xl {
  @apply px-8 py-4 text-lg;
}

/* ===================================
   CARD COMPONENTS
=================================== */
.saap-card {
  @apply bg-white rounded-xl border border-saap-gray-200;
  @apply shadow-sm hover:shadow-md transition-shadow duration-200;
}

.saap-card-elevated {
  @apply bg-white rounded-xl;
  @apply shadow-lg hover:shadow-xl transition-shadow duration-200;
}

.saap-card-interactive {
  @apply bg-white rounded-xl border border-saap-gray-200;
  @apply shadow-sm hover:shadow-md hover:border-saap-primary-300;
  @apply transition-all duration-200 cursor-pointer;
}

.saap-card-interactive:hover {
  transform: translateY(-2px);
}

/* ===================================
   ICON COMPONENTS & SIZING
=================================== */
.saap-icon-xs {
  @apply w-3 h-3;
}

.saap-icon-sm {
  @apply w-4 h-4;
}

.saap-icon {
  @apply w-5 h-5;
}

.saap-icon-md {
  @apply w-6 h-6;
}

.saap-icon-lg {
  @apply w-8 h-8;
}

.saap-icon-xl {
  @apply w-12 h-12;
}

.saap-icon-2xl {
  @apply w-16 h-16;
}

/* Icon containers */
.saap-icon-container {
  @apply flex items-center justify-center;
  @apply flex-shrink-0;
}

.saap-icon-container-sm {
  @apply w-8 h-8 rounded-lg;
}

.saap-icon-container-md {
  @apply w-10 h-10 rounded-lg;
}

.saap-icon-container-lg {
  @apply w-12 h-12 rounded-xl;
}

/* ===================================
   FORM COMPONENTS
=================================== */
.saap-input {
  @apply block w-full px-3 py-2;
  @apply text-sm text-saap-gray-900 placeholder-saap-gray-400;
  @apply bg-white border border-saap-gray-300 rounded-lg;
  @apply focus:outline-none focus:ring-2 focus:ring-saap-primary-500 focus:border-saap-primary-500;
  @apply disabled:bg-saap-gray-50 disabled:text-saap-gray-500 disabled:cursor-not-allowed;
  @apply transition-all duration-200;
}

.saap-textarea {
  @apply block w-full px-3 py-2;
  @apply text-sm text-saap-gray-900 placeholder-saap-gray-400;
  @apply bg-white border border-saap-gray-300 rounded-lg;
  @apply focus:outline-none focus:ring-2 focus:ring-saap-primary-500 focus:border-saap-primary-500;
  @apply disabled:bg-saap-gray-50 disabled:text-saap-gray-500 disabled:cursor-not-allowed;
  @apply transition-all duration-200;
  @apply resize-y min-h-[80px];
}

.saap-select {
  @apply block w-full px-3 py-2;
  @apply text-sm text-saap-gray-900;
  @apply bg-white border border-saap-gray-300 rounded-lg;
  @apply focus:outline-none focus:ring-2 focus:ring-saap-primary-500 focus:border-saap-primary-500;
  @apply disabled:bg-saap-gray-50 disabled:text-saap-gray-500 disabled:cursor-not-allowed;
  @apply transition-all duration-200;
}

.saap-label {
  @apply block text-sm font-medium text-saap-gray-700 mb-1;
}

.saap-help-text {
  @apply text-xs text-saap-gray-500 mt-1;
}

.saap-error-text {
  @apply text-xs text-red-600 mt-1;
}

/* ===================================
   STATUS BADGES
=================================== */
.saap-badge {
  @apply inline-flex items-center px-2.5 py-0.5;
  @apply text-xs font-medium rounded-full;
}

.saap-badge-primary {
  @apply bg-saap-primary-100 text-saap-primary-800;
}

.saap-badge-secondary {
  @apply bg-saap-secondary-100 text-saap-secondary-800;
}

.saap-badge-accent {
  @apply bg-saap-accent-100 text-saap-accent-800;
}

.saap-badge-gray {
  @apply bg-saap-gray-100 text-saap-gray-800;
}

.saap-badge-success {
  @apply bg-green-100 text-green-800;
}

.saap-badge-warning {
  @apply bg-yellow-100 text-yellow-800;
}

.saap-badge-danger {
  @apply bg-red-100 text-red-800;
}

/* ===================================
   LOADING STATES
=================================== */
.saap-loading-spinner {
  @apply w-5 h-5 border-2 border-current border-t-transparent rounded-full animate-spin;
}

.saap-loading-spinner-sm {
  @apply w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin;
}

.saap-loading-spinner-lg {
  @apply w-8 h-8 border-4 border-current border-t-transparent rounded-full animate-spin;
}

.saap-loading-pulse {
  @apply animate-pulse bg-saap-gray-200 rounded;
}

/* ===================================
   ALERTS & MESSAGES
=================================== */
.saap-alert {
  @apply p-4 rounded-lg border;
}

.saap-alert-info {
  @apply bg-blue-50 border-blue-200 text-blue-800;
}

.saap-alert-success {
  @apply bg-green-50 border-green-200 text-green-800;
}

.saap-alert-warning {
  @apply bg-yellow-50 border-yellow-200 text-yellow-800;
}

.saap-alert-error {
  @apply bg-red-50 border-red-200 text-red-800;
}

/* ===================================
   LAYOUT HELPERS
=================================== */
.saap-container {
  @apply max-w-7xl mx-auto px-4 sm:px-6 lg:px-8;
}

.saap-section {
  @apply py-12;
}

.saap-divider {
  @apply border-t border-saap-gray-200 my-6;
}

/* ===================================
   RESPONSIVE UTILITIES
=================================== */
@media (max-width: 640px) {
  .saap-mobile-full {
    @apply w-full;
  }
  
  .saap-mobile-stack {
    @apply flex-col space-y-2 space-x-0;
  }
  
  .saap-mobile-center {
    @apply justify-center text-center;
  }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
=================================== */
.saap-sr-only {
  @apply sr-only;
}

.saap-focus-visible:focus-visible {
  @apply outline-none ring-2 ring-saap-primary-500 ring-offset-2;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .saap-button-primary {
    @apply border-2 border-saap-primary-800;
  }
  
  .saap-button-secondary {
    @apply border-2 border-saap-gray-600;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .saap-button-primary,
  .saap-button-secondary,
  .saap-button-accent,
  .saap-card,
  .saap-input,
  .saap-textarea,
  .saap-select {
    @apply transition-none;
  }
  
  .saap-loading-spinner,
  .saap-loading-spinner-sm,
  .saap-loading-spinner-lg {
    @apply animate-none;
  }
}