319 lines
11 KiB
CSS
319 lines
11 KiB
CSS
/* Cloud IP Validator — admin dashboard design system.
|
|
Self-contained, no framework: tokens + a small set of components
|
|
(sidebar shell, panels, tables, pills, forms, buttons, alerts).
|
|
Fonts are vendored separately — see vendor/fonts.css. */
|
|
|
|
:root {
|
|
--bg: #F4F7F6;
|
|
--surface: #FFFFFF;
|
|
--surface-alt: #ECF2F1;
|
|
--border: #E1E8E7;
|
|
--border-soft: #EAF0EF;
|
|
--text: #12201F;
|
|
--text-muted: #5E6F6D;
|
|
--text-faint: #8B9997;
|
|
|
|
--accent: #146C74;
|
|
--accent-strong: #0F565C;
|
|
--accent-soft: #E1F0EF;
|
|
--accent-contrast: #FFFFFF;
|
|
|
|
--success: #1D8A5C; --success-soft: #E3F6EC;
|
|
--warning: #B4790F; --warning-soft: #FBF0DD;
|
|
--danger: #C13A2E; --danger-soft: #FCE8E6;
|
|
--info: #3A6EA5; --info-soft: #E7EFF8;
|
|
--neutral: #5B6B6C; --neutral-soft: #EDF1F0;
|
|
--cancel: #7A5AC0; --cancel-soft: #F1ECFB;
|
|
|
|
--radius-sm: 6px;
|
|
--radius-md: 10px;
|
|
--radius-lg: 16px;
|
|
--radius-pill: 999px;
|
|
|
|
--shadow-sm: 0 1px 2px rgba(18, 32, 31, .05), 0 1px 1px rgba(18, 32, 31, .04);
|
|
--shadow-md: 0 8px 24px rgba(18, 32, 31, .08);
|
|
|
|
--font-ui: "Manrope", -apple-system, "Segoe UI", sans-serif;
|
|
--font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
|
|
html, body { height: 100%; }
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family: var(--font-ui);
|
|
font-size: 14px;
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
a { color: inherit; }
|
|
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
|
|
h1, h2, h3 { text-wrap: balance; }
|
|
h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.015em; margin: 0 0 4px; }
|
|
h2.section-title {
|
|
font-size: 12.5px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: .05em;
|
|
color: var(--text-muted);
|
|
margin: 26px 0 10px;
|
|
}
|
|
section:first-of-type h2.section-title,
|
|
main > h2.section-title:first-child { margin-top: 0; }
|
|
|
|
/* ---------- shell layout ---------- */
|
|
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
|
|
.sidebar {
|
|
background: var(--surface-alt);
|
|
border-right: 1px solid var(--border-soft);
|
|
padding: 20px 14px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 22px;
|
|
}
|
|
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
|
|
.brand-mark {
|
|
width: 30px; height: 30px;
|
|
border-radius: var(--radius-sm);
|
|
background: linear-gradient(155deg, var(--accent), var(--accent-strong));
|
|
display: grid; place-items: center; flex-shrink: 0;
|
|
}
|
|
.brand-mark svg { width: 16px; height: 16px; }
|
|
.brand-name { font-weight: 800; font-size: 14.5px; letter-spacing: -0.01em; line-height: 1.2; }
|
|
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--text-muted); }
|
|
|
|
nav.nav-groups { display: flex; flex-direction: column; gap: 2px; }
|
|
.nav-link {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 8px 10px;
|
|
border-radius: var(--radius-sm);
|
|
text-decoration: none;
|
|
color: var(--text-muted);
|
|
font-weight: 600;
|
|
font-size: 13.5px;
|
|
transition: background .12s ease, color .12s ease;
|
|
}
|
|
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }
|
|
.nav-link:hover { background: var(--border-soft); color: var(--text); }
|
|
.nav-link.active { background: var(--accent-soft); color: var(--accent-strong); }
|
|
.nav-link.active svg { opacity: 1; }
|
|
|
|
.sidebar-foot {
|
|
margin-top: auto;
|
|
padding: 10px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-soft);
|
|
font-size: 12px;
|
|
color: var(--text-muted);
|
|
display: flex; align-items: center; gap: 8px;
|
|
}
|
|
.pulse-dot {
|
|
width: 7px; height: 7px; border-radius: 50%;
|
|
background: var(--success);
|
|
box-shadow: 0 0 0 3px var(--success-soft);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.main { padding: 22px 28px 60px; max-width: 1180px; }
|
|
.topbar {
|
|
display: flex; align-items: baseline; justify-content: space-between;
|
|
margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
|
|
}
|
|
.topbar .sub { color: var(--text-muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
|
|
|
|
/* ---------- stat cards ---------- */
|
|
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 4px; }
|
|
.stat-card {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius-md);
|
|
padding: 12px 14px;
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
.stat-card .value {
|
|
font-family: var(--font-mono);
|
|
font-size: 22px; font-weight: 500;
|
|
display: block;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.stat-card .label { font-size: 11.5px; color: var(--text-muted); font-weight: 600; }
|
|
.stat-card.accented .value { color: var(--accent-strong); }
|
|
|
|
/* ---------- panels ---------- */
|
|
.panel {
|
|
background: var(--surface);
|
|
border: 1px solid var(--border-soft);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: var(--shadow-sm);
|
|
overflow: hidden;
|
|
}
|
|
.panel + .panel { margin-top: 14px; }
|
|
.panel-body { padding: 16px 18px; }
|
|
|
|
/* ---------- forms ---------- */
|
|
.field-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
|
|
.field { display: flex; flex-direction: column; gap: 5px; flex: 1 1 220px; }
|
|
.field label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
|
|
.form-check { display: flex; align-items: center; gap: 6px; font-size: 13px; }
|
|
|
|
input[type="text"], input[type="search"], textarea, select {
|
|
font-family: var(--font-ui);
|
|
font-size: 13.5px;
|
|
padding: 8px 11px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
resize: vertical;
|
|
width: 100%;
|
|
}
|
|
input:focus, textarea:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--accent);
|
|
box-shadow: 0 0 0 3px var(--accent-soft);
|
|
}
|
|
::placeholder { color: var(--text-faint); }
|
|
|
|
.btn {
|
|
display: inline-flex; align-items: center; gap: 6px;
|
|
font-family: var(--font-ui);
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
padding: 8px 14px;
|
|
border-radius: var(--radius-sm);
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition: transform .08s ease, background .12s ease, border-color .12s ease;
|
|
white-space: nowrap;
|
|
line-height: 1.3;
|
|
}
|
|
.btn:active { transform: translateY(1px); }
|
|
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
|
|
.btn-primary:hover { background: var(--accent-strong); }
|
|
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
|
|
.btn-ghost:hover { border-color: var(--text-muted); }
|
|
.btn-danger-ghost { background: transparent; border-color: var(--border); color: var(--danger); }
|
|
.btn-danger-ghost:hover { background: var(--danger-soft); border-color: var(--danger); }
|
|
.btn-sm { padding: 5px 10px; font-size: 12px; }
|
|
.btn-block { width: 100%; justify-content: center; }
|
|
|
|
/* ---------- tables ---------- */
|
|
table { width: 100%; border-collapse: collapse; }
|
|
thead th {
|
|
text-align: left;
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .04em;
|
|
color: var(--text-faint);
|
|
font-weight: 700;
|
|
padding: 10px 18px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
}
|
|
tbody td { padding: 10px 18px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
|
|
tbody tr:last-child td { border-bottom: none; }
|
|
tbody tr:hover { background: var(--bg); }
|
|
td.addr { font-family: var(--font-mono); font-size: 13px; }
|
|
td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--text-muted); }
|
|
.table-scroll { overflow-x: auto; }
|
|
.actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
|
|
|
|
/* ---------- pills (state/result badges) ---------- */
|
|
.pill {
|
|
display: inline-flex; align-items: center; gap: 5px;
|
|
padding: 3px 10px 3px 8px;
|
|
border-radius: var(--radius-pill);
|
|
font-size: 11.5px;
|
|
font-weight: 700;
|
|
white-space: nowrap;
|
|
}
|
|
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
|
|
.pill-neutral { background: var(--neutral-soft); color: var(--neutral); }
|
|
.pill-info { background: var(--info-soft); color: var(--info); }
|
|
.pill-success { background: var(--success-soft); color: var(--success); }
|
|
.pill-warning { background: var(--warning-soft); color: var(--warning); }
|
|
.pill-danger { background: var(--danger-soft); color: var(--danger); }
|
|
.pill-cancel { background: var(--cancel-soft); color: var(--cancel); }
|
|
|
|
/* ---------- alerts ---------- */
|
|
.alert {
|
|
display: flex; gap: 10px; align-items: flex-start;
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-md);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
border: 1px solid transparent;
|
|
}
|
|
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: #f0d9a8; }
|
|
.alert-danger { background: var(--danger-soft); color: var(--danger); border-color: #f0c2bc; }
|
|
.alert strong { color: var(--text); font-weight: 700; }
|
|
#error-banner:empty { display: none; }
|
|
#error-banner .alert { margin-bottom: 16px; }
|
|
|
|
.breakdown { display: flex; gap: 16px; flex-wrap: wrap; margin: 2px 0 14px; font-size: 12.5px; color: var(--text-muted); }
|
|
.breakdown b { color: var(--text); font-family: var(--font-mono); font-weight: 500; }
|
|
|
|
.muted { color: var(--text-faint); font-size: 12px; }
|
|
code.inline { font-family: var(--font-mono); background: var(--bg); border: 1px solid var(--border-soft); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
|
|
|
|
.inline-form { display: flex; gap: 6px; align-items: center; }
|
|
.inline-form input, .inline-form textarea { margin: 0; }
|
|
|
|
/* ---------- responsive ---------- */
|
|
.nav-toggle { display: none; }
|
|
.topbar-mobile { display: none; }
|
|
|
|
@media (max-width: 900px) {
|
|
.shell { grid-template-columns: 1fr; }
|
|
.sidebar {
|
|
position: fixed;
|
|
inset: 0 30% 0 0;
|
|
z-index: 40;
|
|
transform: translateX(-100%);
|
|
transition: transform .18s ease;
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
#nav-toggle:checked ~ .shell .sidebar { transform: translateX(0); }
|
|
#nav-toggle:checked ~ .shell::after {
|
|
content: "";
|
|
position: fixed; inset: 0; z-index: 39;
|
|
background: rgba(18, 32, 31, .28);
|
|
}
|
|
.topbar-mobile {
|
|
display: flex; align-items: center; gap: 10px;
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--border-soft);
|
|
background: var(--surface);
|
|
position: sticky; top: 0; z-index: 30;
|
|
}
|
|
label.burger {
|
|
width: 34px; height: 34px; border-radius: var(--radius-sm);
|
|
border: 1px solid var(--border);
|
|
display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
|
|
}
|
|
.main { padding: 18px 16px 50px; }
|
|
.stat-grid { grid-template-columns: repeat(2, 1fr); }
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.field-row { flex-direction: column; align-items: stretch; }
|
|
thead { display: none; }
|
|
table, tbody, tr, td { display: block; width: 100%; }
|
|
tbody tr { border-bottom: 1px solid var(--border-soft); padding: 10px 18px; }
|
|
tbody td { border: none; padding: 3px 0; }
|
|
tbody td[data-label]::before {
|
|
content: attr(data-label);
|
|
display: block;
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: .04em;
|
|
color: var(--text-faint);
|
|
}
|
|
.actions { justify-content: flex-start; margin-top: 6px; }
|
|
}
|