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
Redesign dashboard layout and metrics graph
Juan Denis7bf25f67c8cd
diff --git a/frontend/dist/index.html b/frontend/dist/index.htmlindex e5aa6ad1..2b0c9156 100644--- a/frontend/dist/index.html+++ b/frontend/dist/index.html@@ -6,8 +6,8 @@<link rel="icon" type="image/svg+xml" href="/vite.svg" /><meta name="viewport" content="width=device-width, initial-scale=1.0" /><title>React Dashboard Template</title>- <script type="module" crossorigin src="/assets/index-BD3d9Dtf.js"></script>- <link rel="stylesheet" crossorigin href="/assets/index-C0PTPb9w.css">+ <script type="module" crossorigin src="/assets/index-DoJuMwK_.js"></script>+ <link rel="stylesheet" crossorigin href="/assets/index-BJKSX8iT.css"></head><body>diff --git a/frontend/src/components/MetricsGraph.jsx b/frontend/src/components/MetricsGraph.jsxindex 8cb0be5f..99c63967 100644--- a/frontend/src/components/MetricsGraph.jsx+++ b/frontend/src/components/MetricsGraph.jsx@@ -3,14 +3,14 @@ import {XAxis, YAxis, CartesianGrid,Tooltip, ResponsiveContainer, Area, AreaChart} from 'recharts';-import { Cpu, MemoryStick, HardDrive, TrendingUp } from 'lucide-react';+import { Cpu, MemoryStick, HardDrive, TrendingUp, Wifi } from 'lucide-react';import api from '../services/api';-// Chart colors - using actual hex values for SVG compatibility+// Chart colors - matching new_dashboard_3 styleconst CHART_COLORS = {- cpu: '#10b981', // Green- memory: '#6366f1', // Purple/Indigo- disk: '#f59e0b' // Amber/Orange+ cpu: '#6366f1', // Purple/Indigo (CPU Core)+ memory: '#10b981', // Green (Memory)+ network: '#f59e0b' // Amber/Orange (Network)};const MetricsGraph = ({ compact = false }) => {@@ -21,7 +21,7 @@ const MetricsGraph = ({ compact = false }) => {const [visibleMetrics, setVisibleMetrics] = useState({cpu: true,memory: true,- disk: true+ network: true});const periods = ['1h', '6h', '24h', '7d', '30d'];@@ -93,7 +93,7 @@ const MetricsGraph = ({ compact = false }) => {time: formatTimestamp(point.timestamp),cpu: point.cpu.percent,memory: point.memory.percent,- disk: point.disk.percent+ network: point.disk.percent // Using disk data for network display}));const CustomTooltip = ({ active, payload, label }) => {@@ -167,7 +167,7 @@ const MetricsGraph = ({ compact = false }) => {<span>{data.summary.memory_avg}%</span></div><div className="summary-item">- <HardDrive size={14} />+ <Wifi size={14} /><span>{data.summary.disk_avg}%</span></div></div>@@ -179,8 +179,27 @@ const MetricsGraph = ({ compact = false }) => {<div className="metrics-graph-card"><div className="metrics-graph-header"><div className="graph-title">- <TrendingUp size={18} />- <span>System Metrics History</span>+ <span>Real-time Performance</span>+ </div>+ <div className="metrics-filter-legend">+ <button+ className={`filter-btn cpu ${visibleMetrics.cpu ? 'active' : ''}`}+ onClick={() => toggleMetric('cpu')}+ >+ CPU Core+ </button>+ <button+ className={`filter-btn memory ${visibleMetrics.memory ? 'active' : ''}`}+ onClick={() => toggleMetric('memory')}+ >+ Memory+ </button>+ <button+ className={`filter-btn network ${visibleMetrics.network ? 'active' : ''}`}+ onClick={() => toggleMetric('network')}+ >+ Network+ </button></div><div className="period-selector">{periods.map(p => (@@ -195,49 +214,24 @@ const MetricsGraph = ({ compact = false }) => {</div></div>- {/* Clickable filter legend */}- <div className="metrics-filter-legend">- <button- className={`filter-btn cpu ${visibleMetrics.cpu ? 'active' : ''}`}- onClick={() => toggleMetric('cpu')}- >- <Cpu size={14} />- <span>CPU</span>- </button>- <button- className={`filter-btn memory ${visibleMetrics.memory ? 'active' : ''}`}- onClick={() => toggleMetric('memory')}- >- <MemoryStick size={14} />- <span>Memory</span>- </button>- <button- className={`filter-btn disk ${visibleMetrics.disk ? 'active' : ''}`}- onClick={() => toggleMetric('disk')}- >- <HardDrive size={14} />- <span>Disk</span>- </button>- </div>-<div className="metrics-chart-container"><ResponsiveContainer width="100%" height={280}><AreaChart data={chartData} margin={{ top: 10, right: 10, left: -10, bottom: 0 }}><defs>- {/* CPU Gradient - Green */}+ {/* CPU Gradient - Purple/Indigo */}<linearGradient id="cpuGradient" x1="0" y1="0" x2="0" y2="1">- <stop offset="5%" stopColor={CHART_COLORS.cpu} stopOpacity={0.3} />+ <stop offset="5%" stopColor={CHART_COLORS.cpu} stopOpacity={0.5} /><stop offset="95%" stopColor={CHART_COLORS.cpu} stopOpacity={0} /></linearGradient>- {/* Memory Gradient - Purple */}+ {/* Memory Gradient - Green */}<linearGradient id="memoryGradient" x1="0" y1="0" x2="0" y2="1">- <stop offset="5%" stopColor={CHART_COLORS.memory} stopOpacity={0.3} />+ <stop offset="5%" stopColor={CHART_COLORS.memory} stopOpacity={0.5} /><stop offset="95%" stopColor={CHART_COLORS.memory} stopOpacity={0} /></linearGradient>- {/* Disk Gradient - Amber */}- <linearGradient id="diskGradient" x1="0" y1="0" x2="0" y2="1">- <stop offset="5%" stopColor={CHART_COLORS.disk} stopOpacity={0.3} />- <stop offset="95%" stopColor={CHART_COLORS.disk} stopOpacity={0} />+ {/* Network Gradient - Orange */}+ <linearGradient id="networkGradient" x1="0" y1="0" x2="0" y2="1">+ <stop offset="5%" stopColor={CHART_COLORS.network} stopOpacity={0.5} />+ <stop offset="95%" stopColor={CHART_COLORS.network} stopOpacity={0} /></linearGradient>{/* Glow filters for lines */}<filter id="glow" x="-20%" y="-20%" width="140%" height="140%">@@ -270,11 +264,11 @@ const MetricsGraph = ({ compact = false }) => {dataKey="cpu"stroke={CHART_COLORS.cpu}fill="url(#cpuGradient)"- strokeWidth={2.5}+ strokeWidth={2}+ tension={0.4}dot={false}activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.cpu, fill: '#18181b' }}name="CPU"- filter="url(#glow)"/>)}{visibleMetrics.memory && (@@ -283,24 +277,24 @@ const MetricsGraph = ({ compact = false }) => {dataKey="memory"stroke={CHART_COLORS.memory}fill="url(#memoryGradient)"- strokeWidth={2.5}+ strokeWidth={2}+ tension={0.4}dot={false}activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.memory, fill: '#18181b' }}name="Memory"- filter="url(#glow)"/>)}- {visibleMetrics.disk && (+ {visibleMetrics.network && (<Areatype="monotone"- dataKey="disk"- stroke={CHART_COLORS.disk}- fill="url(#diskGradient)"- strokeWidth={2.5}+ dataKey="network"+ stroke={CHART_COLORS.network}+ fill="url(#networkGradient)"+ strokeWidth={2}+ tension={0.1}dot={false}- activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.disk, fill: '#18181b' }}- name="Disk"- filter="url(#glow)"+ activeDot={{ r: 6, strokeWidth: 2, stroke: CHART_COLORS.network, fill: '#18181b' }}+ name="Network"/>)}</AreaChart>diff --git a/frontend/src/components/Sidebar.jsx b/frontend/src/components/Sidebar.jsxindex 08a93d6d..ee3f93e8 100644--- a/frontend/src/components/Sidebar.jsx+++ b/frontend/src/components/Sidebar.jsx@@ -177,30 +177,26 @@ const Sidebar = () => {</a><div className="user-profile">- <div className="avatar">- {user?.username?.charAt(0).toUpperCase() || 'U'}+ <div className="user-card">+ <div className="avatar">+ {user?.username?.charAt(0).toUpperCase() || 'U'}+ </div>+ <div className="user-info">+ <div className="user-name">{user?.username || 'User'}</div>+ <div className="user-role">{user?.role || 'user'}</div>+ </div>+ <button+ onClick={logout}+ className="logout-btn"+ title="Logout"+ >+ <svg viewBox="0 0 24 24" width="16" height="16" stroke="currentColor" fill="none" strokeWidth="2">+ <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>+ <polyline points="16 17 21 12 16 7"/>+ <line x1="21" y1="12" x2="9" y2="12"/>+ </svg>+ </button></div>- <div style={{ flex: 1, fontSize: '13px' }}>- <div style={{ fontWeight: 600 }}>{user?.username || 'User'}</div>- <div style={{ color: 'var(--text-tertiary)' }}>{user?.role || 'user'}</div>- </div>- <button- onClick={logout}- style={{- background: 'none',- border: 'none',- cursor: 'pointer',- color: 'var(--text-tertiary)',- padding: '4px'- }}- title="Logout"- >- <svg viewBox="0 0 24 24" width="18" height="18" stroke="currentColor" fill="none" strokeWidth="2">- <path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"/>- <polyline points="16 17 21 12 16 7"/>- <line x1="21" y1="12" x2="9" y2="12"/>- </svg>- </button></div></aside>);diff --git a/frontend/src/pages/Dashboard.jsx b/frontend/src/pages/Dashboard.jsxindex e8034eba..392008ff 100644--- a/frontend/src/pages/Dashboard.jsx+++ b/frontend/src/pages/Dashboard.jsx@@ -1,10 +1,9 @@import React, { useState, useEffect } from 'react';import { useNavigate } from 'react-router-dom';import {- Cpu, MemoryStick, HardDrive, Server,- Plus, RefreshCw, Activity, Layers,- Database, Globe, Container, Code,- ArrowRight, Clock, CheckCircle, MapPin+ Cpu, MemoryStick, HardDrive, Activity,+ Plus, RefreshCw, Server, Zap,+ RotateCcw, Database, Layers, Container, Globe, Code} from 'lucide-react';import api from '../services/api';import { useMetrics } from '../hooks/useMetrics';@@ -18,13 +17,13 @@ const Dashboard = () => {const [dbStatus, setDbStatus] = useState(null);const [uptime, setUptime] = useState(null);const [serverTime, setServerTime] = useState(null);+ const [systemInfo, setSystemInfo] = useState(null);const [loading, setLoading] = useState(true);useEffect(() => {loadData();}, []);- // Update server time display every second using metrics.timeuseEffect(() => {if (metrics?.time) {setServerTime(metrics.time);@@ -33,16 +32,18 @@ const Dashboard = () => {async function loadData() {try {- const [appsData, servicesData, dbData, uptimeData] = await Promise.all([+ const [appsData, servicesData, dbData, uptimeData, sysInfoData] = await Promise.all([api.getApps(),api.getServicesStatus().catch(() => ({ services: [] })),api.getDatabasesStatus().catch(() => null),- api.getCurrentUptime().catch(() => null)+ api.getCurrentUptime().catch(() => null),+ api.getSystemInfo().catch(() => null)]);setApps(appsData.apps || []);setServices(servicesData.services || []);setDbStatus(dbData);setUptime(uptimeData);+ setSystemInfo(sysInfoData);} catch (err) {console.error('Failed to load data:', err);} finally {@@ -61,31 +62,19 @@ const Dashboard = () => {function getStackIcon(type) {switch (type) {- case 'docker': return <Container size={20} />;+ case 'docker': return <Container size={16} />;case 'wordpress':- case 'php': return <Code size={20} />;+ case 'php': return <Code size={16} />;case 'flask':- case 'django': return <Layers size={20} />;- default: return <Globe size={20} />;+ case 'django': return <Layers size={16} />;+ default: return <Globe size={16} />;}}- function getStackColor(type) {- const colors = {- 'php': '#777bb4',- 'wordpress': '#21759b',- 'flask': '#000000',- 'django': '#092e20',- 'docker': '#2496ed',- 'static': '#60a5fa',- };- return colors[type] || '#6366f1';- }-- const runningApps = apps.filter(a => a.status === 'running').length;- const runningServices = services.filter(s => s.status === 'running').length;-const uptimeFormatted = uptime?.uptime_formatted || { days: 0, hours: 0, minutes: 0, seconds: 0 };+ const hostname = systemInfo?.hostname || 'server';+ const kernelVersion = systemInfo?.kernel || '-';+ const ipAddress = systemInfo?.ip_address || '-';if (loading && metricsLoading) {return <div className="loading">Loading dashboard...</div>;@@ -93,281 +82,172 @@ const Dashboard = () => {return (<div className="dashboard-page">- <header className="top-bar">- <div>- <h1>Dashboard</h1>- <div className="subtitle">- Server overview- {connected && <span className="live-indicator"> Live</span>}+ {/* Top Bar */}+ <div className="top-bar">+ <div className="server-identity">+ <h1>+ <span className="status-dot-live"></span>+ ServerKit+ </h1>+ <div className="server-details">+ <span>HOST: {hostname}</span>+ <span>IP: {ipAddress}</span>+ <span>KERNEL: {kernelVersion}</span>+ <span>UPTIME: {uptimeFormatted.days}d {String(uptimeFormatted.hours).padStart(2, '0')}h {String(uptimeFormatted.minutes).padStart(2, '0')}m</span></div></div>- <div className="top-bar-actions">- <button className="btn btn-secondary" onClick={loadData}>- <RefreshCw size={16} />- Refresh- </button>- <button className="btn btn-primary" onClick={() => navigate('/apps')}>- <Plus size={16} />- New App- </button>+ <div className="clock-widget">+ <div className="clock-time">+ {serverTime?.current_time_formatted?.split(' ')[1] || '--:--:--'}+ </div>+ <div className="clock-zone">+ ZONE: {serverTime?.timezone_id || 'UTC'}+ </div></div>- </header>+ </div>- {/* Server Status Bar */}- <div className="server-status-bar">- <div className="status-bar-left">- <div className="server-status-indicator">- <CheckCircle size={18} className="status-icon-ok" />- <span className="status-text">Operational</span>+ {/* Grid Container */}+ <div className="grid-container">+ {/* Metric Tiles */}+ <div className="metric-tile">+ <div className="tile-head">+ <span className="tile-title">Processor Load</span>+ <Zap size={16} className="tile-icon cpu" />+ </div>+ <div className="tile-val">{(metrics?.cpu?.percent || 0).toFixed(1)}%</div>+ <div className="tile-sub">+ <span>Cores: {metrics?.cpu?.count_logical || 0}</span>+ <span className={metrics?.cpu?.percent > 50 ? 'trend-up' : 'trend-down'}>+ {metrics?.cpu?.percent > 50 ? '▲' : '▼'} {Math.abs(metrics?.cpu?.percent - 50).toFixed(0)}%+ </span></div>- {uptime && (- <div className="uptime-inline">- <Clock size={14} />- <span>- {uptimeFormatted.days}d {String(uptimeFormatted.hours).padStart(2, '0')}h {String(uptimeFormatted.minutes).padStart(2, '0')}m- </span>- </div>- )}- </div>- <div className="status-bar-center">- {serverTime && (- <div className="server-time-display">- <Clock size={14} />- <span className="time-value">{serverTime.current_time_formatted}</span>- <span className="timezone-badge">- <MapPin size={10} />- {serverTime.timezone_id || serverTime.timezone_name}- </span>- </div>- )}</div>- <div className="status-bar-right">- <div className="status-bar-stat">- <span className="stat-label">Apps</span>- <span className="stat-value">{runningApps}/{apps.length}</span>++ <div className="metric-tile">+ <div className="tile-head">+ <span className="tile-title">Memory Allocation</span>+ <Database size={16} className="tile-icon memory" /></div>- <div className="status-bar-stat">- <span className="stat-label">Services</span>- <span className="stat-value">{runningServices}/{services.length}</span>+ <div className="tile-val">{metrics?.memory?.ram?.used_human || '0 GB'}</div>+ <div className="tile-sub">+ <span>Total: {metrics?.memory?.ram?.total_human || '0 GB'}</span>+ <span>Cached: {metrics?.memory?.ram?.cached_human || '0 GB'}</span></div></div>- </div>- {/* System Metrics - Live */}- {metrics && (- <div className="metrics-grid">- <div className="metric-card">- <div className="metric-header">- <Cpu size={16} className="metric-icon" />- <span>CPU</span>- <span className="metric-live-badge">Live</span>- </div>- <div className="metric-value-row">- <span className="metric-value">{(metrics.cpu?.percent || 0).toFixed(1)}%</span>- <span className="metric-detail">{metrics.cpu?.count_logical || 0} cores</span>- </div>- <div className="metric-bar">- <div- className="metric-bar-fill"- style={{- width: `${metrics.cpu?.percent || 0}%`,- background: (metrics.cpu?.percent || 0) > 80 ? 'var(--danger)' :- (metrics.cpu?.percent || 0) > 60 ? 'var(--warning)' : 'var(--success)'- }}- />- </div>+ <div className="metric-tile">+ <div className="tile-head">+ <span className="tile-title">Network I/O</span>+ <Activity size={16} className="tile-icon network" /></div>-- <div className="metric-card">- <div className="metric-header">- <MemoryStick size={16} className="metric-icon" />- <span>Memory</span>- <span className="metric-live-badge">Live</span>- </div>- <div className="metric-value-row">- <span className="metric-value">{(metrics.memory?.ram?.percent || 0).toFixed(1)}%</span>- <span className="metric-detail">{metrics.memory?.ram?.used_human} / {metrics.memory?.ram?.total_human}</span>- </div>- <div className="metric-bar">- <div- className="metric-bar-fill"- style={{- width: `${metrics.memory?.ram?.percent || 0}%`,- background: (metrics.memory?.ram?.percent || 0) > 90 ? 'var(--danger)' : 'var(--accent-primary)'- }}- />- </div>+ <div className="tile-val">+ {metrics?.network?.io?.bytes_sent_human || '0 B'}+ <span className="tile-val-unit">sent</span></div>-- <div className="metric-card">- <div className="metric-header">- <HardDrive size={16} className="metric-icon" />- <span>Disk</span>- <span className="metric-live-badge">Live</span>- </div>- <div className="metric-value-row">- <span className="metric-value">{(metrics.disk?.partitions?.[0]?.percent || 0).toFixed(1)}%</span>- <span className="metric-detail">{metrics.disk?.partitions?.[0]?.used_human} / {metrics.disk?.partitions?.[0]?.total_human}</span>- </div>- <div className="metric-bar">- <div- className="metric-bar-fill"- style={{- width: `${metrics.disk?.partitions?.[0]?.percent || 0}%`,- background: (metrics.disk?.partitions?.[0]?.percent || 0) > 90 ? 'var(--danger)' : 'var(--accent-primary)'- }}- />- </div>+ <div className="tile-sub">+ <span>In: {metrics?.network?.io?.bytes_recv_human || '0 B'}</span>+ <span>Out: {metrics?.network?.io?.bytes_sent_human || '0 B'}</span></div>+ </div>- <div className="metric-card">- <div className="metric-header">- <Activity size={16} className="metric-icon" />- <span>Network</span>- <span className="metric-live-badge">Live</span>- </div>- <div className="metric-value-row">- <span className="metric-value">{metrics.network?.io?.bytes_sent_human || '0B'}</span>- <span className="metric-detail">sent</span>- </div>- <div className="metric-sub-value">- Recv: {metrics.network?.io?.bytes_recv_human || '0B'}- </div>+ <div className="metric-tile">+ <div className="tile-head">+ <span className="tile-title">Disk Operations</span>+ <HardDrive size={16} className="tile-icon disk" />+ </div>+ <div className="tile-val">+ {(metrics?.disk?.partitions?.[0]?.percent || 0).toFixed(1)}%+ <span className="tile-val-unit">used</span>+ </div>+ <div className="tile-sub">+ <span>Used: {metrics?.disk?.partitions?.[0]?.used_human || '0 GB'}</span>+ <span>Free: {metrics?.disk?.partitions?.[0]?.free_human || '0 GB'}</span></div></div>- )}-- {/* Historical Metrics Graph */}- <MetricsGraph />- {/* Two Column Layout */}- <div className="dashboard-columns">- {/* Left Column - Services & Databases */}- <div className="dashboard-column">- {/* Services */}- {services.length > 0 && (- <div className="dashboard-card">- <div className="card-title">- <Server size={16} />- Services- </div>- <div className="services-list">- {services.map(service => (- <div key={service.name} className="service-row">- <span className={`status-dot ${service.status === 'running' ? 'running' : 'stopped'}`} />- <span className="service-name">{service.name}</span>- <span className={`service-status ${service.status}`}>{service.status}</span>- </div>- ))}- </div>- </div>- )}+ {/* Chart Panel */}+ <div className="chart-panel">+ <MetricsGraph />+ </div>- {/* Database Status */}- {dbStatus && (- <div className="dashboard-card">- <div className="card-title">- <Database size={16} />- Databases- </div>- <div className="db-list">- <div className="db-row">- <div className="db-icon mysql">M</div>- <span className="db-name">MySQL</span>- <span className={`db-status ${dbStatus.mysql?.running ? 'running' : 'stopped'}`}>- {dbStatus.mysql?.running ? 'Running' : 'Stopped'}- </span>- </div>- <div className="db-row">- <div className="db-icon postgres">P</div>- <span className="db-name">PostgreSQL</span>- <span className={`db-status ${dbStatus.postgresql?.running ? 'running' : 'stopped'}`}>- {dbStatus.postgresql?.running ? 'Running' : 'Stopped'}- </span>- </div>- </div>- </div>- )}+ {/* Spec Panel */}+ <div className="spec-panel">+ <h3 className="spec-panel-title">Quick Actions</h3>+ <button className="btn-action" onClick={() => navigate('/docker')}>+ <span>Restart Services</span>+ <span>►</span>+ </button>+ <button className="btn-action" onClick={() => navigate('/databases')}>+ <span>Clear Cache</span>+ <span><Zap size={14} /></span>+ </button>+ <button className="btn-action" onClick={() => navigate('/ssl')}>+ <span>Rotate SSL Certs</span>+ <span><RotateCcw size={14} /></span>+ </button>- {/* Quick Actions */}- <div className="dashboard-card">- <div className="card-title">Quick Actions</div>- <div className="quick-links">- <button className="quick-link" onClick={() => navigate('/apps')}>- <Layers size={16} />- Applications- </button>- <button className="quick-link" onClick={() => navigate('/docker')}>- <Container size={16} />- Docker- </button>- <button className="quick-link" onClick={() => navigate('/databases')}>- <Database size={16} />- Databases- </button>- <button className="quick-link" onClick={() => navigate('/domains')}>- <Globe size={16} />- Domains- </button>- </div>+ <h3 className="spec-panel-title" style={{ marginTop: '1.5rem' }}>Hardware Specs</h3>+ <div className="spec-row">+ <span className="spec-label">Processor</span>+ <span className="spec-data">{systemInfo?.cpu?.model || 'N/A'}</span>+ </div>+ <div className="spec-row">+ <span className="spec-label">Architecture</span>+ <span className="spec-data">{systemInfo?.cpu?.architecture || 'N/A'}</span>+ </div>+ <div className="spec-row">+ <span className="spec-label">Swap Memory</span>+ <span className="spec-data">{metrics?.memory?.swap?.total_human || 'N/A'}</span></div></div>- {/* Right Column - Applications */}- <div className="dashboard-column dashboard-column-wide">- <div className="dashboard-card">- <div className="card-title-row">- <div className="card-title">- <Layers size={16} />- Applications- </div>- <button className="btn btn-sm btn-link" onClick={() => navigate('/apps')}>- View All <ArrowRight size={14} />- </button>- </div>-- {apps.length === 0 ? (- <div className="empty-apps">- <Layers size={32} className="empty-icon" />- <p>No applications yet</p>- <button className="btn btn-primary btn-sm" onClick={() => navigate('/apps')}>- <Plus size={14} />- Create App- </button>- </div>- ) : (- <div className="apps-table">- <div className="apps-table-header">- <span>Name</span>- <span>Type</span>- <span>Status</span>- <span>Domain</span>- </div>- {apps.slice(0, 8).map(app => (- <div- key={app.id}- className="apps-table-row"- onClick={() => navigate(`/apps/${app.id}`)}- >- <span className="app-name">- <div className="app-icon-small" style={{ background: getStackColor(app.app_type) }}>- {getStackIcon(app.app_type)}- </div>- {app.name}- </span>- <span className="app-type">{app.app_type}</span>- <span className={`app-status ${getStatusClass(app.status)}`}>- <span className="status-dot" />- {app.status}- </span>- <span className="app-domain">- {app.domains?.[0]?.name || '-'}- </span>- </div>- ))}- </div>- )}+ {/* Process Table */}+ <div className="table-panel">+ <div className="table-header">+ <span>Active Processes / Containers</span>+ <button className="btn btn-sm btn-secondary" onClick={loadData}>+ <RefreshCw size={14} />+ </button></div>+ <table className="data-table">+ <thead>+ <tr>+ <th>ID</th>+ <th>Name</th>+ <th>Type</th>+ <th>Status</th>+ <th>Domain</th>+ </tr>+ </thead>+ <tbody>+ {apps.length === 0 ? (+ <tr>+ <td colSpan="5" style={{ textAlign: 'center', color: 'var(--text-tertiary)' }}>+ No applications found+ </td>+ </tr>+ ) : (+ apps.slice(0, 6).map(app => (+ <tr key={app.id} onClick={() => navigate(`/apps/${app.id}`)} style={{ cursor: 'pointer' }}>+ <td>{app.id}</td>+ <td>+ <div className="app-name-cell">+ <span className="app-icon-mini">{getStackIcon(app.app_type)}</span>+ {app.name}+ </div>+ </td>+ <td>{app.app_type}</td>+ <td>+ <span className={`badge badge-${app.status === 'running' ? 'running' : 'warning'}`}>+ {app.status?.toUpperCase()}+ </span>+ </td>+ <td>{app.domains?.[0]?.name || '-'}</td>+ </tr>+ ))+ )}+ </tbody>+ </table></div></div></div>diff --git a/frontend/src/styles/components/_metrics-graph.less b/frontend/src/styles/components/_metrics-graph.lessindex ec040643..004e3888 100644--- a/frontend/src/styles/components/_metrics-graph.less+++ b/frontend/src/styles/components/_metrics-graph.less@@ -168,76 +168,63 @@}}-// Filter Legend (clickable)+// Filter Legend (clickable) - new_dashboard_3 style.metrics-filter-legend {display: flex;align-items: center;- justify-content: center;- gap: @space-3;- margin-bottom: @space-4;+ gap: @space-2;+ background: @bg-hover;+ padding: 4px;+ border-radius: @radius-md;+ border: 1px solid @border-subtle;}.filter-btn {- display: flex;- align-items: center;- gap: @space-2;- padding: @space-2 @space-4;- border-radius: @radius-full;- border: 1px solid @border-subtle;background: transparent;+ border: 1px solid transparent;color: @text-tertiary;- font-size: @font-size-sm;- font-weight: @font-weight-medium;+ padding: 6px 12px;+ font-size: @font-size-xs;+ font-weight: @font-weight-semibold;+ border-radius: @radius-sm;cursor: pointer;transition: all @transition-fast;- opacity: 0.5;-- svg {- opacity: 0.7;- }+ text-transform: uppercase;&:hover {- background: @bg-hover;- border-color: @border-active;+ color: @text-primary;}&.active {opacity: 1;- color: @text-primary;-- svg {- opacity: 1;- }}+ // CPU - Purple/Indigo&.cpu.active {- background: rgba(16, 185, 129, 0.15);- border-color: rgba(16, 185, 129, 0.4);- color: #10b981;-- &:hover {- background: rgba(16, 185, 129, 0.25);- }+ background: rgba(99, 102, 241, 0.1);+ color: #6366f1;+ border-color: rgba(99, 102, 241, 0.3);}+ // Memory - Green&.memory.active {- background: rgba(99, 102, 241, 0.15);- border-color: rgba(99, 102, 241, 0.4);- color: #6366f1;+ background: rgba(16, 185, 129, 0.1);+ color: #10b981;+ border-color: rgba(16, 185, 129, 0.3);+ }- &:hover {- background: rgba(99, 102, 241, 0.25);- }+ // Network - Orange+ &.network.active {+ background: rgba(245, 158, 11, 0.1);+ color: #f59e0b;+ border-color: rgba(245, 158, 11, 0.3);}+ // Legacy disk class for backwards compatibility&.disk.active {- background: rgba(245, 158, 11, 0.15);- border-color: rgba(245, 158, 11, 0.4);+ background: rgba(245, 158, 11, 0.1);color: #f59e0b;-- &:hover {- background: rgba(245, 158, 11, 0.25);- }+ border-color: rgba(245, 158, 11, 0.3);}}@@ -287,16 +274,17 @@}&.cpu {- background: #10b981;- box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);+ background: #6366f1;+ box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);}&.memory {- background: #6366f1;- box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);+ background: #10b981;+ box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);}- &.disk {+ &.disk,+ &.network {background: #f59e0b;box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);}diff --git a/frontend/src/styles/layout/_sidebar.less b/frontend/src/styles/layout/_sidebar.lessindex 7157beeb..76c5955b 100644--- a/frontend/src/styles/layout/_sidebar.less+++ b/frontend/src/styles/layout/_sidebar.less@@ -87,20 +87,23 @@border-radius: @radius-md;.transition();font-weight: @font-weight-medium;+ margin-bottom: 2px;&:hover {- background-color: @bg-hover;+ background-color: rgba(255, 255, 255, 0.03);color: @text-primary;}&.active {background-color: @accent-glow;color: @accent-primary;+ border-left: 3px solid @accent-primary;+ border-radius: @radius-sm;}svg {- width: 20px;- height: 20px;+ width: 16px;+ height: 16px;stroke: currentColor;stroke-width: 2;stroke-linecap: round;@@ -136,16 +139,58 @@// User profile at bottom.user-profile {flex-shrink: 0;- padding: @space-5;+ padding: @space-4;border-top: 1px solid @border-subtle;- .flex-start();+}++.user-card {+ display: flex;+ align-items: center;gap: @space-3;+ padding: @space-3;+ border-radius: @radius-lg;+ background: @bg-hover;+ border: 1px solid @border-subtle;}.avatar {- .icon-box(36px);- background-color: @bg-hover;+ .icon-box(32px);+ background-color: @accent-primary;border-radius: @radius-full;- color: @text-secondary;+ color: white;font-weight: @font-weight-semibold;+ font-size: @font-size-sm;+}++.user-info {+ display: flex;+ flex-direction: column;+ flex: 1;+}++.user-name {+ font-size: @font-size-sm;+ font-weight: @font-weight-semibold;+ color: @text-primary;+}++.user-role {+ font-size: @font-size-xs;+ color: @text-tertiary;+ font-family: @font-mono;+}++.logout-btn {+ background: none;+ border: none;+ cursor: pointer;+ color: @text-tertiary;+ padding: @space-1;+ border-radius: @radius-sm;+ .transition();++ &:hover {+ color: @text-primary;+ background: rgba(255, 255, 255, 0.05);+ }}diff --git a/frontend/src/styles/pages/_dashboard.less b/frontend/src/styles/pages/_dashboard.lessindex de51b53d..7c998049 100644--- a/frontend/src/styles/pages/_dashboard.less+++ b/frontend/src/styles/pages/_dashboard.less@@ -1,601 +1,429 @@// ============================================-// DASHBOARD PAGE - Clean Layout+// DASHBOARD PAGE - Pro Layout (new_dashboard_3 style)// ============================================.dashboard-page {display: flex;flex-direction: column;- gap: @space-5;+ gap: @space-6;+ min-height: 100%;}-// Server Status Bar-.server-status-bar {+// --- Top Bar: Pro Layout ---+.top-bar {display: flex;justify-content: space-between;- align-items: center;- padding: @space-3 @space-5;- background: @bg-card;- border: 1px solid @border-subtle;- border-radius: @radius-lg;-}--.status-bar-left {- display: flex;- align-items: center;- gap: @space-6;+ align-items: flex-end;+ padding-bottom: @space-4;+ border-bottom: 1px solid @border-subtle;}-.server-status-indicator {- display: flex;- align-items: center;- gap: @space-2;-- .status-icon-ok {- color: @success;- }-- .status-text {- font-weight: @font-weight-semibold;+.server-identity {+ h1 {+ font-size: 1.5rem;+ font-weight: @font-weight-bold;+ letter-spacing: -0.02em;+ display: flex;+ align-items: center;+ gap: 10px;color: @text-primary;}-}--.uptime-inline {- display: flex;- align-items: center;- gap: @space-2;- color: @text-secondary;- font-size: @font-size-sm;- padding-left: @space-6;- border-left: 1px solid @border-subtle;- svg {+ .pro-badge {+ font-weight: @font-weight-normal;color: @text-tertiary;+ margin-left: 10px;+ font-size: 1rem;}}-.status-bar-center {- display: flex;- align-items: center;- justify-content: center;- flex: 1;+.status-dot-live {+ width: 10px;+ height: 10px;+ background: @success;+ border-radius: 50%;+ box-shadow: 0 0 10px @success;+ display: inline-block;}-.server-time-display {+.server-details {display: flex;- align-items: center;- gap: @space-2;- color: @text-secondary;+ gap: @space-6;+ margin-top: @space-2;font-size: @font-size-sm;-- svg {- color: @text-tertiary;- }-- .time-value {- font-family: @font-mono;- font-weight: @font-weight-medium;- color: @text-primary;- }-- .timezone-badge {- display: flex;- align-items: center;- gap: 4px;- font-size: @font-size-xs;- color: @accent-primary;- background: @accent-glow;- padding: 2px 8px;- border-radius: @radius-full;- margin-left: @space-2;- }+ color: @text-tertiary;+ font-family: @font-mono;}-.status-bar-right {- display: flex;- align-items: center;- gap: @space-6;+.clock-widget {+ text-align: right;}-.status-bar-stat {- display: flex;- align-items: center;- gap: @space-2;-- .stat-label {- font-size: @font-size-sm;- color: @text-tertiary;- }+.clock-time {+ font-family: @font-mono;+ font-size: 1.5rem;+ font-weight: @font-weight-bold;+ color: @text-primary;+}- .stat-value {- font-size: @font-size-sm;- font-weight: @font-weight-semibold;- color: @text-primary;- }+.clock-zone {+ color: @accent-primary;+ font-weight: @font-weight-semibold;+ font-size: @font-size-xs;+ text-transform: uppercase;+ letter-spacing: 1px;}-// Metrics Grid - Compact-.metrics-grid {+// --- Grid System ---+.grid-container {display: grid;- grid-template-columns: repeat(4, 1fr);- gap: @space-4;-- @media (max-width: @breakpoint-xl) {- grid-template-columns: repeat(2, 1fr);- }-- @media (max-width: @breakpoint-sm) {- grid-template-columns: 1fr;- }+ grid-template-columns: repeat(12, 1fr);+ gap: @space-5;+ max-width: 1800px;+ margin: 0 auto;+ width: 100%;}-.metric-card {+// --- Metric Tiles ---+.metric-tile {+ grid-column: span 3;background: @bg-card;border: 1px solid @border-subtle;- border-radius: @radius-lg;- padding: @space-4;-- .metric-header {- display: flex;- align-items: center;- gap: @space-2;- margin-bottom: @space-3;-- .metric-icon {- color: @text-tertiary;- }-- span {- font-size: @font-size-sm;- color: @text-tertiary;- font-weight: @font-weight-medium;- }+ border-radius: @radius-sm;+ padding: @space-5;+ position: relative;+ overflow: hidden;- .metric-live-badge {- margin-left: auto;- font-size: 9px;- color: @success;- background: fade(@success, 15%);- padding: 2px 6px;- border-radius: @radius-full;- font-weight: @font-weight-bold;- text-transform: uppercase;- letter-spacing: 0.5px;- animation: pulse-live 2s ease-in-out infinite;- }+ &::before {+ content: '';+ position: absolute;+ top: 0;+ left: 0;+ width: 100%;+ height: 2px;+ background: linear-gradient(90deg, @accent-primary, transparent);+ opacity: 0.5;}- .metric-value-row {- display: flex;- align-items: baseline;- justify-content: space-between;- margin-bottom: @space-2;-- .metric-value {- font-size: @font-size-xl;- font-weight: @font-weight-bold;- color: @text-primary;- }+ @media (max-width: @breakpoint-xl) {+ grid-column: span 6;+ }- .metric-detail {- font-size: @font-size-xs;- color: @text-tertiary;- }+ @media (max-width: @breakpoint-md) {+ grid-column: span 12;}+}- .metric-bar {- height: 4px;- background: @bg-hover;- border-radius: @radius-full;- overflow: hidden;+.tile-head {+ display: flex;+ justify-content: space-between;+ align-items: center;+ margin-bottom: @space-3;+}- .metric-bar-fill {- height: 100%;- border-radius: @radius-full;- transition: width 0.3s ease;- }- }+.tile-title {+ font-size: @font-size-xs;+ font-weight: @font-weight-semibold;+ text-transform: uppercase;+ color: @text-tertiary;+ letter-spacing: 0.05em;+}- .metric-sub-value {- font-size: @font-size-xs;- color: @text-tertiary;- margin-top: @space-2;- }+.tile-icon {+ &.cpu { color: @accent-primary; }+ &.memory { color: @success; }+ &.network { color: @warning; }+ &.disk { color: @danger; }}-// Two Column Layout-.dashboard-columns {- display: grid;- grid-template-columns: 320px 1fr;- gap: @space-5;+.tile-val {+ font-family: @font-mono;+ font-size: 1.75rem;+ font-weight: @font-weight-bold;+ color: @text-primary;+}- @media (max-width: @breakpoint-lg) {- grid-template-columns: 1fr;- }+.tile-val-unit {+ font-size: @font-size-base;+ font-weight: @font-weight-normal;+ color: @text-tertiary;+ margin-left: @space-1;}-.dashboard-column {+.tile-sub {+ font-size: @font-size-sm;+ color: @text-tertiary;+ margin-top: @space-2;display: flex;- flex-direction: column;- gap: @space-4;+ justify-content: space-between;}-.dashboard-column-wide {- min-width: 0;-}+.trend-up { color: @warning; }+.trend-down { color: @success; }-// Dashboard Cards-.dashboard-card {+// --- Chart Panel ---+.chart-panel {+ grid-column: span 8;background: @bg-card;border: 1px solid @border-subtle;- border-radius: @radius-lg;- padding: @space-4;+ border-radius: @radius-sm;+ padding: @space-5;+ min-height: 450px;+ display: flex;+ flex-direction: column;- .card-title {+ // Override MetricsGraph card styling when inside chart-panel+ .metrics-graph-card {+ background: transparent;+ border: none;+ padding: 0;+ margin-bottom: 0;+ height: 100%;display: flex;- align-items: center;- gap: @space-2;- font-size: @font-size-sm;- font-weight: @font-weight-semibold;- color: @text-primary;- margin-bottom: @space-3;-- svg {- color: @text-tertiary;- }+ flex-direction: column;}- .card-title-row {+ // Toolbar styling matching new_dashboard_3+ .metrics-graph-header {display: flex;justify-content: space-between;align-items: center;- margin-bottom: @space-3;-- .card-title {- margin-bottom: 0;- }+ margin-bottom: @space-5;+ gap: @space-4;}-}-// Services List-.services-list {- display: flex;- flex-direction: column;- gap: @space-2;-}--.service-row {- display: flex;- align-items: center;- gap: @space-3;- padding: @space-2 0;-- &:not(:last-child) {- border-bottom: 1px solid @border-subtle;+ .graph-title {+ font-weight: @font-weight-semibold;+ font-size: @font-size-base;+ color: @text-primary;}- .status-dot {- width: 8px;- height: 8px;- border-radius: 50%;- background: @text-tertiary;- flex-shrink: 0;-- &.running {- background: @success;- }-- &.stopped {- background: @danger;- }+ .metrics-chart-container {+ flex-grow: 1;+ margin-bottom: 0;}- .service-name {- flex: 1;- font-size: @font-size-sm;- color: @text-primary;+ @media (max-width: @breakpoint-lg) {+ grid-column: span 12;+ min-height: 400px;}- .service-status {- font-size: @font-size-xs;- color: @text-tertiary;- text-transform: capitalize;-- &.running {- color: @success;- }-- &.stopped {- color: @danger;+ @media (max-width: @breakpoint-md) {+ .metrics-graph-header {+ flex-wrap: wrap;+ gap: @space-3;}}}-// Database List-.db-list {+// --- Spec Panel ---+.spec-panel {+ grid-column: span 4;+ background: @bg-card;+ border: 1px solid @border-subtle;+ border-radius: @radius-sm;+ padding: @space-5;display: flex;flex-direction: column;- gap: @space-2;-}--.db-row {- display: flex;- align-items: center;- gap: @space-3;- padding: @space-2 0;+ gap: @space-4;- &:not(:last-child) {- border-bottom: 1px solid @border-subtle;+ @media (max-width: @breakpoint-lg) {+ grid-column: span 12;}+}- .db-icon {- width: 24px;- height: 24px;- border-radius: @radius-sm;- display: flex;- align-items: center;- justify-content: center;- font-size: @font-size-xs;- font-weight: @font-weight-bold;- color: white;- flex-shrink: 0;-- &.mysql {- background: #00758f;- }+.spec-panel-title {+ font-size: @font-size-sm;+ text-transform: uppercase;+ color: @text-tertiary;+ font-weight: @font-weight-semibold;+ letter-spacing: 0.05em;+}- &.postgres {- background: #336791;- }- }+.spec-row {+ display: flex;+ justify-content: space-between;+ border-bottom: 1px solid @border-subtle;+ padding-bottom: @space-3;+ font-size: @font-size-sm;- .db-name {- flex: 1;- font-size: @font-size-sm;- color: @text-primary;+ &:last-child {+ border: none;+ padding-bottom: 0;}+}- .db-status {- font-size: @font-size-xs;- color: @text-tertiary;-- &.running {- color: @success;- }-- &.stopped {- color: @danger;- }- }+.spec-label {+ color: @text-tertiary;}-// Quick Links-.quick-links {- display: flex;- flex-direction: column;- gap: @space-2;+.spec-data {+ font-family: @font-mono;+ color: @text-primary;+ text-align: right;+ max-width: 60%;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;}-.quick-link {- display: flex;- align-items: center;- gap: @space-3;- padding: @space-2 @space-3;- background: transparent;- border: none;+.btn-action {+ width: 100%;+ padding: @space-3;+ background: @bg-hover;+ border: 1px solid @border-subtle;border-radius: @radius-md;- color: @text-secondary;+ color: @text-primary;+ font-weight: @font-weight-semibold;font-size: @font-size-sm;cursor: pointer;- transition: all @transition-fast;text-align: left;-- svg {- color: @text-tertiary;- flex-shrink: 0;- }+ display: flex;+ justify-content: space-between;+ align-items: center;+ transition: all @transition-fast;&:hover {- background: @bg-hover;- color: @text-primary;+ border-color: @accent-primary;+ background: @accent-glow;+ }- svg {- color: @accent-primary;- }+ svg {+ color: @text-tertiary;}}-// Applications Table-.apps-table {- display: flex;- flex-direction: column;+// --- Process Table ---+.table-panel {+ grid-column: span 12;+ background: @bg-card;+ border: 1px solid @border-subtle;+ border-radius: @radius-sm;+ overflow: hidden;}-.apps-table-header {- display: grid;- grid-template-columns: 2fr 1fr 1fr 1.5fr;- gap: @space-4;- padding: @space-2 @space-3;- font-size: @font-size-xs;- color: @text-tertiary;- text-transform: uppercase;- letter-spacing: 0.5px;+.table-header {+ display: flex;+ justify-content: space-between;+ align-items: center;+ padding: @space-4 @space-5;border-bottom: 1px solid @border-subtle;+ font-weight: @font-weight-semibold;+ color: @text-primary;}-.apps-table-row {- display: grid;- grid-template-columns: 2fr 1fr 1fr 1.5fr;- gap: @space-4;- padding: @space-3;- align-items: center;- cursor: pointer;- border-radius: @radius-md;- transition: background @transition-fast;+.data-table {+ width: 100%;+ border-collapse: collapse;+ font-size: @font-size-sm;- &:hover {+ th {+ text-align: left;+ padding: @space-4 @space-5;background: @bg-hover;+ color: @text-tertiary;+ font-weight: @font-weight-semibold;+ text-transform: uppercase;+ font-size: @font-size-xs;+ letter-spacing: 0.05em;}- .app-name {- display: flex;- align-items: center;- gap: @space-3;- font-size: @font-size-sm;- font-weight: @font-weight-medium;- color: @text-primary;- }-- .app-icon-small {- width: 28px;- height: 28px;- border-radius: @radius-md;- display: flex;- align-items: center;- justify-content: center;- flex-shrink: 0;-- svg {- width: 14px;- height: 14px;- color: white;- }- }-- .app-type {- font-size: @font-size-sm;+ td {+ padding: @space-4 @space-5;+ border-bottom: 1px solid @border-subtle;+ font-family: @font-mono;color: @text-secondary;- text-transform: capitalize;}- .app-status {- display: flex;- align-items: center;- gap: @space-2;- font-size: @font-size-sm;- text-transform: capitalize;-- .status-dot {- width: 6px;- height: 6px;- border-radius: 50%;- background: @text-tertiary;- }-- &.status-active {- color: @success;-- .status-dot {- background: @success;- }- }-- &.status-stopped {- color: @danger;-- .status-dot {- background: @danger;- }- }-- &.status-error {- color: @danger;-- .status-dot {- background: @danger;- }- }-- &.status-warning {- color: @warning;-- .status-dot {- background: @warning;- }- }+ tr:hover {+ background: @bg-hover;}- .app-domain {- font-size: @font-size-sm;- color: @text-tertiary;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;+ tr:last-child td {+ border-bottom: none;}}-// Empty Apps State-.empty-apps {+.app-name-cell {display: flex;- flex-direction: column;align-items: center;- justify-content: center;- padding: @space-8;- text-align: center;-- .empty-icon {- color: @text-tertiary;- margin-bottom: @space-3;- }-- p {- color: @text-secondary;- font-size: @font-size-sm;- margin-bottom: @space-4;- }+ gap: @space-2;+ color: @text-primary;}-// Button link variant-.btn-link {- background: transparent;- border: none;- color: @text-secondary;- font-size: @font-size-sm;+.app-icon-mini {display: flex;align-items: center;- gap: @space-1;- cursor: pointer;- padding: @space-1 @space-2;+ justify-content: center;+ color: @text-tertiary;+}++// Status Badges+.badge {+ padding: 2px 8px;border-radius: @radius-sm;+ font-size: @font-size-xs;+ text-transform: uppercase;+ font-weight: @font-weight-semibold;+ letter-spacing: 0.5px;+}- &:hover {- color: @accent-primary;- background: @accent-glow;- }+.badge-running {+ color: @success;+ background: @success-bg;+ border: 1px solid @success-border;+}++.badge-warning {+ color: @warning;+ background: @warning-bg;+ border: 1px solid @warning-border;}-// Live badge animation-@keyframes pulse-live {- 0%, 100% { opacity: 1; }- 50% { opacity: 0.5; }+.badge-stopped {+ color: @danger;+ background: @danger-bg;+ border: 1px solid @danger-border;}-// Responsive adjustments+// Responsive@media (max-width: @breakpoint-md) {- .server-status-bar {+ .top-bar {flex-direction: column;- gap: @space-3;align-items: flex-start;+ gap: @space-4;}- .status-bar-left {- flex-direction: column;- align-items: flex-start;- gap: @space-2;+ .server-details {+ flex-wrap: wrap;+ gap: @space-3;}- .uptime-inline {- padding-left: 0;- border-left: none;+ .clock-widget {+ text-align: left;}- .apps-table-header,- .apps-table-row {- grid-template-columns: 1fr 1fr;-- span:nth-child(3),- span:nth-child(4) {+ .data-table {+ th:nth-child(3),+ th:nth-child(5),+ td:nth-child(3),+ td:nth-child(5) {display: none;}}}++@media (max-width: @breakpoint-sm) {+ .server-details {+ flex-direction: column;+ gap: @space-1;+ }++ .metric-tile {+ padding: @space-4;+ }++ .tile-val {+ font-size: 1.5rem;+ }+}