secubox-openwrt/luci-app-system-hub/htdocs/luci-static/resources/system-hub/overview.css
CyberMind-FR 00f2f20c2f feat(system-hub): modernize Quick Status widgets with histograms and gradients
- Transform Quick Status Indicators to modern card-based design
- Add progress bars with gradient animations for each status
- Implement detail grids showing additional metrics:
  - Internet: WAN IP, Gateway, Status
  - DNS: Primary/Secondary servers, Query rate
  - NTP: Server, Offset, Last sync
  - Firewall: Input/Forward/Output policies
- Apply color-coded gradients:
  - Internet: Blue (#3b82f6 → #2563eb)
  - DNS: Green (#10b981 → #059669)
  - NTP: Purple (#8b5cf6 → #7c3aed)
  - Firewall: Orange (#f59e0b → #d97706)
- Add shimmer animations on progress bars
- Implement hover effects with lift and shadow
- Use JetBrains Mono for numeric values
- Full responsive support for mobile devices

Version: 0.3.2
2025-12-28 03:20:03 +01:00

1363 lines
26 KiB
CSS

/**
* System Hub - Overview Page Styles (Demo-inspired)
* Modern dashboard with widgets and metrics
* Version: 0.3.0 - Matching https://cybermind.fr/apps/system-hub/demo.html
*/
/* === Dashboard Header (Demo Style - more subtle) === */
.sh-dashboard-header {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
border-radius: 16px;
padding: 28px;
margin-bottom: 24px;
border: 1px solid var(--sh-border);
color: var(--sh-text-primary);
}
.sh-dashboard-header-content {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 16px;
}
.sh-dashboard-header h2 {
margin: 0 0 6px 0;
font-size: 28px;
font-weight: 700;
letter-spacing: -0.5px;
background: linear-gradient(135deg, var(--sh-primary), var(--sh-primary-end));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.sh-dashboard-subtitle {
margin: 0;
opacity: 0.9;
font-size: 14px;
font-weight: 500;
color: var(--sh-text-secondary);
}
.sh-dashboard-header-info {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.sh-dashboard-badge {
background: var(--sh-bg-card);
padding: 8px 16px;
border-radius: 20px;
font-size: 13px;
font-weight: 600;
border: 1px solid var(--sh-border);
white-space: nowrap;
color: var(--sh-text-primary);
}
.sh-dashboard-badge-version {
background: linear-gradient(135deg, var(--sh-primary), var(--sh-primary-end));
color: #ffffff;
border-color: transparent;
font-weight: 700;
}
/* === Stats Overview Grid (v0.3.2 - updated for 5 cards) === */
.sh-stats-overview-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.sh-stat-overview-card {
background: var(--sh-bg-card);
border-radius: 12px;
padding: 20px 16px;
text-align: center;
border: 1px solid var(--sh-border);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.sh-stat-overview-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
transition: opacity 0.3s ease;
}
.sh-stat-overview-card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 28px var(--sh-shadow);
border-color: var(--sh-primary);
}
.sh-stat-excellent::before { background: #22c55e; opacity: 1; }
.sh-stat-good::before { background: #3b82f6; opacity: 1; }
.sh-stat-warning::before { background: #f59e0b; opacity: 1; }
.sh-stat-critical::before { background: #ef4444; opacity: 1; }
.sh-stat-cpu::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); opacity: 1; }
.sh-stat-memory::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); opacity: 1; }
.sh-stat-disk::before { background: linear-gradient(90deg, #ec4899, #f43f5e); opacity: 1; }
.sh-stat-network::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); opacity: 1; }
.sh-stat-ok::before { background: #22c55e; opacity: 1; }
.sh-stat-error::before { background: #ef4444; opacity: 1; }
.sh-stat-overview-icon {
font-size: 36px;
margin-bottom: 10px;
line-height: 1;
}
.sh-stat-overview-value {
font-size: 32px;
font-weight: 700;
line-height: 1;
margin-bottom: 10px;
color: var(--sh-text-primary);
font-family: 'JetBrains Mono', monospace;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.sh-stat-overview-label {
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.8px;
color: var(--sh-text-secondary);
margin-bottom: 4px;
}
.sh-stat-overview-status {
font-size: 12px;
font-weight: 600;
color: var(--sh-text-secondary);
}
/* v0.3.2 - Enhanced dynamic stats */
.sh-stat-status-icon {
font-size: 18px;
opacity: 0.9;
animation: pulse-subtle 2s ease-in-out infinite;
}
.sh-stat-overview-detail {
font-size: 10px;
font-weight: 500;
color: var(--sh-text-muted);
margin-top: 6px;
font-family: 'JetBrains Mono', monospace;
}
@keyframes pulse-subtle {
0%, 100% { opacity: 0.8; }
50% { opacity: 1; }
}
/* === Old Header (deprecated, keep for compatibility) === */
.sh-overview-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 32px;
padding: 24px;
background: var(--sh-bg-card);
border-radius: 16px;
border: 1px solid var(--sh-border);
}
.sh-overview-title h2 {
font-size: 28px;
font-weight: 700;
margin: 0 0 8px 0;
color: var(--sh-text-primary);
display: flex;
align-items: center;
gap: 12px;
}
.sh-title-icon {
font-size: 32px;
}
.sh-overview-subtitle {
margin: 0;
font-size: 14px;
color: var(--sh-text-secondary);
font-weight: 500;
}
/* === Health Score Circle === */
.sh-score-circle {
width: 100px;
height: 100px;
border-radius: 50%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border: 5px solid;
transition: all 0.3s ease;
}
.sh-score-excellent {
border-color: #22c55e;
background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
}
.sh-score-good {
border-color: #3b82f6;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
}
.sh-score-warning {
border-color: #f59e0b;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
}
.sh-score-critical {
border-color: #ef4444;
background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
}
.sh-score-value {
font-size: 36px;
font-weight: 700;
line-height: 1;
color: var(--sh-text-primary);
font-family: 'JetBrains Mono', monospace;
}
.sh-score-label {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--sh-text-secondary);
margin-top: 4px;
}
/* === Metrics Grid === */
.sh-metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.sh-metric-card {
background: var(--sh-bg-card);
border-radius: 16px;
padding: 24px;
border: 1px solid var(--sh-border);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.sh-metric-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--sh-primary), var(--sh-primary-end));
opacity: 0;
transition: opacity 0.3s ease;
}
.sh-metric-card:hover {
transform: translateY(-3px);
box-shadow: 0 12px 28px var(--sh-hover-shadow);
}
.sh-metric-card:hover::before {
opacity: 1;
}
.sh-metric-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.sh-metric-icon {
font-size: 28px;
line-height: 1;
}
.sh-metric-title {
font-size: 15px;
font-weight: 600;
color: var(--sh-text-primary);
}
.sh-metric-value {
font-size: 40px;
font-weight: 700;
line-height: 1;
margin-bottom: 16px;
color: var(--sh-text-primary);
font-family: 'JetBrains Mono', monospace;
}
.sh-metric-progress {
height: 6px;
background: var(--sh-bg-tertiary);
border-radius: 3px;
overflow: hidden;
margin-bottom: 12px;
}
.sh-metric-progress-bar {
height: 100%;
border-radius: 3px;
transition: width 0.5s ease;
background: linear-gradient(90deg, var(--sh-primary), var(--sh-primary-end));
}
.sh-metric-details {
font-size: 13px;
color: var(--sh-text-secondary);
font-weight: 500;
}
/* === Info Grid === */
.sh-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 20px;
}
.sh-info-card {
background: var(--sh-bg-card);
border-radius: 16px;
border: 1px solid var(--sh-border);
overflow: hidden;
transition: all 0.3s ease;
position: relative;
}
.sh-info-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, var(--sh-primary), var(--sh-primary-end));
opacity: 0;
transition: opacity 0.3s ease;
}
.sh-info-card:hover {
box-shadow: 0 8px 20px var(--sh-hover-shadow);
}
.sh-info-card:hover::before {
opacity: 1;
}
.sh-info-card-header {
padding: 18px 24px;
background: var(--sh-bg-secondary);
border-bottom: 1px solid var(--sh-border);
}
.sh-info-card-header h3 {
margin: 0;
font-size: 16px;
font-weight: 700;
color: var(--sh-text-primary);
}
.sh-info-card-body {
padding: 8px;
}
.sh-info-list {
display: flex;
flex-direction: column;
gap: 0;
}
.sh-info-row {
display: grid;
grid-template-columns: 36px 1fr auto;
align-items: center;
gap: 12px;
padding: 12px 16px;
transition: background 0.2s ease;
border-radius: 8px;
}
.sh-info-row:hover {
background: var(--sh-hover-bg);
}
.sh-info-icon {
font-size: 18px;
text-align: center;
}
.sh-info-label {
font-size: 13px;
font-weight: 600;
color: var(--sh-text-secondary);
}
.sh-info-value {
font-size: 13px;
font-weight: 600;
color: var(--sh-text-primary);
text-align: right;
}
/* === Status Badges === */
.sh-status-badge {
display: inline-block;
padding: 4px 12px;
border-radius: 12px;
font-size: 12px;
font-weight: 600;
line-height: 1.4;
}
.sh-status-ok {
background: rgba(34, 197, 94, 0.15);
color: #22c55e;
}
.sh-status-error {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
.sh-status-warning {
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
}
/* === Link Button === */
.sh-link-button {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 8px 16px;
background: linear-gradient(135deg, var(--sh-primary), var(--sh-primary-end));
color: #ffffff;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}
.sh-link-button:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(99, 102, 241, 0.5);
text-decoration: none;
}
/* === Real-Time Metrics (v0.3.2) - Modern Histograms === */
.sh-realtime-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 32px;
}
.sh-rt-metric {
background: var(--sh-bg-card);
border-radius: 16px;
padding: 24px;
border: 1px solid var(--sh-border);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.sh-rt-metric::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
opacity: 0;
transition: opacity 0.3s ease;
}
.sh-rt-metric:hover {
transform: translateY(-4px);
box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
border-color: var(--sh-primary);
}
.sh-rt-metric:hover::before {
opacity: 1;
}
.sh-rt-metric-cpu::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.sh-rt-metric-memory::before { background: linear-gradient(90deg, #8b5cf6, #ec4899); }
.sh-rt-metric-disk::before { background: linear-gradient(90deg, #ec4899, #f43f5e); }
.sh-rt-metric-temp::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
/* Header */
.sh-rt-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}
.sh-rt-title-group {
display: flex;
align-items: center;
gap: 10px;
}
.sh-rt-icon {
font-size: 24px;
line-height: 1;
}
.sh-rt-title {
font-size: 15px;
font-weight: 600;
color: var(--sh-text-primary);
}
.sh-rt-value-group {
display: flex;
align-items: center;
gap: 10px;
}
.sh-rt-value {
font-size: 24px;
font-weight: 700;
font-family: 'JetBrains Mono', monospace;
color: var(--sh-text-primary);
}
.sh-rt-badge {
padding: 4px 10px;
border-radius: 12px;
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sh-rt-badge-ok {
background: rgba(34, 197, 94, 0.15);
color: #22c55e;
}
.sh-rt-badge-warning {
background: rgba(245, 158, 11, 0.15);
color: #f59e0b;
}
.sh-rt-badge-critical {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
/* Modern Progress Bar */
.sh-rt-progress-modern {
height: 8px;
background: var(--sh-bg-tertiary);
border-radius: 8px;
overflow: hidden;
margin-bottom: 16px;
position: relative;
}
.sh-rt-progress-fill {
height: 100%;
border-radius: 8px;
position: relative;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
animation: shimmer 2s infinite;
}
@keyframes shimmer {
0% { opacity: 0.8; }
50% { opacity: 1; }
100% { opacity: 0.8; }
}
.sh-rt-gradient-cpu {
background: linear-gradient(90deg, #6366f1, #8b5cf6);
box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}
.sh-rt-gradient-memory {
background: linear-gradient(90deg, #8b5cf6, #ec4899);
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.sh-rt-gradient-disk {
background: linear-gradient(90deg, #ec4899, #f43f5e);
box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}
.sh-rt-gradient-temp {
background: linear-gradient(90deg, #f59e0b, #ef4444);
box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
/* Details Grid */
.sh-rt-details-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
margin-bottom: 16px;
}
.sh-rt-detail {
display: flex;
flex-direction: column;
gap: 4px;
}
.sh-rt-detail-label {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--sh-text-muted);
}
.sh-rt-detail-value {
font-size: 13px;
font-weight: 600;
font-family: 'JetBrains Mono', monospace;
color: var(--sh-text-primary);
}
/* Histogram Bars */
.sh-rt-histogram {
padding: 12px;
background: var(--sh-bg-tertiary);
border-radius: 8px;
border: 1px solid var(--sh-border);
}
.sh-rt-histogram-bars {
display: flex;
align-items: flex-end;
justify-content: space-around;
height: 60px;
gap: 8px;
}
.sh-rt-histogram-bar-group {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
flex: 1;
}
.sh-rt-histogram-bar {
width: 100%;
min-height: 4px;
background: linear-gradient(180deg, #6366f1, #8b5cf6);
border-radius: 4px 4px 0 0;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 -2px 12px rgba(99, 102, 241, 0.3);
cursor: pointer;
}
.sh-rt-histogram-bar:hover {
transform: scaleY(1.1);
box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.5);
}
.sh-rt-histogram-label {
font-size: 10px;
font-weight: 600;
color: var(--sh-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Multi-bar (for memory swap) */
.sh-rt-multi-bar {
display: flex;
gap: 8px;
height: 6px;
border-radius: 6px;
overflow: hidden;
}
.sh-rt-bar-segment {
height: 100%;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.sh-rt-bar-used {
background: linear-gradient(90deg, #8b5cf6, #ec4899);
}
.sh-rt-bar-swap {
background: linear-gradient(90deg, #f59e0b, #ef4444);
}
/* Network widget gradient */
.sh-rt-gradient-network {
background: linear-gradient(90deg, #06b6d4, #3b82f6);
box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.sh-rt-metric-network::before { background: linear-gradient(90deg, #06b6d4, #3b82f6); }
/* Services widget gradient */
.sh-rt-gradient-services {
background: linear-gradient(90deg, #22c55e, #10b981);
box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}
.sh-rt-metric-services::before { background: linear-gradient(90deg, #22c55e, #10b981); }
/* === Widget Preferences Bar === */
.sh-widget-prefs-bar {
display: flex;
justify-content: flex-end;
margin-bottom: 20px;
padding: 12px 0;
border-bottom: 1px solid var(--sh-border);
}
.sh-btn-icon {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 20px;
background: var(--sh-bg-secondary);
border: 1px solid var(--sh-border);
border-radius: 8px;
color: var(--sh-text-primary);
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
}
.sh-btn-icon:hover {
background: var(--sh-bg-tertiary);
border-color: var(--sh-primary);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.sh-btn-prefs {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}
/* === Widget Preferences Modal === */
.sh-widget-prefs-modal {
max-width: 600px;
margin: 0 auto;
}
.sh-widget-prefs-modal h3 {
margin: 0 0 12px 0;
font-size: 20px;
font-weight: 700;
color: var(--sh-text-primary);
}
.sh-modal-desc {
margin: 0 0 24px 0;
color: var(--sh-text-secondary);
font-size: 14px;
line-height: 1.6;
}
.sh-prefs-category {
margin-bottom: 24px;
}
.sh-prefs-category-title {
margin: 0 0 12px 0;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
color: var(--sh-text-muted);
}
.sh-prefs-widgets {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 12px;
}
.sh-prefs-widget-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--sh-bg-secondary);
border: 1px solid var(--sh-border);
border-radius: 8px;
cursor: pointer;
transition: all 0.2s ease;
}
.sh-prefs-widget-item:hover {
background: var(--sh-bg-tertiary);
border-color: var(--sh-primary);
}
.sh-prefs-widget-item input[type="checkbox"] {
width: 18px;
height: 18px;
cursor: pointer;
}
.sh-prefs-widget-info {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
}
.sh-prefs-widget-icon {
font-size: 20px;
line-height: 1;
}
.sh-prefs-widget-name {
font-size: 14px;
font-weight: 600;
color: var(--sh-text-primary);
}
/* ======================== */
/* Modern Quick Status (v0.3.2) */
/* ======================== */
.sh-status-modern-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
margin-bottom: 30px;
}
/* Status metric card */
.sh-st-metric {
position: relative;
background: var(--sh-bg-secondary);
border: 1px solid var(--sh-border);
border-radius: 12px;
padding: 20px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden;
}
.sh-st-metric::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
opacity: 0.8;
transition: opacity 0.3s ease;
}
.sh-st-metric:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
border-color: var(--sh-primary);
}
.sh-st-metric:hover::before {
opacity: 1;
}
/* Header */
.sh-st-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 16px;
}
.sh-st-title-group {
display: flex;
align-items: center;
gap: 10px;
}
.sh-st-icon {
font-size: 24px;
line-height: 1;
}
.sh-st-title {
font-size: 16px;
font-weight: 600;
color: var(--sh-text-primary);
}
.sh-st-value-group {
display: flex;
flex-direction: column;
align-items: flex-end;
gap: 6px;
}
.sh-st-value {
font-family: 'JetBrains Mono', 'Monaco', 'Courier New', monospace;
font-size: 20px;
font-weight: 700;
color: var(--sh-text-primary);
line-height: 1;
}
.sh-st-badge {
padding: 4px 10px;
border-radius: 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sh-st-badge-ok {
background: rgba(34, 197, 94, 0.15);
color: #22c55e;
}
.sh-st-badge-warning {
background: rgba(251, 146, 60, 0.15);
color: #fb923c;
}
.sh-st-badge-critical {
background: rgba(239, 68, 68, 0.15);
color: #ef4444;
}
/* Progress bar */
.sh-st-progress-modern {
position: relative;
height: 8px;
background: var(--sh-bg-tertiary);
border-radius: 8px;
overflow: hidden;
margin-bottom: 16px;
}
.sh-st-progress-fill {
height: 100%;
border-radius: 8px;
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
overflow: hidden;
}
.sh-st-progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.3),
transparent
);
animation: shimmer 2s infinite;
}
/* Details grid */
.sh-st-details-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
.sh-st-detail {
display: flex;
flex-direction: column;
gap: 4px;
}
.sh-st-detail-label {
font-size: 11px;
font-weight: 500;
color: var(--sh-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sh-st-detail-value {
font-size: 13px;
font-weight: 600;
color: var(--sh-text-primary);
}
/* Gradients for each status widget */
.sh-st-gradient-internet {
background: linear-gradient(90deg, #3b82f6, #2563eb);
box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.sh-st-metric-internet::before {
background: linear-gradient(90deg, #3b82f6, #2563eb);
}
.sh-st-gradient-dns {
background: linear-gradient(90deg, #10b981, #059669);
box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}
.sh-st-metric-dns::before {
background: linear-gradient(90deg, #10b981, #059669);
}
.sh-st-gradient-ntp {
background: linear-gradient(90deg, #8b5cf6, #7c3aed);
box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}
.sh-st-metric-ntp::before {
background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}
.sh-st-gradient-firewall {
background: linear-gradient(90deg, #f59e0b, #d97706);
box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}
.sh-st-metric-firewall::before {
background: linear-gradient(90deg, #f59e0b, #d97706);
}
/* === Responsive === */
@media (max-width: 768px) {
.sh-overview-header {
flex-direction: column;
gap: 20px;
text-align: center;
}
.sh-overview-title h2 {
justify-content: center;
}
.sh-metrics-grid {
grid-template-columns: 1fr;
}
.sh-info-grid {
grid-template-columns: 1fr;
}
.sh-metric-value {
font-size: 32px;
}
.sh-stats-overview-grid {
grid-template-columns: repeat(2, 1fr);
}
.sh-dashboard-header h2 {
font-size: 22px;
}
/* v0.3.2 - Responsive metrics */
.sh-realtime-metrics {
grid-template-columns: 1fr;
}
.sh-rt-details-grid {
grid-template-columns: 1fr;
}
.sh-rt-histogram-bars {
height: 50px;
}
/* v0.3.2 - Responsive status widgets */
.sh-status-modern-grid {
grid-template-columns: 1fr;
}
.sh-st-details-grid {
grid-template-columns: 1fr;
}
/* Widget prefs modal responsive */
.sh-prefs-widgets {
grid-template-columns: 1fr;
}
.sh-widget-prefs-bar {
justify-content: center;
}
}
/* === Dark Mode === */
[data-theme="dark"] .sh-dashboard-header {
background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
border-color: var(--sh-border);
}
[data-theme="dark"] .sh-metric-card,
[data-theme="dark"] .sh-info-card,
[data-theme="dark"] .sh-overview-header,
[data-theme="dark"] .sh-stat-overview-card,
[data-theme="dark"] .sh-dashboard-badge {
background: var(--sh-bg-card);
border-color: var(--sh-border);
}
[data-theme="dark"] .sh-info-card-header {
background: var(--sh-bg-secondary);
border-color: var(--sh-border);
}
[data-theme="dark"] .sh-metric-progress {
background: var(--sh-bg-tertiary);
}
[data-theme="dark"] .sh-info-row:hover {
background: var(--sh-hover-bg);
}
[data-theme="dark"] .sh-score-excellent {
background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0.08));
}
[data-theme="dark"] .sh-score-good {
background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.08));
}
[data-theme="dark"] .sh-score-warning {
background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
}
[data-theme="dark"] .sh-score-critical {
background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
}
/* === Section Titles === */
.sh-section-title {
font-size: 18px;
font-weight: 700;
margin: 32px 0 16px 0;
color: var(--sh-text-primary);
border-bottom: 2px solid var(--sh-border);
padding-bottom: 8px;
}
/* === System Info Grid (4 columns per prompt) === */
.sh-system-info-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
margin-bottom: 24px;
}
.sh-info-grid-card {
background: var(--sh-bg-card);
border: 1px solid var(--sh-border);
border-radius: 12px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 12px;
transition: all 0.3s ease;
}
.sh-info-grid-card:hover {
transform: translateY(-2px);
box-shadow: 0 8px 16px var(--sh-shadow);
border-color: var(--sh-primary);
}
.sh-info-grid-header {
display: flex;
align-items: center;
gap: 10px;
}
.sh-info-grid-icon {
font-size: 22px;
}
.sh-info-grid-title {
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
color: var(--sh-text-secondary);
}
.sh-info-grid-value {
font-size: 24px;
font-weight: 700;
color: var(--sh-text-primary);
font-family: var(--sh-font-mono);
}
.sh-info-grid-detail {
font-size: 12px;
color: var(--sh-text-secondary);
}
.sh-info-grid-action {
background: var(--sh-bg-secondary);
border: 1px solid var(--sh-border);
color: var(--sh-text-primary);
padding: 8px 14px;
border-radius: 6px;
font-size: 12px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
margin-top: auto;
}
.sh-info-grid-action:hover {
background: var(--sh-primary);
color: white;
border-color: var(--sh-primary);
transform: translateY(-1px);
}
.sh-monospace {
font-family: var(--sh-font-mono);
}
/* === Quick Status Indicators Grid === */
.sh-status-indicators-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.sh-status-indicator {
background: var(--sh-bg-card);
border: 1px solid var(--sh-border);
border-radius: 12px;
padding: 20px;
display: flex;
align-items: center;
gap: 16px;
transition: all 0.3s ease;
border-left: 4px solid var(--sh-border);
}
.sh-status-indicator.sh-status-ok {
border-left-color: var(--sh-success);
}
.sh-status-indicator.sh-status-error {
border-left-color: var(--sh-danger);
}
.sh-status-indicator.sh-status-warning {
border-left-color: var(--sh-warning);
}
.sh-status-indicator:hover {
transform: translateY(-2px);
box-shadow: 0 6px 12px var(--sh-shadow);
}
.sh-status-indicator-icon {
font-size: 28px;
flex-shrink: 0;
}
.sh-status-indicator-content {
flex: 1;
display: flex;
flex-direction: column;
gap: 8px;
}
.sh-status-indicator-label {
font-size: 13px;
font-weight: 600;
color: var(--sh-text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sh-status-indicator-value {
display: flex;
align-items: center;
gap: 8px;
font-size: 15px;
font-weight: 600;
color: var(--sh-text-primary);
}
.sh-status-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border-radius: 50%;
font-size: 14px;
font-weight: 700;
}
.sh-status-badge-ok {
background: var(--sh-success);
color: white;
}
.sh-status-badge-error {
background: var(--sh-danger);
color: white;
}
.sh-status-badge-warning {
background: var(--sh-warning);
color: white;
}
/* === Responsive Adjustments === */
@media (max-width: 768px) {
.sh-system-info-grid {
grid-template-columns: 1fr;
}
.sh-status-indicators-grid {
grid-template-columns: 1fr;
}
.sh-info-grid-value {
font-size: 20px;
}
}