Diff -- /var/www/vhosts/3dshawn.com/site1/assets/styles/drift_sense.css

O Operator
Diff

/var/www/vhosts/3dshawn.com/site1/assets/styles/drift_sense.css

modified on local at 2026-07-12 00:48:45

Added
+80
lines
Removed
-0
lines
Context
542
unchanged
Blobs
from 1369c2c778fe
to d2605008feac
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
11/* =========================================================================
22 * DriftSense -- design system + component styles
33 * -------------------------------------------------------------------------
44 * Palette: midnight navy background + steel-teal primary + amber warnings.
55 * Distinct from every portfolio site (cyan/indigo/violet/emerald/burgundy/amber)
66 * -- reads as "watchtower / observatory / cool precision instrument."
77 * ========================================================================= */
88
99:root {
1010 /* Backgrounds -- deep, cool, with subtle blue tint */
1111 --bg-0: #030710;
1212 --bg-1: #0a1220;
1313 --bg-2: #131e30;
1414 --bg-3: #1a2740;
1515 --bg-panel: linear-gradient(180deg, #131e30 0%, #0a1220 100%);
1616
1717 /* Borders */
1818 --border: #223050;
1919 --border-hi: #2d3d5f;
2020 --border-focus: #14b8a6;
2121
2222 /* Text */
2323 --text: #e5edf5;
2424 --text-dim: #96a3b8;
2525 --text-muted: #6a7a94;
2626
2727 /* Accents */
2828 --accent: #14b8a6; /* Teal -- primary, "sense" color */
2929 --accent-hi: #2dd4bf;
3030 --accent-deep: #0f766e;
3131 --accent-glow: rgba(20, 184, 166, 0.35);
3232
3333 --accent-warn: #f59e0b; /* Amber -- drift alert */
3434 --accent-warn-hi: #fbbf24;
3535
3636 --accent-danger: #f43f5e; /* Rose -- critical */
3737 --accent-danger-hi: #fb7185;
3838
3939 --accent-ok: #34d399; /* Emerald -- clean baseline */
4040 --accent-ok-hi: #6ee7b7;
4141
4242 --accent-info: #38bdf8; /* Sky-blue -- info notices */
4343
4444 /* Typography */
4545 --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
4646 --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
4747
4848 /* Sizing */
4949 --radius: 12px;
5050 --radius-sm: 8px;
5151 --radius-pill: 999px;
5252 --sidebar-w: 240px;
5353}
5454
5555* { box-sizing: border-box; }
5656html, body { margin: 0; padding: 0; }
5757body {
5858 font-family: var(--sans);
5959 color: var(--text);
6060 background: var(--bg-0);
6161 background-image:
6262 radial-gradient(ellipse 1000px 600px at 15% 0%, rgba(20, 184, 166, 0.10), transparent 65%),
6363 radial-gradient(ellipse 900px 500px at 90% 100%, rgba(56, 189, 248, 0.08), transparent 65%);
6464 background-attachment: fixed;
6565 line-height: 1.6;
6666 -webkit-font-smoothing: antialiased;
6767 min-height: 100vh;
6868}
6969
7070/* =========================================================================
7171 * APP SHELL -- sidebar + main
7272 * ========================================================================= */
7373.app {
7474 display: grid;
7575 grid-template-columns: var(--sidebar-w) 1fr;
7676 min-height: 100vh;
7777}
7878@media (max-width: 780px) {
7979 .app { grid-template-columns: 1fr; }
8080 .sidebar { display: none; }
8181}
8282
8383/* Sidebar */
8484.sidebar {
8585 background: linear-gradient(180deg, #0a1220 0%, #050810 100%);
8686 border-right: 1px solid var(--border);
8787 padding: 20px 0;
8888 position: sticky; top: 0;
8989 height: 100vh;
9090 overflow-y: auto;
9191}
9292.sidebar-brand {
9393 padding: 8px 20px 20px;
9494 display: flex;
9595 align-items: center;
9696 gap: 12px;
9797 text-decoration: none;
9898 color: var(--text);
9999 border-bottom: 1px solid var(--border);
100100 margin-bottom: 12px;
101101}
102102.sidebar-brand .logo {
103103 width: 38px; height: 38px;
104104 border-radius: 10px;
105105 background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
106106 display: grid; place-items: center;
107107 color: #030710;
108108 font-family: var(--mono);
109109 font-weight: 800;
110110 font-size: 14px;
111111 box-shadow: 0 4px 14px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
112112}
113113.sidebar-brand .name {
114114 font-weight: 700;
115115 font-size: 15px;
116116 letter-spacing: -0.01em;
117117}
118118.sidebar-brand .name .accent { color: var(--accent-hi); }
119119.sidebar-brand .role {
120120 font-size: 10px;
121121 letter-spacing: 1.6px;
122122 text-transform: uppercase;
123123 color: var(--text-muted);
124124 font-weight: 700;
125125 margin-top: 2px;
126126}
127127.sidebar-section-label {
128128 font-size: 10.5px;
129129 letter-spacing: 1.6px;
130130 text-transform: uppercase;
131131 color: var(--text-muted);
132132 font-weight: 700;
133133 padding: 12px 20px 6px;
134134}
135135.sidebar-link {
136136 display: flex;
137137 align-items: center;
138138 gap: 11px;
139139 padding: 9px 20px;
140140 color: var(--text-dim);
141141 text-decoration: none;
142142 font-size: 13.5px;
143143 border-left: 2px solid transparent;
144144 transition: color .12s ease, background .12s ease, border-left-color .12s ease;
145145}
146146.sidebar-link svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: 0.85; }
147147.sidebar-link:hover { color: var(--text); background: rgba(255,255,255,.02); }
148148.sidebar-link.active {
149149 color: var(--accent-hi);
150150 background: linear-gradient(90deg, rgba(20, 184, 166, .12), transparent 90%);
151151 border-left-color: var(--accent);
152152}
153153.sidebar-link.active svg { opacity: 1; }
154
155/* Trend arrows on KPI tiles (Wave 5) */
156.ds-trend {
157 display: inline-flex;
158 align-items: center;
159 gap: 3px;
160 padding: 2px 8px;
161 border-radius: 999px;
162 font-size: 10.5px;
163 font-weight: 700;
164 letter-spacing: 0.3px;
165 vertical-align: 3px;
166 margin-left: 8px;
167}
168.ds-trend.ds-trend-up {
169 background: rgba(52, 211, 153, .14);
170 color: #86efac;
171 border: 1px solid rgba(52, 211, 153, .35);
172}
173.ds-trend.ds-trend-down {
174 background: rgba(244, 63, 94, .14);
175 color: #fda4af;
176 border: 1px solid rgba(244, 63, 94, .35);
177}
178.ds-trend.ds-trend-flat {
179 background: rgba(148, 163, 184, .14);
180 color: var(--text-dim);
181 border: 1px solid rgba(148, 163, 184, .30);
182}
183.ds-trend svg {
184 width: 10px; height: 10px;
185}
186
187/* Site links in sidebar (Wave 5) */
188.ds-site-link {
189 font-size: 12.5px;
190 padding: 6px 20px 6px 20px;
191}
192.ds-site-badge {
193 display: inline-grid;
194 place-items: center;
195 width: 22px; height: 22px;
196 border-radius: 6px;
197 background: linear-gradient(135deg, rgba(20, 184, 166, .18), rgba(6, 78, 74, .12));
198 border: 1px solid rgba(20, 184, 166, .25);
199 color: var(--accent-hi);
200 font-size: 9.5px;
201 font-weight: 800;
202 letter-spacing: 0;
203 flex: 0 0 auto;
204}
205.ds-site-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
206.ds-site-dot {
207 width: 8px; height: 8px; border-radius: 50%;
208 flex: 0 0 auto;
209 background: #334155;
210}
211.ds-site-dot.ds-dot-live { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.6); }
212.ds-site-dot.ds-dot-warm { background: #f59e0b; box-shadow: 0 0 6px rgba(245,158,11,.5); }
213.ds-site-dot.ds-dot-hot { background: #f43f5e; box-shadow: 0 0 8px rgba(244,63,94,.7); }
214.ds-site-dot.ds-dot-quiet { background: #334155; }
215
216/* Stable release links in sidebar (Wave 5) */
217.ds-stable-link {
218 font-size: 12.5px;
219 padding: 6px 20px;
220}
221.ds-stable-tag {
222 display: inline-grid;
223 place-items: center;
224 width: 20px; height: 20px;
225 border-radius: 5px;
226 background: linear-gradient(135deg, #34d399, #0f766e);
227 color: #052e2b;
228 font-size: 10.5px;
229 font-weight: 900;
230 flex: 0 0 auto;
231 box-shadow: 0 0 0 1px rgba(52,211,153,.35);
232}
233.ds-stable-link:hover .ds-stable-tag { box-shadow: 0 0 12px rgba(52,211,153,.7); }
154234
155235/* Main content area */
156236.app-main { min-width: 0; }
157237.topbar {
158238 padding: 16px 32px;
159239 border-bottom: 1px solid var(--border);
160240 display: flex;
161241 align-items: center;
162242 gap: 16px;
163243 background: rgba(10, 18, 32, 0.5);
164244 backdrop-filter: blur(8px);
165245 position: sticky; top: 0; z-index: 10;
166246}
167247.topbar h1 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .3px; }
168248.topbar-spacer { flex: 1; }
169249.topbar-user {
170250 display: flex;
171251 align-items: center;
172252 gap: 10px;
173253 padding: 5px 12px 5px 5px;
174254 background: var(--bg-2);
175255 border: 1px solid var(--border);
176256 border-radius: var(--radius-pill);
177257 font-size: 12.5px;
178258}
179259.topbar-user .initials {
180260 width: 26px; height: 26px;
181261 border-radius: 50%;
182262 background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
183263 color: #030710;
184264 display: grid; place-items: center;
185265 font-size: 11px; font-weight: 700;
186266 font-family: var(--mono);
187267}
188268
189269.app-content {
190270 padding: 32px 40px 96px;
191271 max-width: 1400px;
192272}
193273
194274/* =========================================================================
195275 * PAGE HEAD
196276 * ========================================================================= */
197277.page-head { margin-bottom: 32px; }
198278.page-eyebrow {
199279 display: inline-flex;
200280 align-items: center;
201281 gap: 8px;
202282 font-size: 10.5px;
203283 letter-spacing: 1.8px;
204284 text-transform: uppercase;
205285 color: var(--accent-hi);
206286 font-weight: 700;
207287 padding: 5px 12px;
208288 background: rgba(20, 184, 166, .10);
209289 border: 1px solid rgba(20, 184, 166, .30);
210290 border-radius: var(--radius-pill);
211291 margin-bottom: 14px;
212292 text-decoration: none;
213293}
214294.page-eyebrow .dot {
215295 width: 6px; height: 6px; border-radius: 50%;
216296 background: var(--accent-hi);
217297 box-shadow: 0 0 10px var(--accent-hi);
218298}
219299.page-title {
220300 margin: 0 0 8px;
221301 font-size: 32px;
222302 font-weight: 800;
223303 letter-spacing: -0.02em;
224304 background: linear-gradient(135deg, #fff 0%, #cbd5e1 60%, var(--accent-hi) 100%);
225305 -webkit-background-clip: text;
226306 background-clip: text;
227307 color: transparent;
228308}
229309.page-subtitle {
230310 color: var(--text-dim);
231311 font-size: 14.5px;
232312 max-width: 780px;
233313 margin: 0;
234314}
235315
236316/* =========================================================================
237317 * MODULES / CARDS
238318 * ========================================================================= */
239319.dash-grid {
240320 display: grid;
241321 grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
242322 gap: 16px;
243323 margin-bottom: 20px;
244324}
245325.module {
246326 background: var(--bg-panel);
247327 border: 1px solid var(--border);
248328 border-radius: var(--radius);
249329 overflow: hidden;
250330 transition: border-color .15s ease, box-shadow .15s ease;
251331}
252332.module:hover { border-color: var(--border-hi); }
253333.module-head {
254334 padding: 12px 16px;
255335 border-bottom: 1px solid var(--border);
256336 display: flex;
257337 align-items: center;
258338 justify-content: space-between;
259339 gap: 12px;
260340 background: rgba(20, 184, 166, .03);
261341}
262342.module-head .left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
263343.module-icon {
264344 width: 26px; height: 26px;
265345 border-radius: 7px;
266346 display: grid; place-items: center;
267347 color: var(--accent-hi);
268348 background: rgba(20, 184, 166, .10);
269349 border: 1px solid rgba(20, 184, 166, .30);
270350}
271351.module-title { font-size: 13px; font-weight: 700; letter-spacing: .3px; }
272352.module-subtitle {
273353 font-size: 11.5px;
274354 font-weight: 400;
275355 color: #b8c5d6;
276356 margin-left: 8px;
277357 padding-left: 10px;
278358 border-left: 1px solid var(--border);
279359 line-height: 1.35;
280360}
281361.module-body { padding: 16px; }
282362.module-body.tight { padding: 0; }
283363
284364/* Module glow variants */
285365.module.glow-teal { box-shadow: 0 0 0 1px rgba(20, 184, 166, .20), 0 0 26px rgba(20, 184, 166, .10); }
286366.module.glow-amber { box-shadow: 0 0 0 1px rgba(245, 158, 11, .20), 0 0 26px rgba(245, 158, 11, .10); }
287367.module.glow-rose { box-shadow: 0 0 0 1px rgba(244, 63, 94, .20), 0 0 26px rgba(244, 63, 94, .10); }
288368.module.glow-emerald{ box-shadow: 0 0 0 1px rgba(52, 211, 153, .20), 0 0 26px rgba(52, 211, 153, .10); }
289369.module.glow-sky { box-shadow: 0 0 0 1px rgba(56, 189, 248, .20), 0 0 26px rgba(56, 189, 248, .10); }
290370
291371/* =========================================================================
292372 * KPI TILES
293373 * ========================================================================= */
294374.kpi { padding: 20px 22px; }
295375.kpi .num {
296376 font-size: 34px;
297377 font-weight: 800;
298378 letter-spacing: -0.02em;
299379 line-height: 1.1;
300380 font-variant-numeric: tabular-nums;
301381}
302382.kpi .lbl {
303383 font-size: 11px;
304384 letter-spacing: 1.6px;
305385 text-transform: uppercase;
306386 color: var(--text-muted);
307387 font-weight: 700;
308388 margin-top: 6px;
309389}
310390.kpi .sub { font-size: 12px; color: var(--text-dim); margin-top: 10px; }
311391.kpi-teal .num { color: var(--accent-hi); text-shadow: 0 0 24px rgba(20, 184, 166, .35); }
312392.kpi-amber .num { color: var(--accent-warn-hi); text-shadow: 0 0 24px rgba(245, 158, 11, .30); }
313393.kpi-rose .num { color: var(--accent-danger-hi); text-shadow: 0 0 24px rgba(244, 63, 94, .30); }
314394.kpi-emerald .num { color: var(--accent-ok-hi); text-shadow: 0 0 24px rgba(52, 211, 153, .30); }
315395.kpi-sky .num { color: var(--accent-info); text-shadow: 0 0 24px rgba(56, 189, 248, .30); }
316396
317397/* =========================================================================
318398 * PILLS + STATUS BADGES
319399 * ========================================================================= */
320400.pill {
321401 display: inline-flex;
322402 align-items: center;
323403 padding: 3px 9px;
324404 border-radius: var(--radius-pill);
325405 font-size: 10.5px;
326406 letter-spacing: .6px;
327407 text-transform: uppercase;
328408 font-weight: 700;
329409 border: 1px solid var(--border);
330410}
331411.pill-ok { background: rgba(52, 211, 153, .10); color: #a7f3d0; border-color: rgba(52, 211, 153, .35); }
332412.pill-warn { background: rgba(245, 158, 11, .10); color: var(--accent-warn-hi); border-color: rgba(245, 158, 11, .35); }
333413.pill-bad { background: rgba(244, 63, 94, .10); color: var(--accent-danger-hi); border-color: rgba(244, 63, 94, .35); }
334414.pill-info { background: rgba(56, 189, 248, .10); color: var(--accent-info); border-color: rgba(56, 189, 248, .35); }
335415.pill-mute { background: rgba(255,255,255,.03); color: var(--text-dim); }
336416
337417/* =========================================================================
338418 * TABLES
339419 * ========================================================================= */
340420.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
341421.tbl th {
342422 text-align: left;
343423 padding: 10px 14px;
344424 font-size: 10.5px;
345425 letter-spacing: 1.4px;
346426 text-transform: uppercase;
347427 color: var(--text-muted);
348428 font-weight: 700;
349429 border-bottom: 1px solid var(--border);
350430 background: rgba(255,255,255,.02);
351431}
352432.tbl td {
353433 padding: 12px 14px;
354434 border-bottom: 1px solid rgba(255,255,255,.03);
355435 vertical-align: middle;
356436}
357437.tbl tr:hover td { background: rgba(255,255,255,.02); }
358438.tbl .mono { font-family: var(--mono); font-size: 12.5px; }
359439.tbl .dim { color: var(--text-dim); }
360440
361441/* =========================================================================
362442 * CHIP RANGE PICKER (portfolio-canonical .tr-chip pattern)
363443 * ========================================================================= */
364444.tr-chip {
365445 display: inline-flex;
366446 align-items: center;
367447 padding: 5px 12px;
368448 border-radius: var(--radius-pill);
369449 font-size: 12px;
370450 font-weight: 600;
371451 color: var(--text-muted);
372452 text-decoration: none;
373453 background: transparent;
374454 border: 1px solid var(--border);
375455 cursor: pointer;
376456 transition: all .15s ease;
377457 font-family: inherit;
378458}
379459.tr-chip:hover { color: var(--text); border-color: var(--accent); }
380460.tr-chip.is-active {
381461 background: var(--accent);
382462 color: #0a1220;
383463 border-color: var(--accent);
384464}
385465.range-bar {
386466 display: flex;
387467 flex-wrap: wrap;
388468 align-items: center;
389469 gap: 8px;
390470 padding: 10px 14px;
391471 background: var(--bg-2);
392472 border: 1px solid var(--border);
393473 border-radius: var(--radius);
394474 margin-bottom: 16px;
395475}
396476.range-bar .rb-label {
397477 font-size: 11px;
398478 letter-spacing: 1.4px;
399479 text-transform: uppercase;
400480 color: var(--text-muted);
401481 font-weight: 700;
402482}
403483.range-bar input[type="text"],
404484.range-bar input[type="datetime-local"] {
405485 background: var(--bg-1);
406486 color: var(--text);
407487 border: 1px solid var(--border);
408488 border-radius: var(--radius-sm);
409489 padding: 5px 10px;
410490 font-size: 12.5px;
411491 font-family: inherit;
412492}
413493.range-bar input[type="text"]:focus,
414494.range-bar input[type="datetime-local"]:focus {
415495 outline: none;
416496 border-color: var(--accent);
417497}
418498
419499/* =========================================================================
420500 * CHART TOOLTIP (activity timeline etc.)
421501 * ========================================================================= */
422502.chart-tooltip {
423503 position: fixed;
424504 z-index: 9999;
425505 pointer-events: none;
426506 background: var(--bg-3);
427507 border: 1px solid var(--accent);
428508 border-radius: var(--radius-sm);
429509 padding: 8px 12px;
430510 font-size: 12px;
431511 color: var(--text);
432512 box-shadow: 0 8px 24px rgba(0,0,0,0.5);
433513 min-width: 160px;
434514 transform: translate(-50%, calc(-100% - 10px));
435515 opacity: 0;
436516 transition: opacity .1s ease;
437517}
438518.chart-tooltip.on { opacity: 1; }
439519.chart-tooltip .ct-date {
440520 font-family: var(--mono);
441521 font-size: 11px;
442522 color: var(--text-muted);
443523 letter-spacing: 0.5px;
444524 margin-bottom: 4px;
445525}
446526.chart-tooltip .ct-row {
447527 display: flex;
448528 align-items: center;
449529 gap: 6px;
450530 line-height: 1.5;
451531}
452532.chart-tooltip .ct-swatch {
453533 width: 9px; height: 9px; border-radius: 2px; display: inline-block;
454534}
455535.chart-tooltip .ct-hint {
456536 margin-top: 4px;
457537 font-size: 10.5px;
458538 color: var(--text-muted);
459539 font-style: italic;
460540}
461541
462542/* =========================================================================
463543 * BUTTONS
464544 * ========================================================================= */
465545.btn {
466546 display: inline-flex;
467547 align-items: center;
468548 gap: 6px;
469549 padding: 8px 16px;
470550 background: var(--accent);
471551 color: #030710;
472552 border: none;
473553 border-radius: var(--radius-pill);
474554 font-family: inherit;
475555 font-size: 12.5px;
476556 font-weight: 700;
477557 cursor: pointer;
478558 text-decoration: none;
479559 transition: transform .1s ease, box-shadow .1s ease, background .12s ease;
480560}
481561.btn:hover { background: var(--accent-hi); box-shadow: 0 4px 14px var(--accent-glow); transform: translateY(-1px); }
482562.btn-secondary {
483563 background: transparent;
484564 color: var(--text);
485565 border: 1px solid var(--border);
486566}
487567.btn-secondary:hover { background: var(--bg-2); border-color: var(--accent); color: var(--accent-hi); }
488568.btn-danger { background: var(--accent-danger); }
489569.btn-danger:hover { background: var(--accent-danger-hi); box-shadow: 0 4px 14px rgba(244, 63, 94, .35); }
490570
491571/* =========================================================================
492572 * FORMS
493573 * ========================================================================= */
494574input[type=text], input[type=email], input[type=password], input[type=number],
495575input[type=date], input[type=datetime-local], textarea, select {
496576 background: var(--bg-2);
497577 color: var(--text);
498578 border: 1px solid var(--border);
499579 border-radius: var(--radius-sm);
500580 padding: 8px 12px;
501581 font-family: inherit;
502582 font-size: 13px;
503583 outline: none;
504584 transition: border-color .12s ease;
505585 color-scheme: dark;
506586}
507587input:focus, textarea:focus, select:focus { border-color: var(--accent); }
508588
509589/* =========================================================================
510590 * MISC UTILITIES
511591 * ========================================================================= */
512592code {
513593 background: rgba(20, 184, 166, .10);
514594 color: var(--accent-hi);
515595 padding: 1px 6px;
516596 border-radius: 4px;
517597 font-family: var(--mono);
518598 font-size: 0.88em;
519599 border: 1px solid rgba(20, 184, 166, .20);
520600}
521601.mono { font-family: var(--mono); }
522602.dim { color: var(--text-dim); }
523603.muted { color: var(--text-muted); }
524604
525605/* Banner */
526606.banner {
527607 padding: 10px 14px;
528608 border-radius: var(--radius-sm);
529609 font-size: 13px;
530610 margin: 10px 0;
531611 border-left: 3px solid;
532612}
533613.banner-ok { background: rgba(52, 211, 153, .08); border-left-color: var(--accent-ok); color: #a7f3d0; }
534614.banner-warn { background: rgba(245, 158, 11, .08); border-left-color: var(--accent-warn); color: var(--accent-warn-hi); }
535615.banner-err { background: rgba(244, 63, 94, .08); border-left-color: var(--accent-danger); color: var(--accent-danger-hi); }
536616.banner-info { background: rgba(56, 189, 248, .08); border-left-color: var(--accent-info); color: var(--accent-info); }
537617
538618/* Scrollbar (webkit) */
539619::-webkit-scrollbar { width: 10px; height: 10px; }
540620::-webkit-scrollbar-track { background: var(--bg-0); }
541621::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; border: 2px solid var(--bg-0); }
542622::-webkit-scrollbar-thumb:hover { background: var(--border-hi); }