745 lines
19 KiB
CSS
745 lines
19 KiB
CSS
|
|
/* Shared design system for the Open Battery Information web app. */
|
||
|
|
:root {
|
||
|
|
--bg: #1e1f22;
|
||
|
|
--bg-elevated: #2b2d31;
|
||
|
|
--bg-input: #232428;
|
||
|
|
--bg-code: #141517;
|
||
|
|
--border: #3f4147;
|
||
|
|
--border-strong: #2c2e33;
|
||
|
|
--text: #e8e9eb;
|
||
|
|
--text-dim: #9aa0a6;
|
||
|
|
--accent: #4f9cf9;
|
||
|
|
--accent-hover: #6db0ff;
|
||
|
|
--danger: #e5534b;
|
||
|
|
--ok: #57ab5a;
|
||
|
|
--warn: #d29922;
|
||
|
|
--hover-bg: #33353b;
|
||
|
|
--hover-border: #55575f;
|
||
|
|
--row-alt: #242529;
|
||
|
|
--row-hover: #2a2c31;
|
||
|
|
--row-selected: #1b3a5c;
|
||
|
|
--feature-tint: #3a2c16;
|
||
|
|
--log-ok: #9ece6a;
|
||
|
|
--log-err: #f7768e;
|
||
|
|
--log-warn: #e0af68;
|
||
|
|
--log-send: #7aa2f7;
|
||
|
|
--radius: 8px;
|
||
|
|
--radius-lg: 12px;
|
||
|
|
--font-mono: "Cascadia Code", "Consolas", "Menlo", monospace;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-theme="light"] {
|
||
|
|
--bg: #f3f4f6;
|
||
|
|
--bg-elevated: #ffffff;
|
||
|
|
--bg-input: #e8eaee;
|
||
|
|
--bg-code: #fafbfc;
|
||
|
|
--border: #d0d4da;
|
||
|
|
--border-strong: #d0d4da;
|
||
|
|
--text: #1f2328;
|
||
|
|
--text-dim: #5f6b76;
|
||
|
|
--accent: #2f81f7;
|
||
|
|
--accent-hover: #1f6feb;
|
||
|
|
--danger: #d1242f;
|
||
|
|
--ok: #1a7f37;
|
||
|
|
--warn: #9a6700;
|
||
|
|
--hover-bg: #e2e5ea;
|
||
|
|
--hover-border: #b6bcc4;
|
||
|
|
--row-alt: #f0f2f5;
|
||
|
|
--row-hover: #e2e5ea;
|
||
|
|
--row-selected: #d5e6fc;
|
||
|
|
--feature-tint: #fdf2da;
|
||
|
|
--log-ok: #1a7f37;
|
||
|
|
--log-err: #d1242f;
|
||
|
|
--log-warn: #9a6700;
|
||
|
|
--log-send: #1f6feb;
|
||
|
|
}
|
||
|
|
|
||
|
|
* { box-sizing: border-box; }
|
||
|
|
|
||
|
|
html, body {
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
min-height: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
body {
|
||
|
|
background: var(--bg);
|
||
|
|
color: var(--text);
|
||
|
|
font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
|
||
|
|
font-size: 14px;
|
||
|
|
line-height: 1.5;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Navbar ---------- */
|
||
|
|
.navbar {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
padding: 0 20px;
|
||
|
|
height: 56px;
|
||
|
|
background: var(--bg-elevated);
|
||
|
|
border-bottom: 1px solid var(--border);
|
||
|
|
flex: 0 0 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.navbar .brand {
|
||
|
|
font-weight: 700;
|
||
|
|
font-size: 15px;
|
||
|
|
letter-spacing: 0.02em;
|
||
|
|
text-decoration: none;
|
||
|
|
color: var(--text);
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.navbar .brand .accent { color: var(--accent); }
|
||
|
|
|
||
|
|
.nav-links { display: flex; align-items: center; gap: 4px; }
|
||
|
|
|
||
|
|
.nav-links a {
|
||
|
|
color: var(--text-dim);
|
||
|
|
text-decoration: none;
|
||
|
|
padding: 8px 12px;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
font-weight: 600;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-links a:hover { background: var(--bg-input); color: var(--text); }
|
||
|
|
|
||
|
|
.nav-links a.active { color: var(--text); background: var(--bg-input); }
|
||
|
|
|
||
|
|
.nav-links a .nav-badge {
|
||
|
|
margin-left: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Buttons ---------- */
|
||
|
|
button {
|
||
|
|
background: var(--bg-input);
|
||
|
|
color: var(--text);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
padding: 9px 16px;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 600;
|
||
|
|
cursor: pointer;
|
||
|
|
transition: background 0.12s, border-color 0.12s, transform 0.05s;
|
||
|
|
}
|
||
|
|
|
||
|
|
button:hover:not(:disabled) { background: var(--hover-bg); border-color: var(--hover-border); }
|
||
|
|
button:active:not(:disabled) { transform: translateY(1px); }
|
||
|
|
|
||
|
|
button:disabled { opacity: 0.45; cursor: not-allowed; }
|
||
|
|
|
||
|
|
button.primary,
|
||
|
|
button.btn-primary {
|
||
|
|
background: var(--accent);
|
||
|
|
border-color: var(--accent);
|
||
|
|
color: #0b1220;
|
||
|
|
}
|
||
|
|
|
||
|
|
button.primary:hover:not(:disabled),
|
||
|
|
button.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
|
||
|
|
|
||
|
|
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
|
||
|
|
button.success { background: var(--ok); border-color: var(--ok); color: #fff; }
|
||
|
|
|
||
|
|
button.btn-secondary { background: var(--bg-elevated); }
|
||
|
|
button.btn-ghost { background: transparent; }
|
||
|
|
button.btn-lg { padding: 13px 26px; font-size: 16px; }
|
||
|
|
button.btn-block { width: 100%; }
|
||
|
|
|
||
|
|
/* ---------- Forms ---------- */
|
||
|
|
select, input[type="text"], input[type="number"], input[type="checkbox"], input[type="file"] {
|
||
|
|
background: var(--bg-input);
|
||
|
|
color: var(--text);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 6px;
|
||
|
|
padding: 8px 10px;
|
||
|
|
font-size: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
select { width: 100%; }
|
||
|
|
|
||
|
|
select:focus, input:focus {
|
||
|
|
outline: 2px solid var(--accent);
|
||
|
|
outline-offset: 1px;
|
||
|
|
}
|
||
|
|
|
||
|
|
label.checkbox {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
font-size: 13px;
|
||
|
|
color: var(--text-dim);
|
||
|
|
margin: 6px 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.field {
|
||
|
|
margin-bottom: 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.field > label {
|
||
|
|
display: block;
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 700;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.04em;
|
||
|
|
color: var(--text-dim);
|
||
|
|
margin-bottom: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.field .hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
|
||
|
|
|
||
|
|
/* ---------- Status / badges ---------- */
|
||
|
|
.badge {
|
||
|
|
display: inline-block;
|
||
|
|
font-size: 11px;
|
||
|
|
font-weight: 700;
|
||
|
|
padding: 3px 10px;
|
||
|
|
border-radius: 10px;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
color: var(--text-dim);
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge.ok { color: var(--ok); border-color: var(--ok); }
|
||
|
|
.badge.busy { color: var(--warn); border-color: var(--warn); }
|
||
|
|
.badge.err { color: var(--danger); border-color: var(--danger); }
|
||
|
|
|
||
|
|
.status-line { font-size: 13px; color: var(--text-dim); }
|
||
|
|
.status-line b { color: var(--text); font-weight: 600; }
|
||
|
|
|
||
|
|
/* ---------- Modal ---------- */
|
||
|
|
.modal-overlay {
|
||
|
|
position: fixed;
|
||
|
|
inset: 0;
|
||
|
|
background: rgba(0, 0, 0, 0.55);
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
z-index: 100;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal {
|
||
|
|
background: var(--bg-elevated);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius-lg);
|
||
|
|
max-width: 480px;
|
||
|
|
width: 92%;
|
||
|
|
padding: 20px 22px;
|
||
|
|
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal h3 { margin: 0 0 8px; font-size: 16px; }
|
||
|
|
.modal p { margin: 0 0 16px; color: var(--text-dim); line-height: 1.5; white-space: pre-wrap; }
|
||
|
|
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
|
||
|
|
|
||
|
|
/* ---------- Toasts ---------- */
|
||
|
|
.toast-container {
|
||
|
|
position: fixed;
|
||
|
|
bottom: 20px;
|
||
|
|
left: 50%;
|
||
|
|
transform: translateX(-50%);
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
z-index: 200;
|
||
|
|
pointer-events: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast {
|
||
|
|
background: var(--glass-strong);
|
||
|
|
border: 1px solid color-mix(in srgb, var(--ok) 60%, transparent);
|
||
|
|
color: var(--text);
|
||
|
|
padding: 10px 18px;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 600;
|
||
|
|
opacity: 1;
|
||
|
|
transform: translateY(0);
|
||
|
|
transition: opacity 0.25s ease, transform 0.25s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.toast.toast-error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); }
|
||
|
|
.toast.toast-out { opacity: 0; transform: translateY(6px); }
|
||
|
|
|
||
|
|
/* ---------- Card ---------- */
|
||
|
|
.card {
|
||
|
|
background: var(--bg-elevated);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius-lg);
|
||
|
|
padding: 18px 20px;
|
||
|
|
margin-bottom: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.card h2 {
|
||
|
|
margin: 0 0 12px;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 700;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: 0.04em;
|
||
|
|
color: var(--text-dim);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Progress ---------- */
|
||
|
|
.progress-track {
|
||
|
|
height: 10px;
|
||
|
|
background: var(--bg-input);
|
||
|
|
border-radius: 5px;
|
||
|
|
overflow: hidden;
|
||
|
|
margin: 12px 0 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.progress-track .bar {
|
||
|
|
height: 100%;
|
||
|
|
width: 0%;
|
||
|
|
background: var(--accent);
|
||
|
|
transition: width 0.15s;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Log output ---------- */
|
||
|
|
.log-output {
|
||
|
|
background: var(--bg-code);
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 6px;
|
||
|
|
padding: 10px;
|
||
|
|
font-family: var(--font-mono);
|
||
|
|
font-size: 12px;
|
||
|
|
white-space: pre-wrap;
|
||
|
|
word-break: break-word;
|
||
|
|
max-height: 260px;
|
||
|
|
overflow-y: auto;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.log-output .l-info { color: var(--text-dim); }
|
||
|
|
.log-output .l-ok { color: var(--log-ok); }
|
||
|
|
.log-output .l-err { color: var(--log-err); }
|
||
|
|
.log-output .l-warn { color: var(--log-warn); }
|
||
|
|
.log-output .l-send { color: var(--log-send); }
|
||
|
|
|
||
|
|
.theme-toggle {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
background: transparent;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
color: var(--text-dim);
|
||
|
|
padding: 6px 10px;
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 600;
|
||
|
|
border-radius: var(--radius);
|
||
|
|
cursor: pointer;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.theme-toggle:hover:not(:disabled) { color: var(--text); border-color: var(--hover-border); }
|
||
|
|
|
||
|
|
.theme-toggle svg {
|
||
|
|
display: block;
|
||
|
|
width: 16px;
|
||
|
|
height: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Navbar icon link (GitHub) */
|
||
|
|
.nav-links a.nav-icon {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
width: 38px;
|
||
|
|
height: 38px;
|
||
|
|
padding: 0;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: 50%;
|
||
|
|
background: var(--glass);
|
||
|
|
backdrop-filter: blur(8px);
|
||
|
|
-webkit-backdrop-filter: blur(8px);
|
||
|
|
color: var(--text-dim);
|
||
|
|
text-decoration: none;
|
||
|
|
transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-links a.nav-icon:hover {
|
||
|
|
background: var(--glass);
|
||
|
|
border-color: var(--accent-2);
|
||
|
|
color: var(--accent-2);
|
||
|
|
box-shadow: 0 0 14px var(--glow-1);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-links a.nav-icon svg {
|
||
|
|
display: block;
|
||
|
|
width: 24px;
|
||
|
|
height: 24px;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Burger toggle (hidden on desktop, shown on small screens) */
|
||
|
|
.nav-toggle {
|
||
|
|
display: none;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
width: 38px;
|
||
|
|
height: 38px;
|
||
|
|
padding: 0;
|
||
|
|
margin-left: auto;
|
||
|
|
border: 1px solid var(--border);
|
||
|
|
border-radius: var(--radius);
|
||
|
|
background: var(--glass);
|
||
|
|
color: var(--text-dim);
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-toggle:hover { border-color: var(--accent-2); color: var(--accent-2); }
|
||
|
|
|
||
|
|
.nav-toggle svg {
|
||
|
|
display: block;
|
||
|
|
width: 20px;
|
||
|
|
height: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 860px) {
|
||
|
|
.nav-toggle { display: inline-flex; }
|
||
|
|
|
||
|
|
.nav-links {
|
||
|
|
position: absolute;
|
||
|
|
top: 56px;
|
||
|
|
left: 0;
|
||
|
|
right: 0;
|
||
|
|
flex-direction: column;
|
||
|
|
align-items: stretch;
|
||
|
|
display: none;
|
||
|
|
background: var(--glass-strong);
|
||
|
|
backdrop-filter: blur(14px);
|
||
|
|
-webkit-backdrop-filter: blur(14px);
|
||
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
|
|
box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.55);
|
||
|
|
padding: 8px 12px 14px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.navbar.nav-open .nav-links { display: flex; }
|
||
|
|
|
||
|
|
.nav-links a { padding: 12px 12px; }
|
||
|
|
|
||
|
|
.nav-links .theme-toggle,
|
||
|
|
.nav-links a.nav-icon { align-self: flex-end; margin-top: 6px; }
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Sun icon (shown in dark mode: clicking switches to light) / moon for light. */
|
||
|
|
.theme-toggle .icon-moon { display: none; }
|
||
|
|
.theme-toggle .icon-sun { display: block; }
|
||
|
|
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
|
||
|
|
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
|
||
|
|
|
||
|
|
/* ---------- Utilities ---------- */
|
||
|
|
.muted { color: var(--text-dim); }
|
||
|
|
.mono { font-family: var(--font-mono); }
|
||
|
|
.text-center { text-align: center; }
|
||
|
|
.mt-0 { margin-top: 0; }
|
||
|
|
.mt-1 { margin-top: 8px; }
|
||
|
|
.mt-2 { margin-top: 16px; }
|
||
|
|
.mb-0 { margin-bottom: 0; }
|
||
|
|
.mb-1 { margin-bottom: 8px; }
|
||
|
|
.mb-2 { margin-bottom: 16px; }
|
||
|
|
.flex { display: flex; }
|
||
|
|
.flex-col { flex-direction: column; }
|
||
|
|
.gap-1 { gap: 8px; }
|
||
|
|
.gap-2 { gap: 16px; }
|
||
|
|
.items-center { align-items: center; }
|
||
|
|
.justify-between { justify-content: space-between; }
|
||
|
|
.flex-wrap { flex-wrap: wrap; }
|
||
|
|
|
||
|
|
.container {
|
||
|
|
width: 100%;
|
||
|
|
max-width: 1000px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 24px;
|
||
|
|
flex: 1 1 auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ============================================================
|
||
|
|
Aurora / glass UI layer (ui-flashy branch, exploratory).
|
||
|
|
Everything above the "Flashy UI" marker below is the original
|
||
|
|
design; this section layers a richer look on top of it.
|
||
|
|
============================================================ */
|
||
|
|
|
||
|
|
:root {
|
||
|
|
--accent-1: #38bdf8;
|
||
|
|
--accent-2: #818cf8;
|
||
|
|
--accent-3: #c084fc;
|
||
|
|
--grad: linear-gradient(120deg, var(--accent-1), var(--accent-2), var(--accent-3));
|
||
|
|
--grad-soft: linear-gradient(120deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.22), rgba(192, 132, 252, 0.22));
|
||
|
|
--glass: color-mix(in srgb, var(--bg-elevated) 74%, transparent);
|
||
|
|
--glass-strong: color-mix(in srgb, var(--bg-elevated) 88%, transparent);
|
||
|
|
--glow-1: rgba(56, 189, 248, 0.35);
|
||
|
|
--glow-2: rgba(192, 132, 252, 0.35);
|
||
|
|
--radius-xl: 16px;
|
||
|
|
--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-theme="light"] {
|
||
|
|
--accent-1: #0891b2;
|
||
|
|
--accent-2: #4f46e5;
|
||
|
|
--accent-3: #a21caf;
|
||
|
|
--grad-soft: linear-gradient(120deg, rgba(8, 145, 178, 0.16), rgba(79, 70, 229, 0.16), rgba(162, 28, 175, 0.14));
|
||
|
|
--glass: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
|
||
|
|
--glass-strong: color-mix(in srgb, var(--bg-elevated) 92%, transparent);
|
||
|
|
--glow-1: rgba(8, 145, 178, 0.22);
|
||
|
|
--glow-2: rgba(162, 28, 175, 0.18);
|
||
|
|
}
|
||
|
|
|
||
|
|
html { scrollbar-color: var(--hover-border) transparent; }
|
||
|
|
|
||
|
|
::-webkit-scrollbar { width: 10px; height: 10px; }
|
||
|
|
::-webkit-scrollbar-track { background: transparent; }
|
||
|
|
::-webkit-scrollbar-thumb {
|
||
|
|
background: linear-gradient(180deg, var(--border), var(--hover-border));
|
||
|
|
border-radius: 999px;
|
||
|
|
border: 2px solid transparent;
|
||
|
|
background-clip: padding-box;
|
||
|
|
}
|
||
|
|
::-webkit-scrollbar-thumb:hover { background: var(--hover-border); }
|
||
|
|
|
||
|
|
::selection { background: color-mix(in srgb, var(--accent-2) 35%, transparent); }
|
||
|
|
|
||
|
|
body {
|
||
|
|
background:
|
||
|
|
radial-gradient(90rem 90rem at 110% -10%, var(--glow-2), transparent 60%),
|
||
|
|
radial-gradient(80rem 80rem at -10% 15%, var(--glow-1), transparent 55%),
|
||
|
|
var(--bg);
|
||
|
|
}
|
||
|
|
|
||
|
|
body::before,
|
||
|
|
body::after {
|
||
|
|
content: "";
|
||
|
|
position: fixed;
|
||
|
|
z-index: -1;
|
||
|
|
width: 46vmax;
|
||
|
|
height: 46vmax;
|
||
|
|
border-radius: 50%;
|
||
|
|
filter: blur(80px);
|
||
|
|
opacity: 0.32;
|
||
|
|
pointer-events: none;
|
||
|
|
will-change: transform;
|
||
|
|
}
|
||
|
|
|
||
|
|
body::before {
|
||
|
|
top: -14vmax;
|
||
|
|
left: -12vmax;
|
||
|
|
background: radial-gradient(circle, var(--accent-1), transparent 62%);
|
||
|
|
animation: aurora-a 28s var(--ease-out) infinite alternate;
|
||
|
|
}
|
||
|
|
|
||
|
|
body::after {
|
||
|
|
bottom: -16vmax;
|
||
|
|
right: -14vmax;
|
||
|
|
background: radial-gradient(circle, var(--accent-3), transparent 62%);
|
||
|
|
animation: aurora-b 36s var(--ease-out) infinite alternate;
|
||
|
|
}
|
||
|
|
|
||
|
|
[data-theme="light"] body::before,
|
||
|
|
[data-theme="light"] body::after { opacity: 0.2; }
|
||
|
|
|
||
|
|
@keyframes aurora-a {
|
||
|
|
0% { transform: translate(0, 0) scale(1); }
|
||
|
|
50% { transform: translate(7vmax, 5vmax) scale(1.18); }
|
||
|
|
100% { transform: translate(-3vmax, 9vmax) scale(0.92); }
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes aurora-b {
|
||
|
|
0% { transform: translate(0, 0) scale(1); }
|
||
|
|
50% { transform: translate(-8vmax, -6vmax) scale(1.22); }
|
||
|
|
100% { transform: translate(4vmax, -10vmax) scale(0.9); }
|
||
|
|
}
|
||
|
|
|
||
|
|
@keyframes grad-pan { to { background-position: 220% 0; } }
|
||
|
|
|
||
|
|
/* ---------- Navbar ---------- */
|
||
|
|
.navbar {
|
||
|
|
position: sticky;
|
||
|
|
top: 0;
|
||
|
|
z-index: 50;
|
||
|
|
background: var(--glass-strong);
|
||
|
|
backdrop-filter: blur(14px) saturate(1.5);
|
||
|
|
-webkit-backdrop-filter: blur(14px) saturate(1.5);
|
||
|
|
border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
|
||
|
|
box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.5);
|
||
|
|
}
|
||
|
|
|
||
|
|
.navbar .brand { font-size: 16px; }
|
||
|
|
|
||
|
|
.navbar .brand .accent {
|
||
|
|
background: var(--grad);
|
||
|
|
background-size: 220% 100%;
|
||
|
|
-webkit-background-clip: text;
|
||
|
|
background-clip: text;
|
||
|
|
color: transparent;
|
||
|
|
animation: grad-pan 9s linear infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-links a { position: relative; transition: color 0.2s ease; }
|
||
|
|
.nav-links a:hover { background: transparent; }
|
||
|
|
.nav-links a.active { background: transparent; }
|
||
|
|
|
||
|
|
.nav-links a::after {
|
||
|
|
content: "";
|
||
|
|
position: absolute;
|
||
|
|
left: 12px;
|
||
|
|
right: 12px;
|
||
|
|
bottom: 5px;
|
||
|
|
height: 2px;
|
||
|
|
border-radius: 2px;
|
||
|
|
background: var(--grad);
|
||
|
|
transform: scaleX(0);
|
||
|
|
transform-origin: left;
|
||
|
|
transition: transform 0.3s var(--ease-out);
|
||
|
|
}
|
||
|
|
|
||
|
|
.nav-links a:hover::after,
|
||
|
|
.nav-links a.active::after { transform: scaleX(1); }
|
||
|
|
|
||
|
|
/* ---------- Buttons ---------- */
|
||
|
|
button {
|
||
|
|
transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.25s ease,
|
||
|
|
transform 0.12s ease, color 0.18s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
button.primary,
|
||
|
|
button.btn-primary {
|
||
|
|
background: var(--grad);
|
||
|
|
background-size: 200% 100%;
|
||
|
|
border: none;
|
||
|
|
color: #fff;
|
||
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 22px -8px var(--glow-1);
|
||
|
|
transition: background-position 0.45s ease, box-shadow 0.3s ease, transform 0.15s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
button.primary:hover:not(:disabled),
|
||
|
|
button.btn-primary:hover:not(:disabled) {
|
||
|
|
background-position: 100% 0;
|
||
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 12px 30px -10px var(--glow-2);
|
||
|
|
transform: translateY(-1px);
|
||
|
|
}
|
||
|
|
|
||
|
|
button.danger {
|
||
|
|
box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--danger) 55%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
button.success {
|
||
|
|
box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--ok) 55%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.theme-toggle {
|
||
|
|
width: 34px;
|
||
|
|
height: 34px;
|
||
|
|
padding: 0;
|
||
|
|
border-radius: 50%;
|
||
|
|
background: var(--glass);
|
||
|
|
backdrop-filter: blur(8px);
|
||
|
|
-webkit-backdrop-filter: blur(8px);
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.theme-toggle:hover:not(:disabled) {
|
||
|
|
border-color: var(--accent-2);
|
||
|
|
color: var(--accent-2);
|
||
|
|
box-shadow: 0 0 14px var(--glow-1);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Cards ---------- */
|
||
|
|
.card {
|
||
|
|
background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
|
||
|
|
var(--grad-soft) border-box;
|
||
|
|
border: 1px solid transparent;
|
||
|
|
backdrop-filter: blur(12px);
|
||
|
|
-webkit-backdrop-filter: blur(12px);
|
||
|
|
box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.45);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Badges ---------- */
|
||
|
|
.badge {
|
||
|
|
border-radius: 999px;
|
||
|
|
background: var(--glass);
|
||
|
|
backdrop-filter: blur(8px);
|
||
|
|
-webkit-backdrop-filter: blur(8px);
|
||
|
|
border-color: transparent;
|
||
|
|
box-shadow: inset 0 0 0 1px var(--border);
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge.ok {
|
||
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent);
|
||
|
|
background: color-mix(in srgb, var(--ok) 12%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge.busy {
|
||
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 55%, transparent);
|
||
|
|
background: color-mix(in srgb, var(--warn) 12%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
.badge.err {
|
||
|
|
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--danger) 55%, transparent);
|
||
|
|
background: color-mix(in srgb, var(--danger) 12%, transparent);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Modal ---------- */
|
||
|
|
.modal {
|
||
|
|
background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box,
|
||
|
|
var(--grad-soft) border-box;
|
||
|
|
border: 1px solid transparent;
|
||
|
|
backdrop-filter: blur(20px);
|
||
|
|
-webkit-backdrop-filter: blur(20px);
|
||
|
|
box-shadow: 0 24px 70px -28px var(--glow-1);
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Progress ---------- */
|
||
|
|
.progress-track { background: color-mix(in srgb, var(--bg-input) 80%, transparent); }
|
||
|
|
|
||
|
|
.progress-track .bar {
|
||
|
|
background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
|
||
|
|
background-size: 220% 100%;
|
||
|
|
box-shadow: 0 0 14px var(--glow-1);
|
||
|
|
animation: grad-pan 2.4s linear infinite;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* ---------- Log / inputs ---------- */
|
||
|
|
.log-output {
|
||
|
|
background: color-mix(in srgb, var(--bg-code) 88%, transparent);
|
||
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
|
||
|
|
}
|
||
|
|
|
||
|
|
select,
|
||
|
|
input[type="text"],
|
||
|
|
input[type="number"],
|
||
|
|
input[type="checkbox"],
|
||
|
|
input[type="file"] {
|
||
|
|
background: var(--glass);
|
||
|
|
backdrop-filter: blur(8px);
|
||
|
|
-webkit-backdrop-filter: blur(8px);
|
||
|
|
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
select:focus,
|
||
|
|
input:focus { box-shadow: 0 0 0 3px var(--glow-1); }
|
||
|
|
|
||
|
|
/* ---------- Reveal-on-scroll (driven by js/reveal.js) ---------- */
|
||
|
|
html.js-reveal .reveal {
|
||
|
|
opacity: 0;
|
||
|
|
transform: translateY(22px);
|
||
|
|
will-change: opacity, transform;
|
||
|
|
}
|
||
|
|
|
||
|
|
html.js-reveal .reveal.revealed {
|
||
|
|
opacity: 1;
|
||
|
|
transform: none;
|
||
|
|
transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (prefers-reduced-motion: reduce) {
|
||
|
|
html.js-reveal .reveal { opacity: 1; transform: none; }
|
||
|
|
.navbar .brand .accent,
|
||
|
|
.progress-track .bar,
|
||
|
|
body::before,
|
||
|
|
body::after { animation: none; }
|
||
|
|
}
|