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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
:root {
|
| 3 |
+
/* Colors */
|
| 4 |
+
--color-background: rgba(252, 252, 249, 1);
|
| 5 |
+
--color-surface: rgba(255, 255, 253, 1);
|
| 6 |
+
--color-text: rgba(19, 52, 59, 1);
|
| 7 |
+
--color-text-secondary: rgba(98, 108, 113, 1);
|
| 8 |
+
--color-primary: rgba(33, 128, 141, 1);
|
| 9 |
+
--color-primary-hover: rgba(29, 116, 128, 1);
|
| 10 |
+
--color-primary-active: rgba(26, 104, 115, 1);
|
| 11 |
+
--color-secondary: rgba(94, 82, 64, 0.12);
|
| 12 |
+
--color-secondary-hover: rgba(94, 82, 64, 0.2);
|
| 13 |
+
--color-secondary-active: rgba(94, 82, 64, 0.25);
|
| 14 |
+
--color-border: rgba(94, 82, 64, 0.2);
|
| 15 |
+
--color-btn-primary-text: rgba(252, 252, 249, 1);
|
| 16 |
+
--color-card-border: rgba(94, 82, 64, 0.12);
|
| 17 |
+
--color-card-border-inner: rgba(94, 82, 64, 0.12);
|
| 18 |
+
--color-error: rgba(192, 21, 47, 1);
|
| 19 |
+
--color-success: rgba(33, 128, 141, 1);
|
| 20 |
+
--color-warning: rgba(168, 75, 47, 1);
|
| 21 |
+
--color-info: rgba(98, 108, 113, 1);
|
| 22 |
+
--color-focus-ring: rgba(33, 128, 141, 0.4);
|
| 23 |
+
--color-select-caret: rgba(19, 52, 59, 0.8);
|
| 24 |
+
|
| 25 |
+
/* Common style patterns */
|
| 26 |
+
--focus-ring: 0 0 0 3px var(--color-focus-ring);
|
| 27 |
+
--focus-outline: 2px solid var(--color-primary);
|
| 28 |
+
--status-bg-opacity: 0.15;
|
| 29 |
+
--status-border-opacity: 0.25;
|
| 30 |
+
--select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
| 31 |
+
--select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
| 32 |
+
|
| 33 |
+
/* RGB versions for opacity control */
|
| 34 |
+
--color-success-rgb: 33, 128, 141;
|
| 35 |
+
--color-error-rgb: 192, 21, 47;
|
| 36 |
+
--color-warning-rgb: 168, 75, 47;
|
| 37 |
+
--color-info-rgb: 98, 108, 113;
|
| 38 |
+
|
| 39 |
+
/* Typography */
|
| 40 |
+
--font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
|
| 41 |
+
BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
| 42 |
+
--font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
|
| 43 |
+
Monaco, Consolas, monospace;
|
| 44 |
+
--font-size-xs: 11px;
|
| 45 |
+
--font-size-sm: 12px;
|
| 46 |
+
--font-size-base: 14px;
|
| 47 |
+
--font-size-md: 14px;
|
| 48 |
+
--font-size-lg: 16px;
|
| 49 |
+
--font-size-xl: 18px;
|
| 50 |
+
--font-size-2xl: 20px;
|
| 51 |
+
--font-size-3xl: 24px;
|
| 52 |
+
--font-size-4xl: 30px;
|
| 53 |
+
--font-weight-normal: 400;
|
| 54 |
+
--font-weight-medium: 500;
|
| 55 |
+
--font-weight-semibold: 550;
|
| 56 |
+
--font-weight-bold: 600;
|
| 57 |
+
--line-height-tight: 1.2;
|
| 58 |
+
--line-height-normal: 1.5;
|
| 59 |
+
--letter-spacing-tight: -0.01em;
|
| 60 |
+
|
| 61 |
+
/* Spacing */
|
| 62 |
+
--space-0: 0;
|
| 63 |
+
--space-1: 1px;
|
| 64 |
+
--space-2: 2px;
|
| 65 |
+
--space-4: 4px;
|
| 66 |
+
--space-6: 6px;
|
| 67 |
+
--space-8: 8px;
|
| 68 |
+
--space-10: 10px;
|
| 69 |
+
--space-12: 12px;
|
| 70 |
+
--space-16: 16px;
|
| 71 |
+
--space-20: 20px;
|
| 72 |
+
--space-24: 24px;
|
| 73 |
+
--space-32: 32px;
|
| 74 |
+
|
| 75 |
+
/* Border Radius */
|
| 76 |
+
--radius-sm: 6px;
|
| 77 |
+
--radius-base: 8px;
|
| 78 |
+
--radius-md: 10px;
|
| 79 |
+
--radius-lg: 12px;
|
| 80 |
+
--radius-full: 9999px;
|
| 81 |
+
|
| 82 |
+
/* Shadows */
|
| 83 |
+
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
|
| 84 |
+
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
|
| 85 |
+
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
|
| 86 |
+
0 2px 4px -1px rgba(0, 0, 0, 0.02);
|
| 87 |
+
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
|
| 88 |
+
0 4px 6px -2px rgba(0, 0, 0, 0.02);
|
| 89 |
+
--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
|
| 90 |
+
inset 0 -1px 0 rgba(0, 0, 0, 0.03);
|
| 91 |
+
|
| 92 |
+
/* Animation */
|
| 93 |
+
--duration-fast: 150ms;
|
| 94 |
+
--duration-normal: 250ms;
|
| 95 |
+
--ease-standard: cubic-bezier(0.16, 1, 0.3, 1);
|
| 96 |
+
|
| 97 |
+
/* Layout */
|
| 98 |
+
--container-sm: 640px;
|
| 99 |
+
--container-md: 768px;
|
| 100 |
+
--container-lg: 1024px;
|
| 101 |
+
--container-xl: 1280px;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
/* Dark mode colors */
|
| 105 |
+
@media (prefers-color-scheme: dark) {
|
| 106 |
+
:root {
|
| 107 |
+
--color-background: rgba(31, 33, 33, 1);
|
| 108 |
+
--color-surface: rgba(38, 40, 40, 1);
|
| 109 |
+
--color-text: rgba(245, 245, 245, 1);
|
| 110 |
+
--color-text-secondary: rgba(167, 169, 169, 0.7);
|
| 111 |
+
--color-primary: rgba(50, 184, 198, 1);
|
| 112 |
+
--color-primary-hover: rgba(45, 166, 178, 1);
|
| 113 |
+
--color-primary-active: rgba(41, 150, 161, 1);
|
| 114 |
+
--color-secondary: rgba(119, 124, 124, 0.15);
|
| 115 |
+
--color-secondary-hover: rgba(119, 124, 124, 0.25);
|
| 116 |
+
--color-secondary-active: rgba(119, 124, 124, 0.3);
|
| 117 |
+
--color-border: rgba(119, 124, 124, 0.3);
|
| 118 |
+
--color-error: rgba(255, 84, 89, 1);
|
| 119 |
+
--color-success: rgba(50, 184, 198, 1);
|
| 120 |
+
--color-warning: rgba(230, 129, 97, 1);
|
| 121 |
+
--color-info: rgba(167, 169, 169, 1);
|
| 122 |
+
--color-focus-ring: rgba(50, 184, 198, 0.4);
|
| 123 |
+
--color-btn-primary-text: rgba(19, 52, 59, 1);
|
| 124 |
+
--color-card-border: rgba(119, 124, 124, 0.2);
|
| 125 |
+
--color-card-border-inner: rgba(119, 124, 124, 0.15);
|
| 126 |
+
--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
| 127 |
+
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
| 128 |
+
--button-border-secondary: rgba(119, 124, 124, 0.2);
|
| 129 |
+
--color-border-secondary: rgba(119, 124, 124, 0.2);
|
| 130 |
+
--color-select-caret: rgba(245, 245, 245, 0.8);
|
| 131 |
+
|
| 132 |
+
/* Common style patterns - updated for dark mode */
|
| 133 |
+
--focus-ring: 0 0 0 3px var(--color-focus-ring);
|
| 134 |
+
--focus-outline: 2px solid var(--color-primary);
|
| 135 |
+
--status-bg-opacity: 0.15;
|
| 136 |
+
--status-border-opacity: 0.25;
|
| 137 |
+
--select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
| 138 |
+
--select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
| 139 |
+
|
| 140 |
+
/* RGB versions for dark mode */
|
| 141 |
+
--color-success-rgb: 50, 184, 198;
|
| 142 |
+
--color-error-rgb: 255, 84, 89;
|
| 143 |
+
--color-warning-rgb: 230, 129, 97;
|
| 144 |
+
--color-info-rgb: 167, 169, 169;
|
| 145 |
+
}
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
/* Data attribute for manual theme switching */
|
| 149 |
+
[data-color-scheme="dark"] {
|
| 150 |
+
--color-background: rgba(31, 33, 33, 1);
|
| 151 |
+
--color-surface: rgba(38, 40, 40, 1);
|
| 152 |
+
--color-text: rgba(245, 245, 245, 1);
|
| 153 |
+
--color-text-secondary: rgba(167, 169, 169, 0.7);
|
| 154 |
+
--color-primary: rgba(50, 184, 198, 1);
|
| 155 |
+
--color-primary-hover: rgba(45, 166, 178, 1);
|
| 156 |
+
--color-primary-active: rgba(41, 150, 161, 1);
|
| 157 |
+
--color-secondary: rgba(119, 124, 124, 0.15);
|
| 158 |
+
--color-secondary-hover: rgba(119, 124, 124, 0.25);
|
| 159 |
+
--color-secondary-active: rgba(119, 124, 124, 0.3);
|
| 160 |
+
--color-border: rgba(119, 124, 124, 0.3);
|
| 161 |
+
--color-error: rgba(255, 84, 89, 1);
|
| 162 |
+
--color-success: rgba(50, 184, 198, 1);
|
| 163 |
+
--color-warning: rgba(230, 129, 97, 1);
|
| 164 |
+
--color-info: rgba(167, 169, 169, 1);
|
| 165 |
+
--color-focus-ring: rgba(50, 184, 198, 0.4);
|
| 166 |
+
--color-btn-primary-text: rgba(19, 52, 59, 1);
|
| 167 |
+
--color-card-border: rgba(119, 124, 124, 0.15);
|
| 168 |
+
--color-card-border-inner: rgba(119, 124, 124, 0.15);
|
| 169 |
+
--shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
| 170 |
+
inset 0 -1px 0 rgba(0, 0, 0, 0.15);
|
| 171 |
+
--color-border-secondary: rgba(119, 124, 124, 0.2);
|
| 172 |
+
--color-select-caret: rgba(245, 245, 245, 0.8);
|
| 173 |
+
|
| 174 |
+
/* Common style patterns - updated for dark mode */
|
| 175 |
+
--focus-ring: 0 0 0 3px var(--color-focus-ring);
|
| 176 |
+
--focus-outline: 2px solid var(--color-primary);
|
| 177 |
+
--status-bg-opacity: 0.15;
|
| 178 |
+
--status-border-opacity: 0.25;
|
| 179 |
+
--select-caret-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23134252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
| 180 |
+
--select-caret-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5f5f5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
|
| 181 |
+
|
| 182 |
+
/* RGB versions for dark mode */
|
| 183 |
+
--color-success-rgb: 50, 184, 198;
|
| 184 |
+
--color-error-rgb: 255, 84, 89;
|
| 185 |
+
--color-warning-rgb: 230, 129, 97;
|
| 186 |
+
--color-info-rgb: 167, 169, 169;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
[data-color-scheme="light"] {
|
| 190 |
+
--color-background: rgba(252, 252, 249, 1);
|
| 191 |
+
--color-surface: rgba(255, 255, 253, 1);
|
| 192 |
+
--color-text: rgba(19, 52, 59, 1);
|
| 193 |
+
--color-text-secondary: rgba(98, 108, 113, 1);
|
| 194 |
+
--color-primary: rgba(33, 128, 141, 1);
|
| 195 |
+
--color-primary-hover: rgba(29, 116, 128, 1);
|
| 196 |
+
--color-primary-active: rgba(26, 104, 115, 1);
|
| 197 |
+
--color-secondary: rgba(94, 82, 64, 0.12);
|
| 198 |
+
--color-secondary-hover: rgba(94, 82, 64, 0.2);
|
| 199 |
+
--color-secondary-active: rgba(94, 82, 64, 0.25);
|
| 200 |
+
--color-border: rgba(94, 82, 64, 0.2);
|
| 201 |
+
--color-btn-primary-text: rgba(252, 252, 249, 1);
|
| 202 |
+
--color-card-border: rgba(94, 82, 64, 0.12);
|
| 203 |
+
--color-card-border-inner: rgba(94, 82, 64, 0.12);
|
| 204 |
+
--color-error: rgba(192, 21, 47, 1);
|
| 205 |
+
--color-success: rgba(33, 128, 141, 1);
|
| 206 |
+
--color-warning: rgba(168, 75, 47, 1);
|
| 207 |
+
--color-info: rgba(98, 108, 113, 1);
|
| 208 |
+
--color-focus-ring: rgba(33, 128, 141, 0.4);
|
| 209 |
+
|
| 210 |
+
/* RGB versions for light mode */
|
| 211 |
+
--color-success-rgb: 33, 128, 141;
|
| 212 |
+
--color-error-rgb: 192, 21, 47;
|
| 213 |
+
--color-warning-rgb: 168, 75, 47;
|
| 214 |
+
--color-info-rgb: 98, 108, 113;
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
/* Base styles */
|
| 218 |
+
html {
|
| 219 |
+
font-size: var(--font-size-base);
|
| 220 |
+
font-family: var(--font-family-base);
|
| 221 |
+
line-height: var(--line-height-normal);
|
| 222 |
+
color: var(--color-text);
|
| 223 |
+
background-color: var(--color-background);
|
| 224 |
+
-webkit-font-smoothing: antialiased;
|
| 225 |
+
box-sizing: border-box;
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
body {
|
| 229 |
+
margin: 0;
|
| 230 |
+
padding: 0;
|
| 231 |
+
}
|
| 232 |
+
|
| 233 |
+
*,
|
| 234 |
+
*::before,
|
| 235 |
+
*::after {
|
| 236 |
+
box-sizing: inherit;
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
/* Typography */
|
| 240 |
+
h1,
|
| 241 |
+
h2,
|
| 242 |
+
h3,
|
| 243 |
+
h4,
|
| 244 |
+
h5,
|
| 245 |
+
h6 {
|
| 246 |
+
margin: 0;
|
| 247 |
+
font-weight: var(--font-weight-semibold);
|
| 248 |
+
line-height: var(--line-height-tight);
|
| 249 |
+
color: var(--color-text);
|
| 250 |
+
letter-spacing: var(--letter-spacing-tight);
|
| 251 |
}
|
| 252 |
|
| 253 |
h1 {
|
| 254 |
+
font-size: var(--font-size-4xl);
|
| 255 |
+
}
|
| 256 |
+
h2 {
|
| 257 |
+
font-size: var(--font-size-3xl);
|
| 258 |
+
}
|
| 259 |
+
h3 {
|
| 260 |
+
font-size: var(--font-size-2xl);
|
| 261 |
+
}
|
| 262 |
+
h4 {
|
| 263 |
+
font-size: var(--font-size-xl);
|
| 264 |
+
}
|
| 265 |
+
h5 {
|
| 266 |
+
font-size: var(--font-size-lg);
|
| 267 |
+
}
|
| 268 |
+
h6 {
|
| 269 |
+
font-size: var(--font-size-md);
|
| 270 |
}
|
| 271 |
|
| 272 |
p {
|
| 273 |
+
margin: 0 0 var(--space-16) 0;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
a {
|
| 277 |
+
color: var(--color-primary);
|
| 278 |
+
text-decoration: none;
|
| 279 |
+
transition: color var(--duration-fast) var(--ease-standard);
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
a:hover {
|
| 283 |
+
color: var(--color-primary-hover);
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
code,
|
| 287 |
+
pre {
|
| 288 |
+
font-family: var(--font-family-mono);
|
| 289 |
+
font-size: calc(var(--font-size-base) * 0.95);
|
| 290 |
+
background-color: var(--color-secondary);
|
| 291 |
+
border-radius: var(--radius-sm);
|
| 292 |
+
}
|
| 293 |
+
|
| 294 |
+
code {
|
| 295 |
+
padding: var(--space-1) var(--space-4);
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
pre {
|
| 299 |
+
padding: var(--space-16);
|
| 300 |
+
margin: var(--space-16) 0;
|
| 301 |
+
overflow: auto;
|
| 302 |
+
border: 1px solid var(--color-border);
|
| 303 |
+
}
|
| 304 |
+
|
| 305 |
+
pre code {
|
| 306 |
+
background: none;
|
| 307 |
+
padding: 0;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
/* Buttons */
|
| 311 |
+
.btn {
|
| 312 |
+
display: inline-flex;
|
| 313 |
+
align-items: center;
|
| 314 |
+
justify-content: center;
|
| 315 |
+
padding: var(--space-8) var(--space-16);
|
| 316 |
+
border-radius: var(--radius-base);
|
| 317 |
+
font-size: var(--font-size-base);
|
| 318 |
+
font-weight: 500;
|
| 319 |
+
line-height: 1.5;
|
| 320 |
+
cursor: pointer;
|
| 321 |
+
transition: all var(--duration-normal) var(--ease-standard);
|
| 322 |
+
border: none;
|
| 323 |
+
text-decoration: none;
|
| 324 |
+
position: relative;
|
| 325 |
+
}
|
| 326 |
+
|
| 327 |
+
.btn:focus-visible {
|
| 328 |
+
outline: none;
|
| 329 |
+
box-shadow: var(--focus-ring);
|
| 330 |
+
}
|
| 331 |
+
|
| 332 |
+
.btn--primary {
|
| 333 |
+
background: var(--color-primary);
|
| 334 |
+
color: var(--color-btn-primary-text);
|
| 335 |
+
}
|
| 336 |
+
|
| 337 |
+
.btn--primary:hover {
|
| 338 |
+
background: var(--color-primary-hover);
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
.btn--primary:active {
|
| 342 |
+
background: var(--color-primary-active);
|
| 343 |
}
|
| 344 |
|
| 345 |
+
.btn--secondary {
|
| 346 |
+
background: var(--color-secondary);
|
| 347 |
+
color: var(--color-text);
|
| 348 |
+
}
|
| 349 |
+
|
| 350 |
+
.btn--secondary:hover {
|
| 351 |
+
background: var(--color-secondary-hover);
|
| 352 |
+
}
|
| 353 |
+
|
| 354 |
+
.btn--secondary:active {
|
| 355 |
+
background: var(--color-secondary-active);
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
.btn--outline {
|
| 359 |
+
background: transparent;
|
| 360 |
+
border: 1px solid var(--color-border);
|
| 361 |
+
color: var(--color-text);
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
.btn--outline:hover {
|
| 365 |
+
background: var(--color-secondary);
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
.btn--sm {
|
| 369 |
+
padding: var(--space-4) var(--space-12);
|
| 370 |
+
font-size: var(--font-size-sm);
|
| 371 |
+
border-radius: var(--radius-sm);
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
.btn--lg {
|
| 375 |
+
padding: var(--space-10) var(--space-20);
|
| 376 |
+
font-size: var(--font-size-lg);
|
| 377 |
+
border-radius: var(--radius-md);
|
| 378 |
+
}
|
| 379 |
+
|
| 380 |
+
.btn--full-width {
|
| 381 |
+
width: 100%;
|
| 382 |
+
}
|
| 383 |
+
|
| 384 |
+
.btn:disabled {
|
| 385 |
+
opacity: 0.5;
|
| 386 |
+
cursor: not-allowed;
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
+
/* Form elements */
|
| 390 |
+
.form-control {
|
| 391 |
+
display: block;
|
| 392 |
+
width: 100%;
|
| 393 |
+
padding: var(--space-8) var(--space-12);
|
| 394 |
+
font-size: var(--font-size-md);
|
| 395 |
+
line-height: 1.5;
|
| 396 |
+
color: var(--color-text);
|
| 397 |
+
background-color: var(--color-surface);
|
| 398 |
+
border: 1px solid var(--color-border);
|
| 399 |
+
border-radius: var(--radius-base);
|
| 400 |
+
transition: border-color var(--duration-fast) var(--ease-standard),
|
| 401 |
+
box-shadow var(--duration-fast) var(--ease-standard);
|
| 402 |
+
}
|
| 403 |
+
|
| 404 |
+
textarea.form-control {
|
| 405 |
+
font-family: var(--font-family-base);
|
| 406 |
+
font-size: var(--font-size-base);
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
select.form-control {
|
| 410 |
+
padding: var(--space-8) var(--space-12);
|
| 411 |
+
-webkit-appearance: none;
|
| 412 |
+
-moz-appearance: none;
|
| 413 |
+
appearance: none;
|
| 414 |
+
background-image: var(--select-caret-light);
|
| 415 |
+
background-repeat: no-repeat;
|
| 416 |
+
background-position: right var(--space-12) center;
|
| 417 |
+
background-size: 16px;
|
| 418 |
+
padding-right: var(--space-32);
|
| 419 |
+
}
|
| 420 |
+
|
| 421 |
+
/* Add a dark mode specific caret */
|
| 422 |
+
@media (prefers-color-scheme: dark) {
|
| 423 |
+
select.form-control {
|
| 424 |
+
background-image: var(--select-caret-dark);
|
| 425 |
+
}
|
| 426 |
+
}
|
| 427 |
+
|
| 428 |
+
/* Also handle data-color-scheme */
|
| 429 |
+
[data-color-scheme="dark"] select.form-control {
|
| 430 |
+
background-image: var(--select-caret-dark);
|
| 431 |
+
}
|
| 432 |
+
|
| 433 |
+
[data-color-scheme="light"] select.form-control {
|
| 434 |
+
background-image: var(--select-caret-light);
|
| 435 |
+
}
|
| 436 |
+
|
| 437 |
+
.form-control:focus {
|
| 438 |
+
border-color: var(--color-primary);
|
| 439 |
+
outline: var(--focus-outline);
|
| 440 |
+
}
|
| 441 |
+
|
| 442 |
+
.form-label {
|
| 443 |
+
display: block;
|
| 444 |
+
margin-bottom: var(--space-8);
|
| 445 |
+
font-weight: var(--font-weight-medium);
|
| 446 |
+
font-size: var(--font-size-sm);
|
| 447 |
+
}
|
| 448 |
+
|
| 449 |
+
.form-group {
|
| 450 |
+
margin-bottom: var(--space-16);
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
/* Card component */
|
| 454 |
.card {
|
| 455 |
+
background-color: var(--color-surface);
|
| 456 |
+
border-radius: var(--radius-lg);
|
| 457 |
+
border: 1px solid var(--color-card-border);
|
| 458 |
+
box-shadow: var(--shadow-sm);
|
| 459 |
+
overflow: hidden;
|
| 460 |
+
transition: box-shadow var(--duration-normal) var(--ease-standard);
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
.card:hover {
|
| 464 |
+
box-shadow: var(--shadow-md);
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
.card__body {
|
| 468 |
+
padding: var(--space-16);
|
| 469 |
+
}
|
| 470 |
+
|
| 471 |
+
.card__header,
|
| 472 |
+
.card__footer {
|
| 473 |
+
padding: var(--space-16);
|
| 474 |
+
border-bottom: 1px solid var(--color-card-border-inner);
|
| 475 |
+
}
|
| 476 |
+
|
| 477 |
+
/* Status indicators - simplified with CSS variables */
|
| 478 |
+
.status {
|
| 479 |
+
display: inline-flex;
|
| 480 |
+
align-items: center;
|
| 481 |
+
padding: var(--space-6) var(--space-12);
|
| 482 |
+
border-radius: var(--radius-full);
|
| 483 |
+
font-weight: var(--font-weight-medium);
|
| 484 |
+
font-size: var(--font-size-sm);
|
| 485 |
+
}
|
| 486 |
+
|
| 487 |
+
.status--success {
|
| 488 |
+
background-color: rgba(
|
| 489 |
+
var(--color-success-rgb, 33, 128, 141),
|
| 490 |
+
var(--status-bg-opacity)
|
| 491 |
+
);
|
| 492 |
+
color: var(--color-success);
|
| 493 |
+
border: 1px solid
|
| 494 |
+
rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
|
| 495 |
+
}
|
| 496 |
+
|
| 497 |
+
.status--error {
|
| 498 |
+
background-color: rgba(
|
| 499 |
+
var(--color-error-rgb, 192, 21, 47),
|
| 500 |
+
var(--status-bg-opacity)
|
| 501 |
+
);
|
| 502 |
+
color: var(--color-error);
|
| 503 |
+
border: 1px solid
|
| 504 |
+
rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
|
| 505 |
+
}
|
| 506 |
+
|
| 507 |
+
.status--warning {
|
| 508 |
+
background-color: rgba(
|
| 509 |
+
var(--color-warning-rgb, 168, 75, 47),
|
| 510 |
+
var(--status-bg-opacity)
|
| 511 |
+
);
|
| 512 |
+
color: var(--color-warning);
|
| 513 |
+
border: 1px solid
|
| 514 |
+
rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
|
| 515 |
+
}
|
| 516 |
+
|
| 517 |
+
.status--info {
|
| 518 |
+
background-color: rgba(
|
| 519 |
+
var(--color-info-rgb, 98, 108, 113),
|
| 520 |
+
var(--status-bg-opacity)
|
| 521 |
+
);
|
| 522 |
+
color: var(--color-info);
|
| 523 |
+
border: 1px solid
|
| 524 |
+
rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
|
| 525 |
+
}
|
| 526 |
+
|
| 527 |
+
/* Container layout */
|
| 528 |
+
.container {
|
| 529 |
+
width: 100%;
|
| 530 |
+
margin-right: auto;
|
| 531 |
+
margin-left: auto;
|
| 532 |
+
padding-right: var(--space-16);
|
| 533 |
+
padding-left: var(--space-16);
|
| 534 |
}
|
| 535 |
|
| 536 |
+
@media (min-width: 640px) {
|
| 537 |
+
.container {
|
| 538 |
+
max-width: var(--container-sm);
|
| 539 |
+
}
|
| 540 |
}
|
| 541 |
+
@media (min-width: 768px) {
|
| 542 |
+
.container {
|
| 543 |
+
max-width: var(--container-md);
|
| 544 |
+
}
|
| 545 |
+
}
|
| 546 |
+
@media (min-width: 1024px) {
|
| 547 |
+
.container {
|
| 548 |
+
max-width: var(--container-lg);
|
| 549 |
+
}
|
| 550 |
+
}
|
| 551 |
+
@media (min-width: 1280px) {
|
| 552 |
+
.container {
|
| 553 |
+
max-width: var(--container-xl);
|
| 554 |
+
}
|
| 555 |
+
}
|
| 556 |
+
|
| 557 |
+
/* Utility classes */
|
| 558 |
+
.flex {
|
| 559 |
+
display: flex;
|
| 560 |
+
}
|
| 561 |
+
.flex-col {
|
| 562 |
+
flex-direction: column;
|
| 563 |
+
}
|
| 564 |
+
.items-center {
|
| 565 |
+
align-items: center;
|
| 566 |
+
}
|
| 567 |
+
.justify-center {
|
| 568 |
+
justify-content: center;
|
| 569 |
+
}
|
| 570 |
+
.justify-between {
|
| 571 |
+
justify-content: space-between;
|
| 572 |
+
}
|
| 573 |
+
.gap-4 {
|
| 574 |
+
gap: var(--space-4);
|
| 575 |
+
}
|
| 576 |
+
.gap-8 {
|
| 577 |
+
gap: var(--space-8);
|
| 578 |
+
}
|
| 579 |
+
.gap-16 {
|
| 580 |
+
gap: var(--space-16);
|
| 581 |
+
}
|
| 582 |
+
|
| 583 |
+
.m-0 {
|
| 584 |
+
margin: 0;
|
| 585 |
+
}
|
| 586 |
+
.mt-8 {
|
| 587 |
+
margin-top: var(--space-8);
|
| 588 |
+
}
|
| 589 |
+
.mb-8 {
|
| 590 |
+
margin-bottom: var(--space-8);
|
| 591 |
+
}
|
| 592 |
+
.mx-8 {
|
| 593 |
+
margin-left: var(--space-8);
|
| 594 |
+
margin-right: var(--space-8);
|
| 595 |
+
}
|
| 596 |
+
.my-8 {
|
| 597 |
+
margin-top: var(--space-8);
|
| 598 |
+
margin-bottom: var(--space-8);
|
| 599 |
+
}
|
| 600 |
+
|
| 601 |
+
.p-0 {
|
| 602 |
+
padding: 0;
|
| 603 |
+
}
|
| 604 |
+
.py-8 {
|
| 605 |
+
padding-top: var(--space-8);
|
| 606 |
+
padding-bottom: var(--space-8);
|
| 607 |
+
}
|
| 608 |
+
.px-8 {
|
| 609 |
+
padding-left: var(--space-8);
|
| 610 |
+
padding-right: var(--space-8);
|
| 611 |
+
}
|
| 612 |
+
.py-16 {
|
| 613 |
+
padding-top: var(--space-16);
|
| 614 |
+
padding-bottom: var(--space-16);
|
| 615 |
+
}
|
| 616 |
+
.px-16 {
|
| 617 |
+
padding-left: var(--space-16);
|
| 618 |
+
padding-right: var(--space-16);
|
| 619 |
+
}
|
| 620 |
+
|
| 621 |
+
.block {
|
| 622 |
+
display: block;
|
| 623 |
+
}
|
| 624 |
+
.hidden {
|
| 625 |
+
display: none;
|
| 626 |
+
}
|
| 627 |
+
|
| 628 |
+
/* Accessibility */
|
| 629 |
+
.sr-only {
|
| 630 |
+
position: absolute;
|
| 631 |
+
width: 1px;
|
| 632 |
+
height: 1px;
|
| 633 |
+
padding: 0;
|
| 634 |
+
margin: -1px;
|
| 635 |
+
overflow: hidden;
|
| 636 |
+
clip: rect(0, 0, 0, 0);
|
| 637 |
+
white-space: nowrap;
|
| 638 |
+
border-width: 0;
|
| 639 |
+
}
|
| 640 |
+
|
| 641 |
+
:focus-visible {
|
| 642 |
+
outline: var(--focus-outline);
|
| 643 |
+
outline-offset: 2px;
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
/* Dark mode specifics */
|
| 647 |
+
[data-color-scheme="dark"] .btn--outline {
|
| 648 |
+
border: 1px solid var(--color-border-secondary);
|
| 649 |
+
}
|
| 650 |
+
|
| 651 |
+
@font-face {
|
| 652 |
+
font-family: 'FKGroteskNeue';
|
| 653 |
+
src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2')
|
| 654 |
+
format('woff2');
|
| 655 |
+
}
|
| 656 |
+
|
| 657 |
+
/* Custom styles for Python Code Tester - This will be appended to the design system */
|
| 658 |
+
|
| 659 |
+
/* Layout */
|
| 660 |
+
.main-content {
|
| 661 |
+
display: flex;
|
| 662 |
+
gap: var(--space-24);
|
| 663 |
+
margin-top: var(--space-24);
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
.sidebar {
|
| 667 |
+
width: 30%;
|
| 668 |
+
min-width: 250px;
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
.editor-section {
|
| 672 |
+
flex: 1;
|
| 673 |
+
}
|
| 674 |
+
|
| 675 |
+
/* Header */
|
| 676 |
+
.header {
|
| 677 |
+
text-align: center;
|
| 678 |
+
padding: var(--space-24) 0;
|
| 679 |
+
}
|
| 680 |
+
|
| 681 |
+
.header__subtitle {
|
| 682 |
+
color: var(--color-text-secondary);
|
| 683 |
+
margin-top: var(--space-8);
|
| 684 |
+
}
|
| 685 |
+
|
| 686 |
+
/* Task List */
|
| 687 |
+
.task-list {
|
| 688 |
+
display: flex;
|
| 689 |
+
flex-direction: column;
|
| 690 |
+
gap: var(--space-8);
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
.task-item {
|
| 694 |
+
padding: var(--space-10) var(--space-12);
|
| 695 |
+
border-radius: var(--radius-base);
|
| 696 |
+
cursor: pointer;
|
| 697 |
+
transition: background-color var(--duration-fast) var(--ease-standard);
|
| 698 |
+
border: 1px solid transparent;
|
| 699 |
+
}
|
| 700 |
+
|
| 701 |
+
.task-item:hover {
|
| 702 |
+
background-color: var(--color-secondary);
|
| 703 |
+
}
|
| 704 |
+
|
| 705 |
+
.task-item.active {
|
| 706 |
+
background-color: var(--color-secondary);
|
| 707 |
+
border-color: var(--color-primary);
|
| 708 |
+
}
|
| 709 |
+
|
| 710 |
+
.task-item h4 {
|
| 711 |
+
margin: 0;
|
| 712 |
+
font-size: var(--font-size-base);
|
| 713 |
+
font-weight: var(--font-weight-medium);
|
| 714 |
+
}
|
| 715 |
+
|
| 716 |
+
/* Code Editor */
|
| 717 |
+
.editor-container {
|
| 718 |
+
margin-top: var(--space-16);
|
| 719 |
+
border-radius: var(--radius-base);
|
| 720 |
+
overflow: hidden;
|
| 721 |
+
border: 1px solid var(--color-border);
|
| 722 |
+
}
|
| 723 |
+
|
| 724 |
+
.editor-header {
|
| 725 |
+
background-color: var(--color-secondary);
|
| 726 |
+
padding: var(--space-8) var(--space-12);
|
| 727 |
+
display: flex;
|
| 728 |
+
justify-content: space-between;
|
| 729 |
+
align-items: center;
|
| 730 |
+
}
|
| 731 |
+
|
| 732 |
+
.editor-title {
|
| 733 |
+
font-weight: var(--font-weight-medium);
|
| 734 |
+
font-size: var(--font-size-sm);
|
| 735 |
+
}
|
| 736 |
+
|
| 737 |
+
.code-editor {
|
| 738 |
+
width: 100%;
|
| 739 |
+
min-height: 250px;
|
| 740 |
+
padding: var(--space-12);
|
| 741 |
+
font-family: var(--font-family-mono);
|
| 742 |
+
font-size: var(--font-size-base);
|
| 743 |
+
line-height: 1.5;
|
| 744 |
+
color: #f8f8f2;
|
| 745 |
+
background-color: #282a36;
|
| 746 |
+
border: none;
|
| 747 |
+
resize: vertical;
|
| 748 |
+
white-space: pre;
|
| 749 |
+
tab-size: 4;
|
| 750 |
+
}
|
| 751 |
+
|
| 752 |
+
.code-editor:focus {
|
| 753 |
+
outline: none;
|
| 754 |
+
}
|
| 755 |
+
|
| 756 |
+
/* Output */
|
| 757 |
+
.output-container {
|
| 758 |
+
background-color: #282a36;
|
| 759 |
+
border-radius: var(--radius-base);
|
| 760 |
+
overflow: hidden;
|
| 761 |
+
}
|
| 762 |
+
|
| 763 |
+
.output {
|
| 764 |
+
font-family: var(--font-family-mono);
|
| 765 |
+
padding: var(--space-12);
|
| 766 |
+
margin: 0;
|
| 767 |
+
color: #f8f8f2;
|
| 768 |
+
min-height: 100px;
|
| 769 |
+
white-space: pre-wrap;
|
| 770 |
+
}
|
| 771 |
+
|
| 772 |
+
.output-status {
|
| 773 |
+
margin-left: var(--space-16);
|
| 774 |
+
font-size: var(--font-size-sm);
|
| 775 |
+
}
|
| 776 |
+
|
| 777 |
+
/* Examples section */
|
| 778 |
+
.examples {
|
| 779 |
+
display: flex;
|
| 780 |
+
flex-direction: column;
|
| 781 |
+
gap: var(--space-12);
|
| 782 |
+
}
|
| 783 |
+
|
| 784 |
+
.example-section {
|
| 785 |
+
display: flex;
|
| 786 |
+
flex-direction: column;
|
| 787 |
+
gap: var(--space-4);
|
| 788 |
+
}
|
| 789 |
+
|
| 790 |
+
.example-section h4 {
|
| 791 |
+
margin: var(--space-4) 0;
|
| 792 |
+
font-size: var(--font-size-sm);
|
| 793 |
+
font-weight: var(--font-weight-medium);
|
| 794 |
+
}
|
| 795 |
+
|
| 796 |
+
.example-section code {
|
| 797 |
+
display: block;
|
| 798 |
+
padding: var(--space-4) var(--space-8);
|
| 799 |
+
background-color: var(--color-secondary);
|
| 800 |
+
border-radius: var(--radius-sm);
|
| 801 |
+
font-family: var(--font-family-mono);
|
| 802 |
+
font-size: var(--font-size-sm);
|
| 803 |
+
cursor: pointer;
|
| 804 |
+
}
|
| 805 |
+
|
| 806 |
+
.example-section code:hover {
|
| 807 |
+
background-color: var(--color-secondary-hover);
|
| 808 |
+
}
|
| 809 |
+
|
| 810 |
+
/* Task description */
|
| 811 |
+
.task-description {
|
| 812 |
+
padding-bottom: var(--space-16);
|
| 813 |
+
border-bottom: 1px solid var(--color-border);
|
| 814 |
+
margin-bottom: var(--space-16);
|
| 815 |
+
line-height: 1.5;
|
| 816 |
+
}
|
| 817 |
+
|
| 818 |
+
/* Task actions */
|
| 819 |
+
.task-actions {
|
| 820 |
+
display: flex;
|
| 821 |
+
gap: var(--space-8);
|
| 822 |
+
}
|
| 823 |
+
|
| 824 |
+
/* Modal */
|
| 825 |
+
.modal {
|
| 826 |
+
position: fixed;
|
| 827 |
+
top: 0;
|
| 828 |
+
left: 0;
|
| 829 |
+
width: 100%;
|
| 830 |
+
height: 100%;
|
| 831 |
+
background-color: rgba(0, 0, 0, 0.5);
|
| 832 |
+
display: flex;
|
| 833 |
+
justify-content: center;
|
| 834 |
+
align-items: center;
|
| 835 |
+
z-index: 1000;
|
| 836 |
+
}
|
| 837 |
+
|
| 838 |
+
.modal.hidden {
|
| 839 |
+
display: none;
|
| 840 |
+
}
|
| 841 |
+
|
| 842 |
+
.modal-content {
|
| 843 |
+
background-color: var(--color-surface);
|
| 844 |
+
border-radius: var(--radius-lg);
|
| 845 |
+
width: 90%;
|
| 846 |
+
max-width: 600px;
|
| 847 |
+
max-height: 90vh;
|
| 848 |
+
overflow: hidden;
|
| 849 |
+
box-shadow: var(--shadow-lg);
|
| 850 |
+
}
|
| 851 |
+
|
| 852 |
+
.modal-header {
|
| 853 |
+
padding: var(--space-16);
|
| 854 |
+
border-bottom: 1px solid var(--color-border);
|
| 855 |
+
display: flex;
|
| 856 |
+
justify-content: space-between;
|
| 857 |
+
align-items: center;
|
| 858 |
+
}
|
| 859 |
+
|
| 860 |
+
.modal-header h3 {
|
| 861 |
+
margin: 0;
|
| 862 |
+
}
|
| 863 |
+
|
| 864 |
+
.modal-body {
|
| 865 |
+
padding: var(--space-16);
|
| 866 |
+
overflow-y: auto;
|
| 867 |
+
max-height: 70vh;
|
| 868 |
+
}
|
| 869 |
+
|
| 870 |
+
.modal-close {
|
| 871 |
+
background: none;
|
| 872 |
+
border: none;
|
| 873 |
+
font-size: 24px;
|
| 874 |
+
cursor: pointer;
|
| 875 |
+
color: var(--color-text-secondary);
|
| 876 |
+
}
|
| 877 |
+
|
| 878 |
+
.modal-close:hover {
|
| 879 |
+
color: var(--color-text);
|
| 880 |
+
}
|
| 881 |
+
|
| 882 |
+
/* Solution code */
|
| 883 |
+
.solution-code {
|
| 884 |
+
font-family: var(--font-family-mono);
|
| 885 |
+
background-color: #282a36;
|
| 886 |
+
color: #f8f8f2;
|
| 887 |
+
padding: var(--space-12);
|
| 888 |
+
border-radius: var(--radius-base);
|
| 889 |
+
overflow-x: auto;
|
| 890 |
+
white-space: pre;
|
| 891 |
+
}
|
| 892 |
+
|
| 893 |
+
/* Status indicators */
|
| 894 |
+
.status-success {
|
| 895 |
+
color: var(--color-success);
|
| 896 |
+
}
|
| 897 |
+
|
| 898 |
+
.status-error {
|
| 899 |
+
color: var(--color-error);
|
| 900 |
+
}
|
| 901 |
+
|
| 902 |
+
/* Responsive layout */
|
| 903 |
+
@media (max-width: 900px) {
|
| 904 |
+
.main-content {
|
| 905 |
+
flex-direction: column;
|
| 906 |
+
}
|
| 907 |
+
|
| 908 |
+
.sidebar {
|
| 909 |
+
width: 100%;
|
| 910 |
+
}
|
| 911 |
+
}
|