ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
feat(ui): restyle the ServerDetail tab bodies to the new look
Juan Denis8a61bd67abb9
diff --git a/frontend/src/pages/ServerDetail.jsx b/frontend/src/pages/ServerDetail.jsxindex c71143ea..f792b49b 100644--- a/frontend/src/pages/ServerDetail.jsx+++ b/frontend/src/pages/ServerDetail.jsx@@ -9,7 +9,7 @@ import { DangerZone } from '../components/DangerZone';import { Button } from '@/components/ui/button';import { Input } from '@/components/ui/input';import { Textarea } from '@/components/ui/textarea';-import { Badge } from '@/components/ui/badge';+import { Pill, Gauge } from '../components/ds';import { Tabs, TabsList, TabsTrigger, TabsContent } from '@/components/ui/tabs';import {Dialog,@@ -33,6 +33,15 @@ import SystemStatusCard from '../components/serverdetail/SystemStatusCard';import EmptyState from '../components/EmptyState';import { BellRing, Boxes, Container, Clock3, Cloud } from 'lucide-react';+// Server status → ds Pill tone (shared by the header pill and the+// Overview "Status" row).+const STATUS_PILL_KIND = {+ online: 'green',+ offline: 'red',+ connecting: 'amber',+ pending: 'gray',+};+const ServerDetail = () => {const { id, tab } = useParams();const navigate = useNavigate();@@ -254,10 +263,9 @@ const ServerDetail = () => {<div className="server-detail-header__identity"><div className="server-detail-header__title-row"><h1>{server.name}</h1>- <span className={`status-pill status-pill--${server.status || 'pending'}`}>- <span className="status-pill__dot" />+ <Pill kind={STATUS_PILL_KIND[server.status] || 'gray'}>{server.status || 'pending'}- </span>+ </Pill><CopyChiplabel="id"value={server.id}@@ -266,16 +274,34 @@ const ServerDetail = () => {/></div><div className="server-detail-header__meta">- <span className="mono">{server.hostname || server.ip_address || 'No endpoint configured'}</span>+ <span className="server-detail-header__meta-item">+ {server.hostname || server.ip_address || 'No endpoint configured'}+ </span>{server.group_name && (- <span className="server-detail-header__chip"><FolderTinyIcon /> {server.group_name}</span>+ <>+ <span className="dotsep">·</span>+ <span className="server-detail-header__meta-item"><FolderTinyIcon /> {server.group_name}</span>+ </>+ )}+ {server.os_type && (+ <>+ <span className="dotsep">·</span>+ <span className="server-detail-header__meta-item">{server.os_type}</span>+ </>+ )}+ {server.agent_version && (+ <>+ <span className="dotsep">·</span>+ <span className="server-detail-header__meta-item">agent {server.agent_version}</span>+ </>)}- {server.os_type && <span className="server-detail-header__chip">{server.os_type}</span>}- {server.agent_version && <span className="server-detail-header__chip">agent {server.agent_version}</span>}{server.last_seen && (- <span className="server-detail-header__chip">- last seen {new Date(server.last_seen).toLocaleString()}- </span>+ <>+ <span className="dotsep">·</span>+ <span className="server-detail-header__meta-item">+ last seen {new Date(server.last_seen).toLocaleString()}+ </span>+ </>)}</div>{server.description && (@@ -412,7 +438,6 @@ const OverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) => {label="Status"value={server.status || 'pending'}tone={isOnline ? 'success' : server.status === 'connecting' ? 'warning' : 'danger'}- accent/><KpiTileicon={<ClockIcon />}@@ -424,21 +449,21 @@ const OverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) => {icon={<CpuIcon />}label="CPU"percent={isOnline ? metrics?.cpu_percent : null}- color="var(--accent-primary)"+ color="var(--accent-bright)"sub={cpuCores ? `${cpuCores} cores` : null}/><KpiGaugeicon={<MemoryIcon />}label="Memory"percent={isOnline ? metrics?.memory_percent : null}- color="#10B981"+ color="var(--cyan)"sub={totalMemory ? formatBytes(totalMemory) : null}/><KpiGaugeicon={<DiskIcon />}label="Disk"percent={isOnline ? metrics?.disk_percent : null}- color="#F59E0B"+ color="var(--green)"sub={totalDisk ? formatBytes(totalDisk) : null}/></div>@@ -458,11 +483,11 @@ const OverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) => {)}<div className="overview-grid">- <div className="info-card info-card--accent">+ <div className="info-card"><h3><ServerIcon /> Server Information</h3><ul className="info-rows"><InfoRow icon={<PulseIcon />} label="Status">- <span className={`status-badge ${server.status}`}>{server.status}</span>+ <Pill kind={STATUS_PILL_KIND[server.status] || 'gray'}>{server.status}</Pill></InfoRow><InfoRow icon={<HostIcon />} label="Hostname" value={server.hostname || 'N/A'} mono /><InfoRow icon={<NetworkIcon />} label="IP Address" value={server.ip_address || 'N/A'} mono />@@ -475,7 +500,7 @@ const OverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) => {</ul></div>- <div className="info-card info-card--accent">+ <div className="info-card"><h3><ChipIcon /> System Information</h3><ul className="info-rows"><InfoRow icon={<OsIcon />} label="Operating System" value={osLabel} />@@ -492,7 +517,7 @@ const OverviewTab = ({ server, metrics, systemInfo, onRefreshServer }) => {</ul></div>- <div className="info-card info-card--accent overview-grid__full">+ <div className="info-card overview-grid__full"><h3><AgentIcon /> Agent Information</h3><ul className="info-rows info-rows--columns"><InfoRow icon={<TagIcon />} label="Agent Version" value={server.agent_version || 'Not installed'} mono />@@ -642,8 +667,8 @@ const InfoRow = ({ icon, label, value, mono, children }) => (</li>);-const KpiTile = ({ icon, label, value, sub, tone, accent }) => (- <div className={`kpi-tile${accent ? ' kpi-tile--accent' : ''}${tone ? ` kpi-tile--${tone}` : ''}`}>+const KpiTile = ({ icon, label, value, sub, tone }) => (+ <div className={`kpi-tile${tone ? ` kpi-tile--${tone}` : ''}`}><div className="kpi-tile__head"><span className="kpi-tile__icon">{icon}</span><span className="kpi-tile__label">{label}</span>@@ -658,10 +683,7 @@ const KpiGauge = ({ icon, label, percent, color, sub }) => {const safe = has ? Math.min(Math.max(percent, 0), 100) : 0;const danger = safe > 85;const warn = safe > 70 && !danger;- const fillColor = danger ? '#EF4444' : warn ? '#F59E0B' : color;- const radius = 22;- const circumference = 2 * Math.PI * radius;- const dash = (safe / 100) * circumference;+ const fillColor = danger ? 'var(--red)' : warn ? 'var(--amber)' : color;return (<div className={`kpi-tile kpi-tile--gauge${danger ? ' kpi-tile--danger' : warn ? ' kpi-tile--warn' : ''}`}>@@ -669,24 +691,9 @@ const KpiGauge = ({ icon, label, percent, color, sub }) => {<span className="kpi-tile__icon">{icon}</span><span className="kpi-tile__label">{label}</span></div>- <div className="kpi-tile__gauge-row">- <svg className="kpi-gauge" width="56" height="56" viewBox="0 0 56 56">- <circle cx="28" cy="28" r={radius} className="kpi-gauge__track" />- <circle- cx="28"- cy="28"- r={radius}- className="kpi-gauge__bar"- stroke={has ? fillColor : 'var(--border-subtle)'}- strokeDasharray={`${dash} ${circumference - dash}`}- transform="rotate(-90 28 28)"- />- </svg>- <div className="kpi-tile__gauge-text">- <span className="kpi-tile__value">{has ? `${safe.toFixed(1)}%` : '—'}</span>- {sub && <span className="kpi-tile__sub">{sub}</span>}- </div>- </div>+ <div className="kpi-tile__value">{has ? `${safe.toFixed(1)}%` : '—'}</div>+ <Gauge className="kpi-tile__meter" value={safe} color={fillColor} />+ {sub && <div className="kpi-tile__sub">{sub}</div>}</div>);};@@ -867,9 +874,9 @@ const DockerTab = ({ serverId, serverStatus, server }) => {</td><td>{container.image}</td><td>- <span className={`status-pill ${isRunning ? 'running' : 'stopped'}`}>+ <Pill kind={isRunning ? 'green' : container.state === 'paused' || container.state === 'restarting' ? 'amber' : 'gray'}>{container.state}- </span>+ </Pill></td><td>{formatPorts(container.ports)}</td><td className="actions-cell">@@ -1097,11 +1104,11 @@ const CronTab = ({ serverId, serverStatus }) => {<div className="cron-tab__header"><div className="cron-tab__status">{status?.available === false ? (- <Badge variant="warning">cron not available: {status.reason || 'unknown'}</Badge>+ <Pill kind="amber">cron not available: {status.reason || 'unknown'}</Pill>) : status?.running === false ? (- <Badge variant="warning">cron daemon not running</Badge>+ <Pill kind="amber">cron daemon not running</Pill>) : (- <Badge variant="success">cron daemon active{status?.daemon ? ` (${status.daemon})` : ''}</Badge>+ <Pill kind="green">cron daemon active{status?.daemon ? ` (${status.daemon})` : ''}</Pill>)}<span className="cron-tab__count">{jobs.length} job{jobs.length === 1 ? '' : 's'}</span></div>@@ -1147,9 +1154,9 @@ const CronTab = ({ serverId, serverStatus }) => {<code className="cron-tab__command">{job.command}</code></td><td>- <span className={`status-pill ${job.enabled ? 'running' : 'stopped'}`}>+ <Pill kind={job.enabled ? 'green' : 'gray'}>{job.enabled ? 'enabled' : 'disabled'}- </span>+ </Pill></td><td className="actions-cell"><button@@ -1462,11 +1469,11 @@ const CloudflaredTab = ({ serverId, serverStatus }) => {<div className="cron-tab__header"><div className="cron-tab__status">{notInstalled ? (- <Badge variant="warning">cloudflared not installed</Badge>+ <Pill kind="amber">cloudflared not installed</Pill>) : notAuthed ? (- <Badge variant="warning">not authenticated — run cloudflared tunnel login</Badge>+ <Pill kind="amber">not authenticated — run cloudflared tunnel login</Pill>) : (- <Badge variant="success">cloudflared ready{status?.version ? ` (${status.version})` : ''}</Badge>+ <Pill kind="green">cloudflared ready{status?.version ? ` (${status.version})` : ''}</Pill>)}<span className="cron-tab__count">{tunnels.length} tunnel{tunnels.length === 1 ? '' : 's'}</span></div>@@ -1993,7 +2000,7 @@ const SettingsTab = ({ server, onUpdate, onRegenerateToken, onDelete }) => {<div key={idx} className="ip-item"><code>{ip}</code>{connectionInfo?.ip_address === ip && (- <Badge variant="success">Current</Badge>+ <Pill kind="green" dot={false}>Current</Pill>)}<buttonclassName="btn-icon danger"diff --git a/frontend/src/styles/pages/_servers.scss b/frontend/src/styles/pages/_servers.scssindex 435bcee6..f49a34f2 100644--- a/frontend/src/styles/pages/_servers.scss+++ b/frontend/src/styles/pages/_servers.scss@@ -945,28 +945,32 @@margin: 0 auto;}+// Mono breadcrumb (redesign) — only ServerDetail renders this class..page-breadcrumb {display: flex;align-items: center;gap: $space-2;- font-size: $font-size-sm;margin-bottom: $space-3;+ font-family: var(--mono);+ font-size: 11.5px;+ letter-spacing: 0.02em;a {- color: $text-tertiary;+ color: var(--text-faint);text-decoration: none;+ transition: color 0.14s;&:hover {- color: $text-primary;+ color: var(--accent-bright);}}.breadcrumb-separator {- color: $text-tertiary;+ color: var(--text-ghost);}span:last-child {- color: $text-secondary;+ color: var(--text-dim);}}@@ -991,14 +995,6 @@}}-.server-detail-tabs {- display: flex;- gap: $space-1;- margin-bottom: $space-6;- border-bottom: 1px solid $border-subtle;- padding-bottom: 0;-}-.tab-btn {background: transparent;border: none;@@ -1106,57 +1102,6 @@}}-// Resource Meters-.metrics-card {- grid-column: span 2;-- @media (max-width: $breakpoint-lg) {- grid-column: span 1;- }-}--.resource-meters {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: $space-6;-- @media (max-width: $breakpoint-md) {- grid-template-columns: 1fr;- }-}--.resource-meter {- .resource-header {- display: flex;- justify-content: space-between;- margin-bottom: $space-2;-- .resource-label {- font-size: $font-size-sm;- color: $text-secondary;- }-- .resource-value {- font-family: $font-mono;- font-size: $font-size-sm;- color: $text-primary;- }- }-- .resource-bar {- height: 8px;- background: $bg-secondary;- border-radius: $radius-full;- overflow: hidden;-- .resource-fill {- height: 100%;- border-radius: $radius-full;- transition: width $transition-base;- }- }-}-.offline-card {grid-column: span 2;@@ -1189,40 +1134,41 @@.offline-notice {text-align: center;padding: $space-12;- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;+ background: var(--surface);+ border: 1px dashed var(--border);+ border-radius: var(--radius-lg);svg {- color: $text-tertiary;+ color: var(--text-ghost);margin-bottom: $space-4;}h4 {font-size: $font-size-lg;- color: $text-primary;+ color: var(--text);margin: 0 0 $space-2;}p {- color: $text-secondary;+ color: var(--text-dim);margin: 0;+ font-size: 13px;}}// Docker Tab.docker-tab {- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);overflow: hidden;}// Cron Tab — same shell as docker, with a header row for status + add..cron-tab {- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);overflow: hidden;&__header {@@ -1231,7 +1177,7 @@justify-content: space-between;gap: $space-4;padding: $space-3 $space-4;- border-bottom: 1px solid $border-subtle;+ border-bottom: 1px solid var(--border-soft);}&__status {@@ -1241,8 +1187,9 @@}&__count {- color: $text-tertiary;- font-size: $font-size-sm;+ color: var(--text-faint);+ font-family: var(--mono);+ font-size: 11.5px;}&__actions {@@ -1251,19 +1198,20 @@}&__name {- color: $text-primary;+ color: var(--text);font-weight: $font-weight-medium;margin-bottom: 2px;}&__command {- font-size: $font-size-xs;- color: $text-secondary;+ font-family: var(--mono);+ font-size: 12px;+ color: var(--text-dim);word-break: break-all;}&__description {- color: $text-tertiary;+ color: var(--text-faint);font-size: $font-size-xs;margin-top: 2px;}@@ -1296,31 +1244,31 @@// Cloudflared tab — reuses .cron-tab__* helpers; add only the auth// hint banner since it's unique to this surface..cloudflared-tab {- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);overflow: hidden;&__hint {margin: $space-4;padding: $space-3 $space-4;- background: rgba($accent-primary, 0.08);- border: 1px solid rgba($accent-primary, 0.3);- border-radius: $radius-md;- color: $text-secondary;- font-size: $font-size-sm;+ background: var(--accent-bg-soft);+ border: 1px solid fade($accent-primary-raw, 22%);+ border-radius: var(--radius-sm);+ color: var(--text-dim);+ font-size: 13px;code {- background: $bg-elevated;+ background: var(--surface-2);padding: 0 $space-1;- border-radius: $radius-sm;- font-family: $font-mono;- font-size: $font-size-xs;- color: $text-primary;+ border-radius: 4px;+ font-family: var(--mono);+ font-size: $font-size-sm;+ color: var(--text);}a {- color: $accent-primary;+ color: var(--accent-bright);text-decoration: underline;}}@@ -1328,33 +1276,41 @@.docker-sub-tabs {display: flex;- border-bottom: 1px solid $border-subtle;- padding: 0 $space-4;+ gap: 2px;+ border-bottom: 1px solid var(--border-soft);+ padding: 0 $space-3;}.sub-tab {background: transparent;border: none;- color: $text-tertiary;- font-size: $font-size-sm;- padding: $space-4;+ color: var(--text-faint);+ font-size: 13px;+ font-weight: $font-weight-medium;+ padding: 11px 14px;cursor: pointer;border-bottom: 2px solid transparent;margin-bottom: -1px;+ transition: color 0.14s;&:hover {- color: $text-primary;+ color: var(--text-dim);}&.active {- color: $text-primary;- border-bottom-color: $accent-primary;+ color: var(--text);+ border-bottom-color: var(--accent);}}.containers-list,.images-list {- padding: $space-4;+ padding: 0;++ .empty-state {+ border: none;+ background: transparent;+ }}.data-table {@@ -1477,17 +1433,18 @@}.live-stat-card {- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-lg;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);padding: $space-5;h4 {- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: 10.5px;font-weight: $font-weight-semibold;- color: $text-tertiary;+ color: var(--text-faint);text-transform: uppercase;- letter-spacing: 0.05em;+ letter-spacing: 0.08em;margin: 0 0 $space-4;}}@@ -1511,8 +1468,11 @@.live-stat-label {display: block;- font-size: $font-size-xs;- color: $text-tertiary;+ font-family: var(--mono);+ font-size: 10.5px;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ color: var(--text-faint);margin-bottom: $space-1;}@@ -1520,8 +1480,9 @@display: block;font-size: $font-size-md;font-weight: $font-weight-semibold;- font-family: $font-mono;- color: $text-primary;+ font-family: var(--mono);+ letter-spacing: -0.02em;+ color: var(--text);}}@@ -1873,16 +1834,20 @@}.severity-badge {- font-size: $font-size-xs;+ font-family: var(--mono);+ font-size: 10px;font-weight: $font-weight-semibold;+ letter-spacing: 0.06em;text-transform: uppercase;padding: 2px $space-2;- border-radius: $radius-sm;+ border-radius: 5px;- &.critical { background: fade($danger, 15%); color: $danger; }- &.high { background: fade($warning, 15%); color: $warning; }- &.medium { background: fade($accent-primary-raw, 15%); color: $accent-primary; }- &.low { background: $bg-hover; color: $text-tertiary; }+ &.critical { background: var(--red-bg); color: var(--red); }+ &.high { background: var(--amber-bg); color: var(--amber); }+ &.medium { background: var(--accent-bg); color: var(--accent-bright); }+ &.warning { background: var(--amber-bg); color: var(--amber); }+ &.low,+ &.info { background: var(--surface-3); color: var(--text-faint); }}.alert-item-details {@@ -3365,22 +3330,33 @@// SERVER DETAIL — REDESIGNED HEADER// ============================================+// Demo `.detail-header` look: flat surface gradient, soft border, radial+// accent wash top-left, mono dotsep meta. All existing regions kept+// (avatar, title row + copy-chip, meta, description, actions)..server-detail-header {+ position: relative;display: flex;align-items: flex-start;justify-content: space-between;gap: $space-5;- padding: $space-6;+ padding: 22px;margin-bottom: $space-5;- background:- linear-gradient(135deg, rgba($accent-primary-raw, 0.10), transparent 42%),- $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-2xl;- box-shadow: $shadow-sm;+ background: linear-gradient(120deg, var(--surface) 0%, var(--surface-2) 100%);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius-lg);+ overflow: hidden;flex-wrap: wrap;+ &::before {+ content: '';+ position: absolute;+ inset: 0;+ background: radial-gradient(420px 200px at 0% 0%, fade($accent-primary-raw, 8%), transparent 70%);+ pointer-events: none;+ }+&__main {+ position: relative;display: flex;align-items: flex-start;gap: $space-4;@@ -3388,53 +3364,36 @@flex: 1;}- &__transport-banner {- flex-basis: 100%;- margin-top: $space-3;- padding: $space-3 $space-4;- background: $info-bg;- border: 1px solid $info-border;- border-radius: $radius-lg;- color: $text-secondary;- font-size: $font-size-sm;- line-height: 1.5;-- strong {- color: $text-primary;- margin-right: $space-2;- }- }-&__avatar {flex-shrink: 0;- width: 56px;- height: 56px;+ width: 54px;+ height: 54px;display: flex;align-items: center;justify-content: center;- border-radius: $radius-lg;- background: $bg-elevated;- border: 1px solid $border-subtle;- color: $text-secondary;- font-family: $font-mono;+ border-radius: 14px;+ background: linear-gradient(150deg, var(--surface-3), var(--surface-2));+ border: 1px solid var(--border);+ color: var(--text-dim);+ font-family: var(--mono);font-weight: $font-weight-bold;- font-size: $font-size-2xl;+ font-size: $font-size-xl;&--online {- background: $success-bg;- border-color: $success-border;- color: $success;- box-shadow: 0 0 0 4px fade($success, 8%), 0 0 24px fade($success, 14%);+ background: var(--green-bg);+ border-color: fade($success, 25%);+ color: var(--green);+ box-shadow: 0 0 0 4px fade($success, 7%), 0 0 24px fade($success, 12%);}&--offline {- background: $danger-bg;- border-color: $danger-border;- color: $danger;+ background: var(--red-bg);+ border-color: fade($danger, 25%);+ color: var(--red);}&--connecting {- background: $warning-bg;- border-color: $warning-border;- color: $warning;+ background: var(--amber-bg);+ border-color: fade($warning, 25%);+ color: var(--amber);}}@@ -3446,15 +3405,15 @@&__title-row {display: flex;align-items: center;- gap: $space-3;+ gap: 11px;flex-wrap: wrap;h1 {margin: 0;- font-size: $font-size-3xl;- line-height: 1.1;+ font-size: 19px;+ line-height: 1.2;letter-spacing: -0.02em;- color: $text-primary;+ color: var(--text);font-weight: $font-weight-semibold;}}@@ -3462,33 +3421,34 @@.copy-chip {display: inline-flex;align-items: center;- gap: $space-2;+ gap: 7px;padding: 2px $space-2;- background: $bg-elevated;- border: 1px solid $border-subtle;- border-radius: $radius-md;- color: $text-tertiary;+ background: var(--surface-2);+ border: 1px solid var(--border-soft);+ border-radius: 6px;+ color: var(--text-faint);font-size: $font-size-xs;cursor: pointer;transition: all 0.12s ease;&:hover {- color: $text-primary;- border-color: $border-active;- background: $bg-card;+ color: var(--text);+ border-color: var(--border-strong);+ background: var(--surface-3);}&__label {+ font-family: var(--mono);text-transform: uppercase;- letter-spacing: 0.05em;+ letter-spacing: 0.06em;font-weight: $font-weight-semibold;- color: $text-tertiary;+ color: var(--text-ghost);}&__value {- color: $text-secondary;- font-family: $font-mono;- font-size: $font-size-xs;+ color: var(--text-dim);+ font-family: var(--mono);+ font-size: 11px;background: transparent;padding: 0;max-width: 22ch;@@ -3509,43 +3469,40 @@&__meta {display: flex;align-items: center;- gap: $space-2;+ gap: 9px;flex-wrap: wrap;- margin-top: $space-2;- color: $text-tertiary;- font-size: $font-size-xs;+ margin-top: 8px;+ font-family: var(--mono);+ font-size: 12px;+ color: var(--text-dim);- .mono {- font-family: $font-mono;- color: $text-secondary;- font-size: $font-size-sm;+ .dotsep {+ color: var(--text-ghost);}}- &__chip {+ &__meta-item {display: inline-flex;align-items: center;gap: 5px;- padding: 3px 8px;- border-radius: $radius-full;- background: $bg-elevated;- border: 1px solid $border-subtle;- color: $text-secondary;- font-size: 11px;- white-space: nowrap;+ min-width: 0;- svg { color: $text-tertiary; }+ svg {+ color: var(--text-faint);+ flex-shrink: 0;+ }}&__description {margin: $space-3 0 0;- color: $text-secondary;- font-size: $font-size-sm;+ color: var(--text-dim);+ font-size: 13px;line-height: $line-height-relaxed;max-width: 720px;}&__actions {+ position: relative;display: flex;gap: $space-2;flex-shrink: 0;@@ -3561,11 +3518,6 @@}}-// Tighten existing tabs-.server-detail-tabs {- margin-top: -$space-3;-}-// Refine overview info cards (less marketing, more dashboard).overview-tab .info-card {padding: $space-5;@@ -3621,134 +3573,74 @@}}+// Demo `.spec-card` look: quiet surface tile, mono uppercase label, big mono+// value. Gauge tiles carry a thin .sk-gauge meter (CPU=accent-bright,+// RAM=cyan, Disk=green; red>85 / amber>70 thresholds set in JSX)..kpi-tile {position: relative;display: flex;flex-direction: column;- gap: $space-2;- padding: $space-4;- background:- linear-gradient(180deg, rgba(255,255,255,0.02), transparent 60%),- $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-xl;- box-shadow: $shadow-sm;- transition: border-color $transition-fast, transform $transition-fast, box-shadow $transition-fast;- overflow: hidden;-- &::before {- content: '';- position: absolute;- inset: 0 0 auto 0;- height: 2px;- background: linear-gradient(90deg, transparent, rgba($accent-primary-raw, 0.6), transparent);- opacity: 0.5;- }+ gap: 7px;+ padding: $space-4 17px;+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ transition: border-color $transition-fast;&:hover {- border-color: $border-active;- transform: translateY(-1px);- box-shadow: $shadow-md;+ border-color: var(--border-strong);}&__head {display: flex;align-items: center;- gap: $space-2;- color: $text-tertiary;+ gap: 7px;+ color: var(--text-faint);}&__icon {display: inline-flex;align-items: center;justify-content: center;- width: 22px;- height: 22px;- border-radius: $radius-sm;- background: $bg-elevated;- border: 1px solid $border-subtle;- color: $text-secondary;+ color: var(--text-ghost);- svg { width: 12px; height: 12px; }+ svg { width: 13px; height: 13px; }}&__label {- font-size: 11px;- font-weight: $font-weight-bold;+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;letter-spacing: 0.08em;text-transform: uppercase;- color: $text-tertiary;+ color: var(--text-faint);}&__value {- font-size: $font-size-xl;+ font-family: var(--mono);+ font-size: 21px;font-weight: $font-weight-semibold;- color: $text-primary;- line-height: 1.2;- font-feature-settings: "tnum";+ letter-spacing: -0.02em;+ color: var(--text);+ line-height: 1.15;text-transform: capitalize;}&__sub {- font-size: $font-size-xs;- color: $text-tertiary;- }-- &__gauge-row {- display: flex;- align-items: center;- gap: $space-3;- }-- &__gauge-text {- display: flex;- flex-direction: column;- gap: 2px;- min-width: 0;-- .kpi-tile__value { font-size: $font-size-lg; font-family: $font-mono; }- }-- // Tone variants- &--accent::before {- background: linear-gradient(90deg, transparent, rgba($accent-primary-raw, 0.9), transparent);- opacity: 0.9;- }-- &--success {- .kpi-tile__icon { background: $success-bg; border-color: $success-border; color: $success; }- .kpi-tile__value { color: $success; }- &::before { background: linear-gradient(90deg, transparent, $success, transparent); opacity: 0.9; }- }-- &--danger {- .kpi-tile__icon { background: $danger-bg; border-color: $danger-border; color: $danger; }- .kpi-tile__value { color: $danger; }- &::before { background: linear-gradient(90deg, transparent, $danger, transparent); opacity: 0.9; }- }-- &--warning, &--warn {- .kpi-tile__icon { background: $warning-bg; border-color: $warning-border; color: $warning; }- &::before { background: linear-gradient(90deg, transparent, $warning, transparent); opacity: 0.9; }+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);}-}--.kpi-gauge {- flex-shrink: 0;- transform: rotate(0deg);- &__track {- fill: none;- stroke: $bg-elevated;- stroke-width: 6;+ &__meter {+ margin-top: 2px;}- &__bar {- fill: none;- stroke-width: 6;- stroke-linecap: round;- transition: stroke-dasharray $transition-base, stroke 0.2s ease;- }+ // Tone variants (status tile + gauge thresholds)+ &--success .kpi-tile__value { color: var(--green); }+ &--danger .kpi-tile__value { color: var(--red); }+ &--warning .kpi-tile__value,+ &--warn .kpi-tile__value { color: var(--amber); }}// Iconified info rows replacing plain InfoList rows in overview cards@@ -3785,14 +3677,17 @@}}+// Demo `.info-row` key/value spec: faint mono key, mono value right-aligned,+// soft separators. (Only ServerDetail renders this class.).info-row {display: grid;grid-template-columns: 18px minmax(0, 1fr) auto;align-items: center;gap: $space-3;- padding: $space-3 0;- border-bottom: 1px dashed $border-subtle;+ padding: 11px 0;+ border-bottom: 1px solid var(--border-soft);min-height: 40px;+ font-size: 13px;&:last-child { border-bottom: 0; }@@ -3800,19 +3695,20 @@display: inline-flex;align-items: center;justify-content: center;- color: $text-tertiary;+ color: var(--text-ghost);svg { width: 14px; height: 14px; }}&__label {- font-size: $font-size-sm;- color: $text-secondary;+ font-size: 12.5px;+ color: var(--text-faint);}&__value {- font-size: $font-size-sm;- color: $text-primary;+ font-family: var(--mono);+ font-size: 12.5px;+ color: var(--text);text-align: right;max-width: 100%;overflow: hidden;@@ -3820,9 +3716,8 @@white-space: nowrap;&.mono {- font-family: $font-mono;- font-size: $font-size-xs;- color: $text-secondary;+ font-size: 12px;+ color: var(--text-dim);}}}@@ -3831,19 +3726,6 @@grid-column: 1 / -1;}-.info-card--accent {- position: relative;- overflow: hidden;-- &::before {- content: '';- position: absolute;- inset: 0 0 auto 0;- height: 1px;- background: linear-gradient(90deg, transparent, rgba($accent-primary-raw, 0.5), transparent);- }-}-// ============================================// TAB BADGE (notification count on tabs)// ============================================@@ -3853,26 +3735,21 @@justify-content: center;margin-left: $space-2;min-width: 18px;- height: 18px;+ height: 17px;padding: 0 6px;border-radius: $radius-full;- background: $warning;- color: #1a1a1a;+ background: var(--amber-bg);+ color: var(--amber);+ font-family: var(--mono);font-size: 10px;- font-weight: $font-weight-bold;+ font-weight: $font-weight-semibold;line-height: 1;font-feature-settings: "tnum";}// ============================================-// NOTIFICATIONS TAB+// NOTIFICATIONS / ALERTS TAB// ============================================-.notifications-tab {- display: flex;- flex-direction: column;- gap: $space-4;-}-.notifications-list {list-style: none;margin: 0;@@ -3967,25 +3844,29 @@gap: $space-2;margin-bottom: $space-3;+ // Mono-uppercase eyebrow section label (redesign)h3 {margin: 0;- font-size: $font-size-base;+ font-family: var(--mono);+ font-size: 10.5px;font-weight: $font-weight-semibold;- color: $text-primary;- letter-spacing: 0.02em;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);}}&__count {display: inline-flex;align-items: center;- height: 20px;+ height: 18px;padding: 0 $space-2;border-radius: $radius-full;- background: $bg-elevated;- border: 1px solid $border-subtle;- color: $text-secondary;- font-size: $font-size-xs;+ background: var(--surface-2);+ border: 1px solid var(--border-soft);+ color: var(--text-dim);+ font-family: var(--mono);+ font-size: 10.5px;font-weight: $font-weight-medium;line-height: 1;}@@ -4031,3 +3912,372 @@}}}++// ============================================+// SERVER DETAIL — REDESIGNED TAB BODIES (scoped)+// ============================================+// Everything below is scoped under .server-detail-page on purpose: the base+// class names (.tabs/.tab, .data-table, .info-card, .overview-tab,+// .form-section, .notification, .server-services__*, .server-packages__*)+// are ALSO rendered by other pages (Git, Firewall, FTP, Monitoring, security+// tabs, settings) or styled by other partials. Scoping keeps this restyle+// from leaking outside the ServerDetail route.+.server-detail-page {++ // ---- In-page tab strip (shadcn Tabs renders .tabs / .tab) ----+ // Demo `.wp-tab` spec: 13px labels, faint → dim → active text + accent+ // underline. Tab ids/keys and deep-linking are untouched (JSX as-is).+ .tabs {+ gap: 2px;+ margin-bottom: $space-5;+ border-bottom: 1px solid var(--border-soft);+ }++ .tab {+ padding: 11px 14px;+ font-size: 13px;+ font-weight: $font-weight-medium;+ color: var(--text-faint);++ &:hover {+ color: var(--text-dim);+ }++ &.active,+ &[data-state='active'] {+ color: var(--text);+ border-bottom-color: var(--accent);+ }+ }++ // ---- Dense tables (docker containers/images, cron jobs, tunnels) ----+ // .sk-dtable spec applied to the existing .data-table markup.+ .data-table {+ font-size: 13px;++ th {+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.06em;+ color: var(--text-faint);+ padding: 11px $space-4;+ border-bottom: 1px solid var(--border);+ white-space: nowrap;+ }++ td {+ padding: 13px $space-4;+ font-size: 13px;+ color: var(--text-dim);+ border-bottom: 1px solid var(--border-soft);+ vertical-align: middle;+ }++ tbody tr {+ transition: background 0.12s;++ &:hover {+ background: var(--surface-2);+ }+ }++ .container-name {+ color: var(--text);+ font-weight: 550;+ }++ .container-id {+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);+ margin-top: 2px;+ }++ .mono {+ font-family: var(--mono);+ font-size: 12px;+ color: var(--text-dim);+ }+ }++ // ---- Overview info cards (quiet surface + mono eyebrow) ----+ // `> h3` on purpose: SystemStatusCard nests its own h3 (styled in+ // _server-packages.scss) and must not get a second eyebrow border.+ .overview-tab .info-card {+ padding: 16px 17px;+ border-radius: var(--radius);+ background: var(--surface);+ border: 1px solid var(--border-soft);+ box-shadow: none;+ transition: border-color $transition-fast;++ &:hover {+ border-color: var(--border-strong);+ }++ > h3 {+ display: flex;+ align-items: center;+ gap: 7px;+ margin: 0 0 $space-2;+ padding-bottom: 10px;+ border-bottom: 1px solid var(--border-soft);+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ text-transform: uppercase;+ color: var(--text-faint);++ svg {+ width: 13px;+ height: 13px;+ color: var(--accent-bright);+ }+ }+ }++ .offline-message {+ svg { color: var(--text-ghost); }+ h4 { color: var(--text); }+ p { color: var(--text-dim); font-size: 13px; }+ }++ // ---- Settings tab (quiet form cards, accent-washed icon chips) ----+ .form-section {+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius-lg);+ box-shadow: none;+ }++ .form-section--accent {+ &::before {+ height: 2px;+ background: linear-gradient(90deg, var(--accent), transparent 60%);+ opacity: 0.45;+ }++ .form-section__header h3 {+ font-size: $font-size-md;+ color: var(--text);+ }++ .form-section__header .section-description {+ color: var(--text-faint);+ font-size: 12.5px;+ }++ .form-section__icon {+ background: var(--accent-bg);+ border-color: fade($accent-primary-raw, 22%);+ color: var(--accent-bright);+ border-radius: 9px;+ }+ }++ .security-info-bar {+ background: var(--surface-2);+ border-color: var(--border-soft);+ border-radius: var(--radius);+ }++ .security-info-item {+ .security-info-label {+ font-family: var(--mono);+ font-size: 10.5px;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ color: var(--text-faint);+ margin-bottom: 5px;+ }++ .security-info-value code {+ font-family: var(--mono);+ font-size: 12px;+ background: var(--surface-3);+ color: var(--text);+ }+ }++ .ip-item {+ background: var(--surface-2);+ border-color: var(--border-soft);+ border-radius: var(--radius-sm);++ code {+ font-size: 12px;+ color: var(--text);+ }+ }++ .ip-empty {+ background: var(--surface-2);+ border-color: var(--border);+ color: var(--text-faint);+ font-family: var(--mono);+ font-size: 12px;+ }++ .key-rotation-hint {+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);+ }++ .security-warning {+ background: var(--amber-bg);+ border-color: fade($warning, 30%);+ color: var(--amber);+ }++ .security-notice {+ font-family: var(--mono);+ font-size: 11px;+ color: var(--text-faint);+ }++ // ---- Alerts tab notifications (scoped: Monitoring + settings also+ // render .notification and must keep their current look) ----+ .alerts-tab .notification {+ background: var(--surface);+ border: 1px solid var(--border-soft);+ border-radius: var(--radius);+ box-shadow: none;++ &__icon {+ border-radius: 8px;+ }++ &__title {+ font-size: 13.5px;+ color: var(--text);+ }++ &__message {+ font-size: 12.5px;+ color: var(--text-dim);+ }++ &__time {+ font-family: var(--mono);+ font-size: 10.5px;+ color: var(--text-faint);+ }++ &--info {+ border-color: var(--border-soft);+ .notification__icon { background: var(--accent-bg); color: var(--accent-bright); }+ }++ &--warning {+ border-color: fade($warning, 28%);+ .notification__icon { background: var(--amber-bg); color: var(--amber); }+ }++ &--danger {+ border-color: fade($danger, 28%);+ .notification__icon { background: var(--red-bg); color: var(--red); }+ }+ }++ // ---- Services (systemd) tab — dense-table skin over the component's+ // base styles in _server-packages.scss / _server-services.scss ----+ .server-services__table {+ font-size: 13px;++ th {+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.06em;+ text-transform: uppercase;+ color: var(--text-faint);+ padding: 11px $space-3;+ border-bottom: 1px solid var(--border);+ white-space: nowrap;+ }++ td {+ padding: 11px $space-3;+ font-size: 13px;+ color: var(--text-dim);+ border-bottom: 1px solid var(--border-soft);+ }++ tbody tr {+ transition: background 0.12s;++ &:hover {+ background: var(--surface-2);+ }+ }++ .mono {+ font-family: var(--mono);+ font-size: 12px;+ color: var(--text);+ }+ }++ // ---- Packages tab — mono eyebrows + token chips (base styles live in+ // _server-packages.scss and use shadcn vars; retint to the new tokens) ----+ .server-packages {+ &__presets h3,+ &__results h3,+ &__installed h3 {+ font-family: var(--mono);+ font-size: 10.5px;+ font-weight: $font-weight-semibold;+ letter-spacing: 0.08em;+ color: var(--text-faint);+ }++ &__chip {+ background: var(--surface-2);+ border-color: var(--border);+ color: var(--text-dim);+ font-family: var(--mono);+ font-size: 12px;++ &:hover {+ background: var(--accent-bg);+ border-color: var(--accent-dim);+ color: var(--accent-bright);+ }+ }++ &__list,+ &__raw,+ &__remove-tip {+ border-color: var(--border-soft);+ border-radius: var(--radius-sm);+ }++ &__raw {+ background: var(--bg-code);+ color: var(--text-dim);+ font-size: 12px;+ }++ &__list-item {+ border-bottom-color: var(--border-soft);++ &:hover {+ background: var(--surface-2);+ }+ }++ &__list-name {+ font-family: var(--mono);+ font-size: 12px;+ color: var(--text-dim);+ }++ &__remove-tip {+ background: var(--surface-2);+ font-size: 12.5px;+ }+ }+}