/* Server Monitor: dark theme. app.js reads the palette from these variables for its canvas drawing. */ :root { --bg: #0d111c; --panel: #161c2b; --card: #1a2133; --border: #27314a; --grid: #242d42; --text: #e6ebf5; --muted: #8b95ab; --faint: #5a657d; --accent: #38bdf8; --green: #22c55e; --amber: #f59e0b; --red: #ef4444; --violet: #a78bfa; --pink: #f472b6; --teal: #2dd4bf; --orange: #fb923c; --blue: #60a5fa; --line: #232c41; --input: #111727; --select: #17304a; font: 13px/1.4 system-ui, "Segoe UI", Roboto, "Noto Sans", sans-serif; color: var(--text); color-scheme: dark; } * { box-sizing: border-box; } [hidden] { display: none !important; } body { margin: 0; height: 100vh; min-width: 1100px; display: flex; background: var(--bg); } h1 { margin: 0; font-size: 22px; } h2 { margin: 0; font-size: 16px; font-weight: 600; } p { margin: 0; } small { font-size: 11px; color: var(--muted); } ::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #2a3449; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; } /* layout helpers */ .row { display: flex; gap: 10px; align-items: center; } .col { display: flex; flex-direction: column; gap: 10px; } .top { align-items: flex-start; } .end { align-items: flex-end; } .stretch { align-items: stretch; } .grow { flex: 1; min-width: 0; } .grow2 { flex: 2; min-width: 0; } .grow3 { flex: 3; min-width: 0; } .fill { flex: 1; min-height: 0; } .scroll { overflow: hidden auto; } .side { width: 330px; flex: none; } .side.wide { width: 460px; } .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .muted { color: var(--muted); } .pre { white-space: pre-wrap; } .mono { font-family: ui-monospace, "DejaVu Sans Mono", Consolas, monospace; } .section { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; } .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; } .side > .panel:only-child { height: 100%; } /* controls */ button, .button { background: #1d2538; border: 1px solid #2c3650; border-radius: 8px; padding: 7px 14px; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; } button:hover, .button:hover { background: #253049; border-color: var(--accent); } button:disabled { color: var(--faint); border-color: #222a3c; } button.primary, button.on { background: #0e7ab8; border-color: var(--accent); color: #fff; } button.primary:hover { background: #1190d8; } button.danger { background: #3a1820; border-color: #7f2a36; color: #ffb4bd; } button.danger:hover { background: #55202b; border-color: var(--red); } button.flat { background: none; border: none; padding: 4px 8px 4px 0; color: var(--muted); } button.flat:hover { color: var(--text); } button.left { text-align: left; padding: 6px 12px; } input, select { background: var(--input); border: 1px solid #2a3449; border-radius: 7px; padding: 6px 8px; font: inherit; color: var(--text); min-width: 0; } input:focus, select:focus { border-color: var(--accent); outline: none; } input:disabled { color: var(--faint); } input[type=number] { width: 86px; } input[type=search] { width: 240px; } input[type=checkbox] { accent-color: #0ea5e9; width: 16px; height: 16px; margin: 0; } .check { display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; } .form { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; align-items: center; } .form > div:nth-child(odd) { color: var(--muted); white-space: pre; } .form .row { gap: 7px; white-space: nowrap; min-width: 0; } .form input[type=number] { width: 68px; } .form input:not([type=number], [type=checkbox]), .form select { flex: 1; } dialog { background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 20px 24px; min-width: 380px; max-width: 92vw; } dialog::backdrop { background: rgba(0, 0, 0, .55); } dialog.wide { width: 720px; } dialog[open] { display: flex; flex-direction: column; gap: 14px; } dialog > .row:last-child { justify-content: flex-end; } .menu { position: fixed; z-index: 9; background: var(--panel); border: 1px solid #2a3449; border-radius: 8px; padding: 6px; display: flex; flex-direction: column; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); } .menu button { background: none; border: none; text-align: left; font-weight: 400; padding: 7px 22px; border-radius: 5px; } .menu button:hover { background: var(--select); } .menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 8px; } .toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; background: #3a1820; border: 1px solid var(--red); border-radius: 8px; padding: 10px 14px; max-width: 480px; } .badge { background: var(--red); color: #fff; border-radius: 9px; padding: 1px 7px; font-size: 11px; font-weight: 700; } .chip { background: #1f2a40; color: #b9c3d8; padding: 2px 9px; border-radius: 4px; white-space: nowrap; } .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .track { height: 4px; border-radius: 2px; background: var(--grid); overflow: hidden; } .track i { display: block; height: 100%; border-radius: 2px; } /* sidebar */ aside { width: 260px; flex: none; background: #10151f; border-right: 1px solid #1f2738; padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 6px; } .brand { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; } .brand img { width: 34px; } .brand b { font-size: 16px; font-weight: 800; display: block; } .nav { text-align: left; padding: 10px 14px; border: none; background: none; font-size: 14px; display: flex; justify-content: space-between; } .nav:hover { background: var(--card); } .nav.on { background: var(--select); color: #7dd3fc; } aside > .section { margin: 12px 0 0 8px; } .list { overflow-y: auto; } .item { padding: 8px 10px; border-radius: 8px; cursor: pointer; } .item:hover { background: var(--card); } .item.sel { background: var(--select); } .item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mini { display: flex; align-items: center; margin: 3px 0 0 20px; } .mini small { width: 30px; font-size: 9px; color: var(--faint); } .mini .track { flex: 1; } /* pages */ main { flex: 1; min-width: 0; } main > section { height: 100%; padding: 22px 28px 18px; display: flex; flex-direction: column; gap: 14px; } .tiles { display: grid; gap: 14px; } .tile { background: linear-gradient(135deg, var(--card), var(--panel)); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px 12px 16px; min-height: 84px; position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0; } .tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--stripe); } .tile b { font-size: 21px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tile .section, .tile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cv { position: relative; min-width: 0; } .cv canvas { position: absolute; inset: 0; width: 100%; height: 100%; } .chart { height: 240px; padding: 0; } .gauge { height: 190px; } .gauges { flex-direction: row; } .gauges .gauge { flex: 1; height: auto; aspect-ratio: 17 / 19; max-height: 210px; } .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding-right: 6px; } .card { background: linear-gradient(var(--card), var(--panel)); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px 12px; height: 262px; cursor: pointer; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; } .card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: linear-gradient(90deg, var(--status), transparent 60%); } .card:hover { border-color: var(--accent); background: linear-gradient(#20293f, var(--panel)); } .card .dot { background: var(--status); align-self: flex-start; margin-top: 7px; } .card b { font-size: 16px; } .card b, .card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .card .chip { color: var(--status); background: color-mix(in srgb, var(--status) 16%, transparent); border: 1px solid var(--status); border-radius: 10px; font-size: 10px; font-weight: 700; text-transform: uppercase; } .grade { width: 44px; height: 44px; flex: none; } .rings { flex: 1; } .foot { font-size: 11px; color: var(--muted); min-height: 32px; } .foot .row { gap: 14px; } .warn { border-radius: 8px; padding: 0 7px; } .card.add { border: 1.5px dashed var(--border); background: none; align-items: center; justify-content: center; gap: 4px; color: var(--muted); } .card.add::before { display: none; } .card.add i { font: 300 44px/1 system-ui; } .card.add b { font-size: 14px; } .card.add:hover { color: var(--accent); background: rgba(56, 189, 248, .07); } .events { overflow-y: auto; flex: 1; min-height: 0; } .events div { padding: 6px 2px; border-bottom: 1px solid #1f2738; overflow-wrap: anywhere; } /* tables */ .table { background: #131929; border: 1px solid var(--line); border-radius: 10px; overflow: auto; } table { border-collapse: collapse; width: 100%; } th, td { padding: 0 8px; height: 30px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; } th { position: sticky; top: 0; z-index: 1; background: #182033; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); user-select: none; } th[data-sort]::after { content: attr(data-sort); color: var(--accent); } tbody tr:nth-child(even) { background: #161d2e; } tbody tr.sel { background: var(--select); } td.r { text-align: right; } .bar { position: relative; height: 16px; min-width: 90px; border-radius: 4px; background: var(--grid); overflow: hidden; } .bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; } .bar span { position: relative; display: block; text-align: center; font-size: 11px; font-weight: 700; line-height: 16px; color: var(--text); } .kv { width: auto; } .kv td { height: auto; padding: 3px 18px 3px 0; white-space: normal; overflow-wrap: anywhere; } .kv td:first-child { color: var(--muted); white-space: nowrap; } /* server page */ .state { font-size: 12px; text-transform: uppercase; } .chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; min-height: 22px; } .tabbar { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line); } .tabbar button { background: none; border: none; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); padding: 9px 13px; } .tabbar button:hover { color: var(--text); } .tabbar button.on { color: #7dd3fc; border-bottom-color: var(--accent); background: none; } .tab { height: 100%; padding: 8px 4px 0; } .tab.scroll { display: flex; flex-direction: column; gap: 16px; padding-right: 10px; } .tab.scroll > * { flex: none; } .tab.col > .table { flex: 1; min-height: 0; } .tab.col > .table + .table { flex: none; max-height: 160px; } .tab > .row, .tab .row.top { gap: 14px; } .tab > .row { flex-wrap: wrap; } .seg { display: flex; height: 14px; border-radius: 7px; background: var(--grid); overflow: hidden; } .legend { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; color: var(--muted); font-size: 11px; white-space: pre; } .legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; } .cores { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; } .cores > div { border: 1px solid; border-radius: 8px; padding: 5px 8px 6px; } .cores small { display: flex; justify-content: space-between; font-size: 10px; } .cores b { font-size: 16px; display: block; margin: 1px 0 5px; } .heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 3px; position: relative; } .heat i { height: 24px; border-radius: 3px; } .heat small { font-size: 10px; align-self: center; white-space: nowrap; } .heat p { position: absolute; inset: 30% 12%; display: grid; place-items: center; background: rgba(13, 17, 28, .8); } .finding { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--border); border-left: 4px solid; border-radius: 10px; padding: 10px 14px; } .finding small { font-weight: 700; text-transform: uppercase; display: block; } .finding b { font-size: 14px; font-weight: 600; } .console { flex: 1; min-height: 0; overflow: auto; background: #080b12; color: #cfe3ff; border-radius: 10px; padding: 10px; white-space: pre-wrap; overflow-wrap: anywhere; } .console .cmd { margin-top: 12px; } .console .cmd b, .prompt { color: var(--accent); } .console .good { color: var(--green); } .console .bad { color: var(--red); } .prompt { font-size: 15px; } .log { margin: 0; height: 60vh; overflow: auto; background: #080b12; color: #cfe3ff; border-radius: 10px; padding: 10px; font-size: 12px; }