568 lines
13 KiB
CSS
568 lines
13 KiB
CSS
/* Admin /status monitoring page styles.
|
|
* Apple 2026 + Dieter Rams aesthetic.
|
|
* Less, but better. Honest materials. Tabular numerics. No decoration without purpose.
|
|
*/
|
|
|
|
:root {
|
|
--monitor-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
|
|
"Inter", "Manrope", "Segoe UI", system-ui, sans-serif;
|
|
--monitor-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;
|
|
--monitor-surface: rgba(255, 255, 255, 0.035);
|
|
--monitor-surface-strong: rgba(255, 255, 255, 0.05);
|
|
--monitor-border: rgba(255, 255, 255, 0.07);
|
|
--monitor-border-soft: rgba(255, 255, 255, 0.045);
|
|
--monitor-text: rgba(255, 255, 255, 0.95);
|
|
--monitor-text-muted: rgba(255, 255, 255, 0.55);
|
|
--monitor-text-faint: rgba(255, 255, 255, 0.38);
|
|
--monitor-accent: #22d3ee;
|
|
--monitor-accent-soft: rgba(34, 211, 238, 0.18);
|
|
--monitor-radius-card: 22px;
|
|
--monitor-radius-row: 14px;
|
|
}
|
|
|
|
/* ===== Page shell ===== */
|
|
.monitor {
|
|
width: min(1180px, calc(100% - 48px));
|
|
margin: 0 auto;
|
|
padding: 8px 0 40px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 22px;
|
|
font-family: var(--monitor-font);
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
/* ===== Page header ===== */
|
|
.monitor-head {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
padding: 4px 2px 0;
|
|
}
|
|
.monitor-head h2 {
|
|
font-size: clamp(1.6rem, 3.2vh, 2.1rem);
|
|
font-weight: 600;
|
|
letter-spacing: -0.02em;
|
|
color: var(--monitor-text);
|
|
line-height: 1.15;
|
|
}
|
|
.monitor-head p {
|
|
color: var(--monitor-text-muted);
|
|
font-size: 14px;
|
|
margin-top: 6px;
|
|
line-height: 1.5;
|
|
max-width: 56ch;
|
|
}
|
|
.monitor-head__meta {
|
|
display: flex;
|
|
gap: 10px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.monitor-chip {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
padding: 9px 14px;
|
|
border-radius: 999px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
|
color: var(--monitor-text-muted);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
letter-spacing: 0.005em;
|
|
font-variant-numeric: tabular-nums;
|
|
-webkit-backdrop-filter: blur(24px) saturate(180%);
|
|
backdrop-filter: blur(24px) saturate(180%);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.12) inset,
|
|
0 -1px 0 rgba(0, 0, 0, 0.18) inset,
|
|
0 8px 22px rgba(0, 0, 0, 0.28);
|
|
transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
|
|
background 0.22s ease, border-color 0.22s ease;
|
|
}
|
|
.monitor-chip:hover {
|
|
background: rgba(255, 255, 255, 0.09);
|
|
border-color: rgba(255, 255, 255, 0.16);
|
|
transform: translateY(-1px);
|
|
}
|
|
.monitor-chip strong {
|
|
color: var(--monitor-text);
|
|
font-weight: 600;
|
|
}
|
|
.monitor-chip i {
|
|
color: var(--monitor-accent);
|
|
font-size: 12.5px;
|
|
width: 14px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ===== Card surface ===== */
|
|
.monitor-card {
|
|
background: var(--monitor-surface);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
border-radius: var(--monitor-radius-card);
|
|
padding: 24px 26px;
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.04) inset,
|
|
0 18px 40px rgba(0, 0, 0, 0.22);
|
|
-webkit-backdrop-filter: blur(14px) saturate(140%);
|
|
backdrop-filter: blur(14px) saturate(140%);
|
|
}
|
|
.monitor-card__title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 9px;
|
|
font-size: 12.5px;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
text-transform: none;
|
|
color: var(--monitor-text-muted);
|
|
margin-bottom: 22px;
|
|
}
|
|
.monitor-card__title i {
|
|
color: var(--monitor-accent);
|
|
font-size: 13px;
|
|
width: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* ===== Metrics Hero Grid (Apple-inspired circular cards) ===== */
|
|
.metrics-hero {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.metric-card {
|
|
position: relative;
|
|
background: var(--monitor-surface);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
border-radius: var(--monitor-radius-card);
|
|
padding: 36px 28px 28px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
min-height: 260px;
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.04) inset,
|
|
0 18px 40px rgba(0, 0, 0, 0.22);
|
|
-webkit-backdrop-filter: blur(14px) saturate(140%);
|
|
backdrop-filter: blur(14px) saturate(140%);
|
|
transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
|
|
box-shadow 0.3s ease,
|
|
border-color 0.3s ease;
|
|
overflow: visible;
|
|
}
|
|
|
|
.metric-card:hover {
|
|
transform: translateY(-2px);
|
|
border-color: rgba(255, 255, 255, 0.12);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.06) inset,
|
|
0 24px 48px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.metric-card__ring {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 240px;
|
|
height: 240px;
|
|
opacity: 0.5;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
.metric-card__ring svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: rotate(0deg);
|
|
}
|
|
|
|
.metric-card__ring-fill {
|
|
transition: stroke-dasharray 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
}
|
|
|
|
.metric-card__icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
margin-bottom: 14px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.metric-card__label {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--monitor-text-muted);
|
|
letter-spacing: 0.01em;
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.metric-card__value {
|
|
font-size: 48px;
|
|
font-weight: 700;
|
|
color: var(--monitor-text);
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: -0.03em;
|
|
line-height: 1;
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.metric-card__detail {
|
|
font-size: 12px;
|
|
color: var(--monitor-text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
text-align: center;
|
|
letter-spacing: 0.01em;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* ===== Stats Row (Live metrics) ===== */
|
|
.stats-row {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.stat-pill {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 20px 24px;
|
|
background: var(--monitor-surface);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
border-radius: var(--monitor-radius-card);
|
|
box-shadow:
|
|
0 1px 0 rgba(255, 255, 255, 0.04) inset,
|
|
0 12px 30px rgba(0, 0, 0, 0.18);
|
|
-webkit-backdrop-filter: blur(14px) saturate(140%);
|
|
backdrop-filter: blur(14px) saturate(140%);
|
|
transition: transform 0.25s cubic-bezier(0.22, 0.61, 0.36, 1),
|
|
border-color 0.25s ease;
|
|
}
|
|
|
|
.stat-pill:hover {
|
|
transform: translateY(-1px);
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.stat-pill__icon {
|
|
font-size: 24px;
|
|
line-height: 1;
|
|
color: rgba(255, 255, 255, 0.5);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stat-pill__body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.stat-pill__label {
|
|
font-size: 12px;
|
|
color: var(--monitor-text-muted);
|
|
letter-spacing: 0.01em;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.stat-pill__value {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--monitor-text);
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
/* ===== Services grid ===== */
|
|
.svc-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
.svc-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px 14px;
|
|
border-radius: var(--monitor-radius-row);
|
|
background: var(--monitor-surface-strong);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
}
|
|
.svc-row__dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex: none;
|
|
background: var(--monitor-text-faint);
|
|
transition: background 0.3s ease, box-shadow 0.3s ease;
|
|
}
|
|
.svc-row[data-state="ok"] .svc-row__dot {
|
|
background: #22c55e;
|
|
box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
|
|
}
|
|
.svc-row[data-state="warn"] .svc-row__dot {
|
|
background: #f59e0b;
|
|
box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
|
|
}
|
|
.svc-row[data-state="bad"] .svc-row__dot {
|
|
background: #ef4444;
|
|
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
|
|
}
|
|
.svc-row__body { min-width: 0; }
|
|
.svc-row__name {
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
color: var(--monitor-text);
|
|
letter-spacing: -0.005em;
|
|
}
|
|
.svc-row__val {
|
|
font-size: 12px;
|
|
color: var(--monitor-text-muted);
|
|
margin-top: 2px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
/* ===== History graph + calendar ===== */
|
|
.graph-wrap {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 18px;
|
|
}
|
|
.graph-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.graph-legend {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
border-radius: 999px;
|
|
background: var(--monitor-surface);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
}
|
|
.graph-legend span {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 7px;
|
|
font-size: 12px;
|
|
color: var(--monitor-text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
padding: 5px 11px;
|
|
border-radius: 999px;
|
|
font-weight: 500;
|
|
}
|
|
.graph-legend i {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
#graphLabel {
|
|
font-size: 12.5px;
|
|
color: var(--monitor-text-muted);
|
|
font-variant-numeric: tabular-nums;
|
|
font-weight: 500;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
#metricsGraph {
|
|
width: 100%;
|
|
height: 220px;
|
|
display: block;
|
|
border-radius: 14px;
|
|
background: var(--monitor-surface);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
padding: 14px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Calendar */
|
|
.calendar { margin-top: 4px; }
|
|
.calendar-head {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 14px;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
.calendar-nav {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px;
|
|
border-radius: 999px;
|
|
background: var(--monitor-surface);
|
|
border: 1px solid var(--monitor-border-soft);
|
|
}
|
|
.calendar-nav-btn {
|
|
width: 30px;
|
|
height: 30px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 999px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--monitor-text-muted);
|
|
font-size: 11px;
|
|
cursor: pointer;
|
|
transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
|
|
}
|
|
.calendar-nav-btn:hover:not(:disabled) {
|
|
background: var(--monitor-surface-strong);
|
|
color: var(--monitor-text);
|
|
}
|
|
.calendar-nav-btn:active:not(:disabled) {
|
|
transform: scale(0.94);
|
|
}
|
|
.calendar-nav-btn:disabled {
|
|
opacity: 0.3;
|
|
cursor: not-allowed;
|
|
}
|
|
.calendar-head__month {
|
|
font-size: 14.5px;
|
|
font-weight: 600;
|
|
color: var(--monitor-text);
|
|
letter-spacing: -0.01em;
|
|
padding: 0 10px;
|
|
min-width: 130px;
|
|
text-align: center;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
.calendar-head__hint {
|
|
font-size: 12px;
|
|
color: var(--monitor-text-faint);
|
|
}
|
|
|
|
.cal-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 6px;
|
|
}
|
|
.cal-weekday {
|
|
text-align: center;
|
|
font-size: 10.5px;
|
|
font-weight: 600;
|
|
color: var(--monitor-text-faint);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
padding: 8px 0 10px;
|
|
}
|
|
.cal-cell {
|
|
position: relative;
|
|
aspect-ratio: 1 / 1;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--monitor-border-soft);
|
|
background: var(--monitor-surface);
|
|
color: var(--monitor-text);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
font-family: var(--monitor-font);
|
|
transition:
|
|
transform 0.2s cubic-bezier(0.22, 0.61, 0.36, 1),
|
|
box-shadow 0.2s ease,
|
|
background 0.2s ease,
|
|
border-color 0.2s ease;
|
|
overflow: hidden;
|
|
}
|
|
.cal-cell:hover:not(.cal-cell--blank):not(.cal-cell--active) {
|
|
transform: translateY(-1px);
|
|
background: var(--monitor-surface-strong);
|
|
border-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
.cal-cell--blank {
|
|
background: transparent;
|
|
border-color: transparent;
|
|
cursor: default;
|
|
}
|
|
.cal-cell--blank:hover { transform: none; }
|
|
|
|
.cal-cell__num {
|
|
font-size: 13.5px;
|
|
font-weight: 500;
|
|
font-variant-numeric: tabular-nums;
|
|
letter-spacing: -0.01em;
|
|
line-height: 1;
|
|
}
|
|
|
|
/* Active/selected day: same look as unselected, just "pressed" (sunken). */
|
|
.cal-cell--active {
|
|
transform: scale(0.9);
|
|
background: rgba(0, 0, 0, 0.28);
|
|
border-color: rgba(255, 255, 255, 0.04);
|
|
box-shadow:
|
|
inset 0 2px 4px rgba(0, 0, 0, 0.45),
|
|
inset 0 -1px 0 rgba(255, 255, 255, 0.03);
|
|
}
|
|
.cal-cell--active .cal-cell__num { color: var(--monitor-text); }
|
|
|
|
/* Heat indicator + today dot are intentionally hidden — minimal cells. */
|
|
.cal-cell__heat,
|
|
.cal-cell--today .cal-cell__num::after { display: none; }
|
|
|
|
/* ===== Responsive ===== */
|
|
@media (max-width: 920px) {
|
|
.metrics-hero {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.monitor-head { align-items: flex-start; }
|
|
.monitor-head__meta { width: 100%; }
|
|
.monitor-chip { font-size: 12.5px; padding: 8px 12px; }
|
|
.calendar-head { flex-direction: column; align-items: flex-start; gap: 8px; }
|
|
.stats-row {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.monitor { width: calc(100% - 28px); }
|
|
.monitor-card { padding: 20px 18px; }
|
|
.metric-card { padding: 32px 24px 28px; min-height: 240px; }
|
|
.metric-card__value { font-size: 40px; }
|
|
.metric-card__ring { width: 210px; height: 210px; }
|
|
.metrics-hero { grid-template-columns: 1fr; gap: 16px; }
|
|
.cal-cell { padding: 4px 2px 6px; gap: 3px; }
|
|
.cal-cell__num { font-size: 12.5px; }
|
|
.cal-cell__heat { height: 2.5px; }
|
|
.monitor-chip { font-size: 12px; padding: 7px 11px; }
|
|
.stat-pill { padding: 16px 20px; }
|
|
}
|