Sync from main server - 2026-04-18 18:47:38
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
/* ═══════════════════════════════════════════════════════════════
|
||||
Navitrends Ops Platform
|
||||
Ops Platform — Server 173.249.20.244
|
||||
Fonts: Syne (display) + Geist Mono (data/code)
|
||||
Theme: Dark (default) / Light — toggled via [data-theme="light"]
|
||||
Design ported from 83.171.248.100 platform
|
||||
═══════════════════════════════════════════════════════════════ */
|
||||
|
||||
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');
|
||||
@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@400;500;600&display=swap');
|
||||
|
||||
/* ── DARK THEME (default) ──────────────────────────────────── */
|
||||
:root {
|
||||
--bg: #0a0b0e;
|
||||
@@ -31,6 +34,14 @@
|
||||
--font: 'Syne', sans-serif;
|
||||
--mono: 'Geist Mono', monospace;
|
||||
--trans: 0.18s ease;
|
||||
|
||||
/* keep legacy var names used in 173 templates */
|
||||
--bg2: var(--surface);
|
||||
--bg3: var(--surface2);
|
||||
--bg4: #1e2535;
|
||||
--purple-d: #6366f1;
|
||||
--sidebar-w: 220px;
|
||||
--sans: 'Syne', sans-serif;
|
||||
}
|
||||
|
||||
/* ── LIGHT THEME ───────────────────────────────────────────── */
|
||||
@@ -54,6 +65,10 @@
|
||||
--cyan: #0891b2;
|
||||
|
||||
--shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
|
||||
|
||||
--bg2: var(--surface);
|
||||
--bg3: var(--surface2);
|
||||
--bg4: #edf2fb;
|
||||
}
|
||||
|
||||
/* ── RESET ─────────────────────────────────────────────────── */
|
||||
@@ -75,26 +90,38 @@ html, body {
|
||||
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
|
||||
|
||||
/* ── LAYOUT ────────────────────────────────────────────────── */
|
||||
.layout { display: flex; height: 100vh; overflow: hidden; }
|
||||
.layout { display: flex; min-height: 100vh; }
|
||||
|
||||
/* ── SIDEBAR ───────────────────────────────────────────────── */
|
||||
.sidebar {
|
||||
width: 220px; min-width: 220px;
|
||||
width: var(--sidebar-w);
|
||||
min-width: var(--sidebar-w);
|
||||
background: var(--surface);
|
||||
border-right: 1px solid var(--border);
|
||||
display: flex; flex-direction: column;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
position: fixed;
|
||||
top: 0; left: 0; bottom: 0;
|
||||
z-index: 100;
|
||||
padding: 20px 12px;
|
||||
transition: background 0.3s, border-color 0.3s;
|
||||
}
|
||||
|
||||
.sidebar-brand {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
.sidebar-brand,
|
||||
a.sidebar-brand-link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 0 8px 24px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
margin-bottom: 20px;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.brand-mark {
|
||||
width: 36px; height: 36px; background: var(--accent);
|
||||
width: 36px; height: 36px;
|
||||
background: var(--accent);
|
||||
border-radius: 8px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
font-family: var(--mono); font-weight: 500; font-size: 12px; color: #fff;
|
||||
@@ -103,11 +130,13 @@ html, body {
|
||||
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; }
|
||||
.brand-sub { font-size: 10px; color: var(--text3); font-family: var(--mono); letter-spacing: 0.08em; }
|
||||
|
||||
.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
|
||||
/* nav */
|
||||
.nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
|
||||
.nav-group-label,
|
||||
.nav-section-label {
|
||||
font-size: 9px; letter-spacing: 0.12em; color: var(--text3);
|
||||
font-family: var(--mono); padding: 0 8px;
|
||||
margin-bottom: 6px; margin-top: 4px;
|
||||
margin-bottom: 6px; margin-top: 8px;
|
||||
}
|
||||
.nav-item {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
@@ -115,22 +144,27 @@ html, body {
|
||||
color: var(--text2); text-decoration: none;
|
||||
font-size: 13px; font-weight: 500; cursor: pointer;
|
||||
transition: background var(--trans), color var(--trans);
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
.nav-item i { width: 16px; text-align: center; font-size: 13px; }
|
||||
.nav-item span { flex: 1; }
|
||||
.nav-item:hover { background: var(--surface2); color: var(--text); }
|
||||
.nav-item.active { background: var(--accent); color: #fff; }
|
||||
.nav-item i { width: 16px; text-align: center; font-size: 13px; }
|
||||
.nav-badge {
|
||||
margin-left: auto; font-family: var(--mono); font-size: 10px;
|
||||
background: var(--border2); color: var(--text2);
|
||||
padding: 2px 6px; border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); color: #fff; }
|
||||
.nav-item.active .nav-badge { background: rgba(255,255,255,0.25); color: #fff; border-color: transparent; }
|
||||
|
||||
/* sidebar footer */
|
||||
.sidebar-footer {
|
||||
display: flex; align-items: center; gap: 8px;
|
||||
padding-top: 16px; border-top: 1px solid var(--border); margin-top: auto;
|
||||
}
|
||||
.server-pill {
|
||||
.server-pill,
|
||||
.status-pill {
|
||||
flex: 1; display: flex; align-items: center; gap: 7px;
|
||||
background: var(--surface2); border-radius: 20px;
|
||||
padding: 6px 10px; font-family: var(--mono);
|
||||
@@ -147,15 +181,18 @@ html, body {
|
||||
50% { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
|
||||
}
|
||||
|
||||
.logout-btn {
|
||||
.logout-btn,
|
||||
.icon-btn-sm {
|
||||
width: 32px; height: 32px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border-radius: 8px; color: var(--text3); text-decoration: none;
|
||||
background: transparent; border: none; cursor: pointer; font-size: 13px;
|
||||
transition: background var(--trans), color var(--trans);
|
||||
}
|
||||
.logout-btn:hover { background: var(--red); color: #fff; }
|
||||
.logout-btn:hover { background: var(--red); color: #fff; }
|
||||
.icon-btn-sm:hover { background: var(--surface2); color: var(--text); }
|
||||
|
||||
/* ── THEME TOGGLE BUTTON ───────────────────────────────────── */
|
||||
/* theme toggle */
|
||||
.theme-toggle {
|
||||
width: 32px; height: 32px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
@@ -167,17 +204,25 @@ html, body {
|
||||
.theme-toggle:hover { background: var(--border2); color: var(--text); }
|
||||
|
||||
/* ── MAIN ──────────────────────────────────────────────────── */
|
||||
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
|
||||
.main {
|
||||
margin-left: var(--sidebar-w);
|
||||
flex: 1;
|
||||
display: flex; flex-direction: column;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* ── TOPBAR ────────────────────────────────────────────────── */
|
||||
.topbar {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 18px 28px; border-bottom: 1px solid var(--border);
|
||||
background: var(--surface); flex-shrink: 0;
|
||||
position: sticky; top: 0; z-index: 50;
|
||||
transition: background 0.3s, border-color 0.3s;
|
||||
}
|
||||
.topbar-left { display: flex; align-items: baseline; gap: 12px; }
|
||||
.page-title { font-size: 20px; font-weight: 700; }
|
||||
.page-subtitle { font-family: var(--mono); font-size: 11px; color: var(--text3); }
|
||||
.page-subtitle,
|
||||
.page-sub { font-family: var(--mono); font-size: 11px; color: var(--text3); }
|
||||
.topbar-right { display: flex; align-items: center; gap: 10px; }
|
||||
|
||||
.icon-btn {
|
||||
@@ -188,7 +233,8 @@ html, body {
|
||||
transition: background var(--trans), color var(--trans); font-size: 13px;
|
||||
}
|
||||
.icon-btn:hover { background: var(--border2); color: var(--text); }
|
||||
.icon-btn.spinning i { animation: spin 0.8s linear infinite; }
|
||||
.icon-btn.spinning i,
|
||||
.icon-btn .spinning { animation: spin 0.8s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
.uptime-chip {
|
||||
@@ -197,18 +243,8 @@ html, body {
|
||||
padding: 5px 12px; border-radius: 20px;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1; overflow-y: auto; padding: 24px 28px;
|
||||
display: flex; flex-direction: column; gap: 20px;
|
||||
}
|
||||
|
||||
/* ── PAGES ─────────────────────────────────────────────────── */
|
||||
.page { display: none; flex-direction: column; gap: 20px; }
|
||||
.page.active { display: flex; animation: fadeIn 0.2s ease; }
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(5px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
/* ── CONTENT ───────────────────────────────────────────────── */
|
||||
.content { flex: 1; padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
|
||||
|
||||
/* ── CARDS ─────────────────────────────────────────────────── */
|
||||
.card {
|
||||
@@ -216,6 +252,7 @@ html, body {
|
||||
border-radius: var(--radius-lg); padding: 20px;
|
||||
box-shadow: var(--shadow);
|
||||
transition: background 0.3s, border-color 0.3s;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.card-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
@@ -226,63 +263,114 @@ html, body {
|
||||
display: flex; align-items: center; gap: 8px; color: var(--text);
|
||||
}
|
||||
.card-title i { color: var(--accent2); font-size: 12px; }
|
||||
.card-meta { font-family: var(--mono); font-size: 11px; color: var(--text3); }
|
||||
.card-meta,
|
||||
.badge-chip {
|
||||
font-family: var(--mono); font-size: 11px; color: var(--text3);
|
||||
background: var(--surface2); border: 1px solid var(--border);
|
||||
padding: 3px 8px; border-radius: 20px;
|
||||
}
|
||||
|
||||
/* ── SYSTEM METRICS ────────────────────────────────────────── */
|
||||
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
|
||||
/* ── METRICS ROW ───────────────────────────────────────────── */
|
||||
.metrics-row {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 14px;
|
||||
}
|
||||
.metric-card {
|
||||
background: var(--surface2); border: 1px solid var(--border);
|
||||
border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden;
|
||||
border-radius: var(--radius); padding: 16px 18px;
|
||||
position: relative; overflow: hidden;
|
||||
transition: background 0.3s, border-color 0.3s;
|
||||
}
|
||||
.metric-card::before {
|
||||
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent);
|
||||
content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
|
||||
background: var(--accent);
|
||||
}
|
||||
.metric-card.mem::before { background: var(--purple); }
|
||||
.metric-card.disk::before { background: var(--cyan); }
|
||||
.metric-card.load::before { background: var(--yellow); }
|
||||
.metric-card:nth-child(2)::before { background: var(--purple); }
|
||||
.metric-card:nth-child(3)::before { background: var(--cyan); }
|
||||
.metric-card:nth-child(4)::before { background: var(--yellow); }
|
||||
|
||||
.metric-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text3); margin-bottom: 8px; }
|
||||
.metric-value { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--text); line-height: 1; margin-bottom: 10px; }
|
||||
.metric-value span { font-size: 12px; color: var(--text3); }
|
||||
|
||||
.gauge-bar { height: 3px; background: var(--border2); border-radius: 4px; overflow: hidden; }
|
||||
.gauge-fill {
|
||||
height: 100%; border-radius: 4px; background: var(--accent);
|
||||
transition: width 0.6s ease;
|
||||
.metric-label {
|
||||
font-family: var(--mono); font-size: 9px; font-weight: 700;
|
||||
letter-spacing: 0.12em; color: var(--text3); margin-bottom: 8px;
|
||||
}
|
||||
.metric-card.mem .gauge-fill { background: var(--purple); }
|
||||
.metric-card.disk .gauge-fill { background: var(--cyan); }
|
||||
.metric-card.load .gauge-fill { background: var(--yellow); }
|
||||
.metric-value {
|
||||
font-family: var(--mono); font-size: 26px; font-weight: 700;
|
||||
letter-spacing: -0.02em; color: var(--text);
|
||||
line-height: 1; margin-bottom: 10px;
|
||||
}
|
||||
.metric-value.small { font-size: 16px; }
|
||||
.metric-unit { font-size: 13px; color: var(--text3); font-weight: 400; }
|
||||
|
||||
/* unified gauge names (83 uses gauge-bar/gauge-fill; 173 uses gauge-track/gauge-fill) */
|
||||
.gauge-bar,
|
||||
.gauge-track { height: 3px; background: var(--border2); border-radius: 4px; overflow: hidden; }
|
||||
.gauge-fill {
|
||||
height: 100%; border-radius: 4px;
|
||||
background: var(--accent);
|
||||
transition: width 0.6s ease; max-width: 100%;
|
||||
}
|
||||
.metric-card:nth-child(2) .gauge-fill { background: var(--purple); }
|
||||
.metric-card:nth-child(3) .gauge-fill { background: var(--cyan); }
|
||||
.metric-card:nth-child(4) .gauge-fill { background: var(--yellow); }
|
||||
|
||||
/* ── STAT ROW ──────────────────────────────────────────────── */
|
||||
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
|
||||
.stat-card {
|
||||
/* 173 uses stat-box; 83 uses stat-card — support both */
|
||||
.stat-row { display: flex; gap: 0; }
|
||||
|
||||
.stat-box {
|
||||
flex: 1; text-align: center;
|
||||
padding: 16px 8px;
|
||||
border-right: 1px solid var(--border);
|
||||
}
|
||||
.stat-box:last-child { border-right: none; }
|
||||
.stat-num {
|
||||
font-size: 28px; font-weight: 700;
|
||||
font-family: var(--mono); letter-spacing: -0.02em; margin-bottom: 4px;
|
||||
color: var(--text);
|
||||
}
|
||||
.stat-num.green { color: var(--green); }
|
||||
.stat-num.cyan { color: var(--cyan); }
|
||||
.stat-num.dim { color: var(--text3); font-size: 14px; }
|
||||
.stat-lbl { font-size: 10px; color: var(--text3); letter-spacing: 0.06em; }
|
||||
|
||||
.stat-row .stat-card {
|
||||
flex: 1; text-align: center;
|
||||
background: var(--surface2); border: 1px solid var(--border);
|
||||
border-radius: var(--radius); padding: 14px 16px; text-align: center;
|
||||
transition: background 0.3s;
|
||||
border-radius: var(--radius); padding: 14px 16px;
|
||||
}
|
||||
.stat-number { font-family: var(--mono); font-size: 28px; font-weight: 500; color: var(--accent2); line-height: 1; }
|
||||
.stat-label { font-size: 11px; color: var(--text3); margin-top: 5px; letter-spacing: 0.04em; }
|
||||
|
||||
/* ── CONTAINERS TABLE ──────────────────────────────────────── */
|
||||
.ct-table { width: 100%; border-collapse: collapse; }
|
||||
/* ── TABLES ────────────────────────────────────────────────── */
|
||||
.table-wrap,
|
||||
.ct-table-wrap { overflow-x: auto; }
|
||||
|
||||
.data-table,
|
||||
.ct-table { width: 100%; border-collapse: collapse; font-size: 13px; }
|
||||
|
||||
.data-table th,
|
||||
.ct-table th {
|
||||
font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
|
||||
color: var(--text3); padding: 6px 10px; text-align: left;
|
||||
text-align: left;
|
||||
font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
|
||||
color: var(--text3); padding: 6px 12px 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.data-table td,
|
||||
.ct-table td {
|
||||
padding: 10px; border-bottom: 1px solid var(--border);
|
||||
font-size: 13px; vertical-align: middle;
|
||||
padding: 10px 12px; border-bottom: 1px solid var(--border);
|
||||
vertical-align: middle;
|
||||
}
|
||||
.data-table tr:last-child td,
|
||||
.ct-table tr:last-child td { border-bottom: none; }
|
||||
.data-table tr:hover td,
|
||||
.ct-table tr:hover td { background: var(--surface2); }
|
||||
|
||||
.ct-name { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 500; }
|
||||
.ct-image { font-family: var(--mono); font-size: 11px; color: var(--text3); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ct-ports { font-family: var(--mono); font-size: 11px; color: var(--cyan); }
|
||||
.ct-owner { font-family: var(--mono); font-size: 11px; color: var(--purple); }
|
||||
.ct-name { font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--text); }
|
||||
.ct-image { font-family: var(--mono); font-size: 11px; color: var(--text3); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.ct-ports { font-family: var(--mono); font-size: 11px; color: var(--cyan); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.mono { font-family: var(--mono); }
|
||||
.dim { color: var(--text3); font-size: 12px; }
|
||||
|
||||
/* ── BADGES ────────────────────────────────────────────────── */
|
||||
.badge {
|
||||
@@ -290,80 +378,94 @@ html, body {
|
||||
padding: 3px 9px; border-radius: 20px;
|
||||
font-family: var(--mono); font-size: 11px; font-weight: 500;
|
||||
}
|
||||
.badge-run { background: rgba(34,197,94,0.12); color: var(--green); }
|
||||
.badge-stop { background: rgba(239,68,68,0.12); color: var(--red); }
|
||||
.badge-run::before { content:''; width:5px; height:5px; background:var(--green); border-radius:50%; }
|
||||
.badge-stop::before { content:''; width:5px; height:5px; background:var(--red); border-radius:50%; }
|
||||
[data-theme="light"] .badge-run { background: rgba(22,163,74,0.1); }
|
||||
[data-theme="light"] .badge-stop { background: rgba(220,38,38,0.1); }
|
||||
/* support both naming conventions */
|
||||
.badge-run, .badge.run { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
|
||||
.badge-stop, .badge.stop { background: rgba(239,68,68,0.12); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
|
||||
.badge-run::before, .badge.run::before { content:''; width:5px; height:5px; background:var(--green); border-radius:50%; }
|
||||
.badge-stop::before, .badge.stop::before { content:''; width:5px; height:5px; background:var(--red); border-radius:50%; }
|
||||
[data-theme="light"] .badge-run, [data-theme="light"] .badge.run { background: rgba(22,163,74,0.1); }
|
||||
[data-theme="light"] .badge-stop, [data-theme="light"] .badge.stop { background: rgba(220,38,38,0.1); }
|
||||
|
||||
/* ── INLINE STAT BARS ──────────────────────────────────────── */
|
||||
.stat-bar-wrap { display: flex; align-items: center; gap: 6px; min-width: 90px; }
|
||||
.stat-bar-bg { flex: 1; height: 4px; background: var(--border2); border-radius: 4px; overflow: hidden; }
|
||||
.stat-bar-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.5s ease; }
|
||||
/* 173 uses bar-wrap/bar-bg/bar-fill; 83 uses stat-bar-wrap etc — support both */
|
||||
.stat-bar-wrap,
|
||||
.bar-wrap { display: flex; align-items: center; gap: 6px; min-width: 90px; }
|
||||
.stat-bar-bg,
|
||||
.bar-bg { flex: 1; height: 4px; background: var(--border2); border-radius: 4px; overflow: hidden; }
|
||||
.stat-bar-fill,
|
||||
.bar-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.5s ease; }
|
||||
.bar-fill.warn,
|
||||
.stat-bar-fill.warn { background: var(--yellow); }
|
||||
.bar-fill.crit,
|
||||
.stat-bar-fill.crit { background: var(--red); }
|
||||
.stat-pct { font-family: var(--mono); font-size: 10px; color: var(--text3); min-width: 36px; }
|
||||
.stat-pct,
|
||||
.stat-val { font-family: var(--mono); font-size: 11px; color: var(--text3); min-width: 36px; }
|
||||
.stat-val.cyan { color: var(--cyan); }
|
||||
|
||||
/* ── USERS GRID ────────────────────────────────────────────── */
|
||||
.users-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
|
||||
.user-card {
|
||||
background: var(--surface2); border: 1px solid var(--border);
|
||||
border-radius: var(--radius); padding: 16px; cursor: pointer;
|
||||
transition: border-color var(--trans), background var(--trans), box-shadow var(--trans);
|
||||
}
|
||||
.user-card:hover { border-color: var(--accent2); box-shadow: 0 0 0 1px var(--accent2); }
|
||||
.user-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
|
||||
.user-avatar {
|
||||
width: 38px; height: 38px; border-radius: 50%; display: flex;
|
||||
align-items: center; justify-content: center;
|
||||
font-weight: 700; font-size: 14px; flex-shrink: 0; color: #fff;
|
||||
}
|
||||
.user-name { font-weight: 600; font-size: 14px; }
|
||||
.user-uid { font-family: var(--mono); font-size: 11px; color: var(--text3); }
|
||||
.user-tags { display: flex; gap: 6px; flex-wrap: wrap; }
|
||||
.user-tag {
|
||||
font-family: var(--mono); font-size: 10px;
|
||||
padding: 2px 8px; border-radius: 20px;
|
||||
background: var(--border2); color: var(--text2);
|
||||
}
|
||||
.user-tag.docker { background: rgba(59,130,246,0.15); color: var(--accent2); }
|
||||
.user-tag.linger { background: rgba(34,197,94,0.12); color: var(--green); }
|
||||
[data-theme="light"] .user-tag.docker { background: rgba(37,99,235,0.1); }
|
||||
[data-theme="light"] .user-tag.linger { background: rgba(22,163,74,0.1); }
|
||||
/* ── ACTION BUTTONS ────────────────────────────────────────── */
|
||||
/* unified: 83 uses ctr-action-btn; 173 uses act-btn — both work */
|
||||
.action-btns { display: flex; gap: 4px; align-items: center; }
|
||||
|
||||
.user-stats { display: flex; gap: 16px; margin-top: 10px; }
|
||||
.user-stat { font-family: var(--mono); font-size: 11px; color: var(--text3); }
|
||||
.user-stat strong { color: var(--text); }
|
||||
.ctr-action-btn,
|
||||
.act-btn {
|
||||
width: 28px; height: 28px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
border-radius: 7px; border: none; cursor: pointer; font-size: 11px;
|
||||
transition: background 0.15s, transform 0.1s, opacity 0.15s;
|
||||
}
|
||||
.ctr-action-btn:hover,
|
||||
.act-btn:hover { transform: scale(1.12); }
|
||||
.ctr-action-btn:disabled,
|
||||
.act-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
|
||||
|
||||
.ctr-action-btn.restart,
|
||||
.act-btn.restart { background: rgba(59,130,246,0.15); color: var(--accent2); }
|
||||
.ctr-action-btn.restart:hover,
|
||||
.act-btn.restart:hover { background: rgba(59,130,246,0.3); }
|
||||
|
||||
.ctr-action-btn.stop,
|
||||
.act-btn.stop { background: rgba(239,68,68,0.12); color: var(--red); }
|
||||
.ctr-action-btn.stop:hover,
|
||||
.act-btn.stop:hover { background: rgba(239,68,68,0.25); }
|
||||
|
||||
.ctr-action-btn.start,
|
||||
.act-btn.start { background: rgba(34,197,94,0.12); color: var(--green); }
|
||||
.ctr-action-btn.start:hover,
|
||||
.act-btn.start:hover { background: rgba(34,197,94,0.25); }
|
||||
|
||||
/* ── BUTTONS ───────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 7px;
|
||||
padding: 9px 16px; border-radius: 8px;
|
||||
font-size: 13px; font-weight: 600; font-family: var(--font);
|
||||
cursor: pointer; border: none; text-decoration: none;
|
||||
transition: opacity var(--trans), filter var(--trans), transform 0.1s;
|
||||
}
|
||||
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
|
||||
.btn:active { transform: translateY(0); }
|
||||
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; transform: none; }
|
||||
|
||||
.btn-primary, .btn.primary { background: var(--accent); color: #fff; }
|
||||
.btn-danger, .btn.danger { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.3); }
|
||||
.btn-success { background: var(--green); color: #fff; }
|
||||
.btn-ghost, .btn.ghost { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
|
||||
.btn-ghost:hover, .btn.ghost:hover { background: var(--border2); color: var(--text); filter: none; }
|
||||
.btn-sm, .btn.sm { padding: 5px 11px; font-size: 12px; }
|
||||
.btn-lg, .btn.lg { padding: 12px 24px; font-size: 14px; }
|
||||
|
||||
/* ── RESTORE FORM ──────────────────────────────────────────── */
|
||||
.restore-form { display: flex; flex-direction: column; gap: 0; }
|
||||
.form-section { padding: 20px 0; border-bottom: 1px solid var(--border); }
|
||||
.restore-form { max-width: 700px; display: flex; flex-direction: column; gap: 0; }
|
||||
.form-section { padding: 20px 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
|
||||
.form-section:last-child { border-bottom: none; }
|
||||
.form-section-title { font-size: 10px; font-family: var(--mono); letter-spacing: 0.12em; color: var(--text3); margin-bottom: 14px; }
|
||||
|
||||
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.radio-card { cursor: pointer; flex: 1; min-width: 180px; }
|
||||
.radio-card input { display: none; }
|
||||
.radio-body {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 12px 14px; border: 1px solid var(--border2);
|
||||
border-radius: var(--radius); background: var(--surface2);
|
||||
transition: border-color var(--trans), background var(--trans);
|
||||
.form-section-title {
|
||||
font-size: 9px; font-family: var(--mono); font-weight: 700;
|
||||
letter-spacing: 0.12em; color: var(--text3); margin-bottom: 14px;
|
||||
}
|
||||
.radio-card input:checked + .radio-body { border-color: var(--accent); background: rgba(59,130,246,0.08); }
|
||||
[data-theme="light"] .radio-card input:checked + .radio-body { background: rgba(37,99,235,0.06); }
|
||||
.radio-label { font-size: 13px; font-weight: 600; }
|
||||
.radio-desc { font-size: 11px; color: var(--text3); }
|
||||
.radio-desc code { background: var(--border2); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); }
|
||||
.radio-icon { font-size: 18px; }
|
||||
.radio-card.small .radio-body { padding: 9px 12px; gap: 8px; }
|
||||
.radio-card.small .radio-label { font-size: 12px; }
|
||||
|
||||
.form-row { display: flex; gap: 12px; }
|
||||
.form-row .form-group { flex: 1; }
|
||||
.form-group { display: flex; flex-direction: column; gap: 6px; }
|
||||
.form-label { font-size: 11px; font-weight: 600; color: var(--text2); letter-spacing: 0.06em; }
|
||||
.form-label {
|
||||
font-size: 11px; font-weight: 600; color: var(--text2);
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
.form-input {
|
||||
background: var(--surface2); border: 1px solid var(--border2);
|
||||
border-radius: 8px; padding: 9px 12px; font-size: 13px;
|
||||
@@ -372,36 +474,45 @@ html, body {
|
||||
}
|
||||
.form-input:focus { outline: none; border-color: var(--accent); }
|
||||
.form-input[readonly] { opacity: 0.6; cursor: default; }
|
||||
.form-row { display: flex; gap: 12px; }
|
||||
.form-row .form-group { flex: 1; }
|
||||
.form-note { font-size: 12px; color: var(--text3); margin-top: 8px; }
|
||||
.form-check { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
|
||||
.form-check input { accent-color: var(--accent); width: 14px; height: 14px; }
|
||||
|
||||
/* ── BUTTONS ───────────────────────────────────────────────── */
|
||||
.btn {
|
||||
display: inline-flex; align-items: center; gap: 7px;
|
||||
padding: 9px 16px; border-radius: 8px;
|
||||
font-size: 13px; font-weight: 600; font-family: var(--font);
|
||||
cursor: pointer; border: none;
|
||||
transition: opacity var(--trans), background var(--trans), filter var(--trans);
|
||||
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
|
||||
.radio-card { cursor: pointer; flex: 1; min-width: 160px; }
|
||||
.radio-card.sm { flex: unset; }
|
||||
.radio-card input { display: none; }
|
||||
.radio-body {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 12px 14px; border: 1px solid var(--border2);
|
||||
border-radius: var(--radius); background: var(--surface2);
|
||||
transition: border-color var(--trans), background var(--trans);
|
||||
}
|
||||
.btn:hover { filter: brightness(1.1); }
|
||||
.btn:disabled { opacity: 0.4; cursor: not-allowed; filter: none; }
|
||||
.btn-primary { background: var(--accent); color: #fff; }
|
||||
.btn-danger { background: var(--red); color: #fff; }
|
||||
.btn-success { background: var(--green); color: #fff; }
|
||||
.btn-ghost { background: var(--surface2); border: 1px solid var(--border2); color: var(--text2); }
|
||||
.btn-ghost:hover { background: var(--border2); color: var(--text); filter: none; }
|
||||
.btn-sm { padding: 5px 11px; font-size: 12px; }
|
||||
.btn-lg { padding: 12px 24px; font-size: 14px; }
|
||||
.radio-card.sm .radio-body { padding: 9px 12px; min-width: 110px; }
|
||||
.radio-card input:checked + .radio-body { border-color: var(--accent); background: rgba(59,130,246,0.08); }
|
||||
[data-theme="light"] .radio-card input:checked + .radio-body { background: rgba(37,99,235,0.06); }
|
||||
.radio-icon { font-size: 16px; color: var(--accent2); }
|
||||
.radio-label { font-size: 13px; font-weight: 600; }
|
||||
.radio-desc { font-size: 11px; color: var(--text3); font-family: var(--mono); margin-top: 2px; }
|
||||
.radio-desc code { background: var(--border2); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); }
|
||||
|
||||
/* ── LOG CONSOLE ───────────────────────────────────────────── */
|
||||
.log-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--text2);
|
||||
}
|
||||
.log-console {
|
||||
background: #05060a; border: 1px solid var(--border);
|
||||
border-radius: var(--radius); padding: 14px 16px;
|
||||
font-family: var(--mono); font-size: 12px; line-height: 1.7;
|
||||
max-height: 400px; overflow-y: auto; color: #8892a4;
|
||||
white-space: pre-wrap; word-break: break-all;
|
||||
}
|
||||
[data-theme="light"] .log-console { background: #1a1f2e; border-color: #2d3555; }
|
||||
.log-line { white-space: pre-wrap; word-break: break-all; }
|
||||
.log-line { margin: 0; }
|
||||
.log-elapsed { font-size: 11px; font-family: var(--mono); color: var(--text3); margin-top: 6px; }
|
||||
|
||||
/* ── BACKUP LIST ───────────────────────────────────────────── */
|
||||
.backup-list { display: flex; flex-direction: column; gap: 8px; }
|
||||
@@ -411,28 +522,101 @@ html, body {
|
||||
background: var(--surface2); gap: 10px; flex-wrap: wrap;
|
||||
border: 1px solid var(--border);
|
||||
}
|
||||
.backup-name { font-family: var(--mono); font-size: 12px; color: var(--text2); }
|
||||
.backup-name { font-family: var(--mono); font-size: 12px; color: var(--text2); }
|
||||
.backup-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
|
||||
.btn-delete-backup { color: var(--red) !important; opacity: 0.7; transition: opacity 0.15s; }
|
||||
.btn-delete-backup:hover { opacity: 1; }
|
||||
.btn-audit { color: var(--cyan) !important; opacity: 0.85; }
|
||||
.btn-audit:hover { opacity: 1; }
|
||||
|
||||
/* ── TWO COLUMN ────────────────────────────────────────────── */
|
||||
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
|
||||
/* ── MODAL ─────────────────────────────────────────────────── */
|
||||
.modal-overlay {
|
||||
position: fixed; inset: 0; z-index: 1000;
|
||||
background: rgba(0,0,0,0.65);
|
||||
backdrop-filter: blur(3px);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
padding: 20px; animation: fadeIn 0.15s ease;
|
||||
}
|
||||
.modal-box {
|
||||
background: #111318; border: 1px solid #1e2330;
|
||||
border-radius: 16px; width: 100%; max-width: 600px;
|
||||
max-height: 88vh; overflow-y: auto; padding: 24px;
|
||||
box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
|
||||
position: relative;
|
||||
}
|
||||
[data-theme="light"] .modal-box { background: #fff; border-color: #dde1ed; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
|
||||
.modal-header {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #1e2330;
|
||||
}
|
||||
[data-theme="light"] .modal-header { border-bottom-color: #dde1ed; }
|
||||
.modal-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: #e8ecf4; }
|
||||
[data-theme="light"] .modal-title { color: #0f1117; }
|
||||
.modal-close {
|
||||
background: none; border: none; cursor: pointer; color: #4a5568;
|
||||
font-size: 18px; line-height: 1; padding: 6px 10px; border-radius: 8px;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
.modal-close:hover { background: rgba(239,68,68,0.12); color: #ef4444; }
|
||||
.audit-footer {
|
||||
display: flex; gap: 8px; margin-top: 18px; padding-top: 14px;
|
||||
border-top: 1px solid #1e2330;
|
||||
}
|
||||
[data-theme="light"] .audit-footer { border-top-color: #dde1ed; }
|
||||
|
||||
/* ── FORM GRID ─────────────────────────────────────────────── */
|
||||
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
|
||||
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
|
||||
|
||||
/* ── SECTION HEADER ────────────────────────────────────────── */
|
||||
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
|
||||
.section-title { font-size: 13px; font-weight: 600; color: var(--text2); font-family: var(--mono); letter-spacing: 0.06em; }
|
||||
/* ── NOTICE ────────────────────────────────────────────────── */
|
||||
.notice {
|
||||
padding: 12px 16px; border-radius: var(--radius);
|
||||
font-size: 13px; display: flex; align-items: flex-start; gap: 10px;
|
||||
}
|
||||
.notice.warning {
|
||||
background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2);
|
||||
color: var(--yellow);
|
||||
}
|
||||
.notice code { font-family: var(--mono); font-size: 12px; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }
|
||||
|
||||
/* ── ALERTS ────────────────────────────────────────────────── */
|
||||
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; display: none; }
|
||||
.alert.show { display: block; }
|
||||
.alert-success { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
|
||||
.alert-error { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
|
||||
[data-theme="light"] .alert-success { background: rgba(22,163,74,0.08); }
|
||||
[data-theme="light"] .alert-error { background: rgba(220,38,38,0.08); }
|
||||
.alert.show { display: block; }
|
||||
.alert-success { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
|
||||
.alert-error { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
|
||||
|
||||
/* ── EMPTY STATE ───────────────────────────────────────────── */
|
||||
.empty-state { text-align: center; padding: 36px; color: var(--text3); font-size: 13px; }
|
||||
.empty-state,
|
||||
.empty {
|
||||
text-align: center; padding: 36px; color: var(--text3);
|
||||
font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px;
|
||||
}
|
||||
.empty-state i { font-size: 26px; display: block; margin-bottom: 10px; opacity: 0.35; }
|
||||
.empty.warn { color: var(--yellow); }
|
||||
|
||||
/* ── SETTINGS ──────────────────────────────────────────────── */
|
||||
.settings-grid { display: flex; flex-direction: column; gap: 0; }
|
||||
.settings-row {
|
||||
display: flex; justify-content: space-between; align-items: flex-start;
|
||||
gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.settings-row:last-child { border-bottom: none; }
|
||||
.settings-label {
|
||||
font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
|
||||
color: var(--text3); text-transform: uppercase; flex: 0 0 180px;
|
||||
}
|
||||
.settings-value { font-size: 14px; color: var(--text2); text-align: right; flex: 1; line-height: 1.45; }
|
||||
|
||||
/* ── TWO COL ───────────────────────────────────────────────── */
|
||||
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }
|
||||
|
||||
/* ── UTILITIES ─────────────────────────────────────────────── */
|
||||
.row-gap { display: flex; align-items: center; gap: 8px; }
|
||||
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
|
||||
.section-title { font-size: 13px; font-weight: 600; color: var(--text2); font-family: var(--mono); letter-spacing: 0.06em; }
|
||||
|
||||
/* ── ANIMATION ─────────────────────────────────────────────── */
|
||||
@keyframes fadeIn {
|
||||
from { opacity: 0; transform: translateY(5px); }
|
||||
to { opacity: 1; transform: translateY(0); }
|
||||
}
|
||||
|
||||
/* manual backup wrapper */
|
||||
#manual-backup-wrapper { border-top: 1px solid var(--border); padding-top: 16px; }
|
||||
Reference in New Issue
Block a user