1745 lines
30 KiB
CSS
1745 lines
30 KiB
CSS
/* ============================================================
|
|
DATA VISUALIZATION DISPLAY WALL - MAIN STYLESHEET
|
|
Premium dark-theme monitoring dashboard
|
|
============================================================ */
|
|
|
|
/* ---- CSS Variables / Design Tokens ---- */
|
|
:root {
|
|
/* Colors */
|
|
--bg-primary: #0a0e1a;
|
|
--bg-secondary: #0f1629;
|
|
--bg-card: rgba(15, 22, 50, 0.65);
|
|
--bg-card-hover: rgba(20, 30, 65, 0.75);
|
|
--bg-input: rgba(15, 20, 45, 0.8);
|
|
|
|
--border-color: rgba(99, 102, 241, 0.12);
|
|
--border-hover: rgba(99, 102, 241, 0.3);
|
|
|
|
--text-primary: #e8ecf4;
|
|
--text-secondary: #8892b0;
|
|
--text-muted: #5a6380;
|
|
|
|
/* Accent Colors */
|
|
--accent-indigo: #6366f1;
|
|
--accent-cyan: #06b6d4;
|
|
--accent-emerald: #10b981;
|
|
--accent-amber: #f59e0b;
|
|
--accent-rose: #f43f5e;
|
|
--accent-purple: #a855f7;
|
|
--accent-blue: #3b82f6;
|
|
|
|
/* Gradients */
|
|
--gradient-primary: linear-gradient(135deg, #6366f1, #06b6d4);
|
|
--gradient-cpu: linear-gradient(135deg, #6366f1, #818cf8);
|
|
--gradient-mem: linear-gradient(135deg, #06b6d4, #22d3ee);
|
|
--gradient-disk: linear-gradient(135deg, #f59e0b, #fbbf24);
|
|
--gradient-bandwidth: linear-gradient(135deg, #10b981, #34d399);
|
|
--gradient-servers: linear-gradient(135deg, #a855f7, #c084fc);
|
|
|
|
/* Shadows */
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
|
|
--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
|
|
--shadow-glow-indigo: 0 0 30px rgba(99, 102, 241, 0.15);
|
|
--shadow-glow-cyan: 0 0 30px rgba(6, 182, 212, 0.15);
|
|
|
|
/* Sizing */
|
|
--header-height: 64px;
|
|
--radius-sm: 8px;
|
|
--radius-md: 12px;
|
|
--radius-lg: 16px;
|
|
--radius-xl: 20px;
|
|
|
|
/* Typography */
|
|
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
--font-mono: 'JetBrains Mono', 'Fira Code', monospace;
|
|
}
|
|
|
|
:root.light-theme {
|
|
--bg-primary: #f5f7fb;
|
|
--bg-secondary: #ffffff;
|
|
--bg-card: rgba(255, 255, 255, 0.9);
|
|
--bg-card-hover: rgba(255, 255, 255, 1);
|
|
--bg-input: #ffffff;
|
|
--border-color: rgba(99, 102, 241, 0.1);
|
|
--border-hover: rgba(99, 102, 241, 0.25);
|
|
--text-primary: #1e293b;
|
|
--text-secondary: #64748b;
|
|
--text-muted: #94a3b8;
|
|
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
--shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
|
|
--shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
:root.light-theme .bg-grid {
|
|
background-image:
|
|
linear-gradient(rgba(99, 102, 241, 0.06) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(99, 102, 241, 0.06) 1px, transparent 1px);
|
|
}
|
|
|
|
:root.light-theme .header {
|
|
background: rgba(255, 255, 255, 0.8);
|
|
}
|
|
|
|
:root.light-theme .stat-card {
|
|
background: #ffffff;
|
|
}
|
|
|
|
:root.light-theme .chart-card {
|
|
background: #ffffff;
|
|
}
|
|
|
|
:root.light-theme .chart-footer {
|
|
background: rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
:root.light-theme .pagination-footer {
|
|
background: rgba(255, 255, 255, 0.6);
|
|
}
|
|
|
|
:root.light-theme .server-table th {
|
|
background: rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
:root.light-theme .modal {
|
|
background: #ffffff;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
:root.light-theme .modal-overlay {
|
|
background: rgba(255, 255, 255, 0.4);
|
|
}
|
|
|
|
/* ---- Reset & Base ---- */
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html {
|
|
font-size: 16px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
overflow-x: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
/* ---- Animated Background ---- */
|
|
.bg-grid {
|
|
position: fixed;
|
|
inset: 0;
|
|
background-image:
|
|
linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
|
|
background-size: 60px 60px;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.bg-glow {
|
|
position: fixed;
|
|
border-radius: 50%;
|
|
filter: blur(120px);
|
|
opacity: 0.4;
|
|
z-index: 0;
|
|
pointer-events: none;
|
|
animation: glowFloat 20s ease-in-out infinite;
|
|
}
|
|
|
|
.bg-glow-1 {
|
|
width: 600px;
|
|
height: 600px;
|
|
background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
|
|
top: -200px;
|
|
left: -100px;
|
|
animation-delay: 0s;
|
|
}
|
|
|
|
.bg-glow-2 {
|
|
width: 500px;
|
|
height: 500px;
|
|
background: radial-gradient(circle, rgba(6, 182, 212, 0.12), transparent 70%);
|
|
bottom: -150px;
|
|
right: -100px;
|
|
animation-delay: -7s;
|
|
}
|
|
|
|
.bg-glow-3 {
|
|
width: 400px;
|
|
height: 400px;
|
|
background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent 70%);
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
animation-delay: -14s;
|
|
}
|
|
|
|
@keyframes glowFloat {
|
|
|
|
0%,
|
|
100% {
|
|
transform: translate(0, 0) scale(1);
|
|
}
|
|
|
|
25% {
|
|
transform: translate(30px, -30px) scale(1.05);
|
|
}
|
|
|
|
50% {
|
|
transform: translate(-20px, 20px) scale(0.95);
|
|
}
|
|
|
|
75% {
|
|
transform: translate(25px, 15px) scale(1.02);
|
|
}
|
|
}
|
|
|
|
/* ---- App Container ---- */
|
|
#app {
|
|
position: relative;
|
|
z-index: 1;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* ---- Header ---- */
|
|
.header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
height: var(--header-height);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 28px;
|
|
background: rgba(10, 14, 26, 0.85);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 1.15rem;
|
|
font-weight: 700;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
letter-spacing: -0.02em;
|
|
}
|
|
|
|
.header-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
font-size: 0.82rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.server-count,
|
|
.source-count {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: var(--accent-emerald);
|
|
}
|
|
|
|
.dot-pulse {
|
|
animation: pulse 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse {
|
|
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.7;
|
|
box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
|
|
}
|
|
}
|
|
|
|
.header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.clock {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.btn-settings {
|
|
width: 40px;
|
|
height: 40px;
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
background: var(--bg-card);
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.25s ease;
|
|
}
|
|
|
|
.btn-settings svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.btn-settings:hover {
|
|
border-color: var(--border-hover);
|
|
color: var(--accent-indigo);
|
|
background: rgba(99, 102, 241, 0.08);
|
|
transform: rotate(30deg);
|
|
}
|
|
|
|
/* ---- Theme Switch ---- */
|
|
.theme-switch-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.theme-switch {
|
|
display: inline-block;
|
|
height: 28px;
|
|
position: relative;
|
|
width: 54px;
|
|
}
|
|
|
|
.theme-switch input {
|
|
display: none;
|
|
}
|
|
|
|
.slider {
|
|
background-color: var(--bg-card);
|
|
bottom: 0;
|
|
cursor: pointer;
|
|
left: 0;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
transition: .4s;
|
|
border: 1px solid var(--border-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.slider:before {
|
|
background-color: #fff;
|
|
bottom: 3px;
|
|
content: "";
|
|
height: 20px;
|
|
left: 4px;
|
|
position: absolute;
|
|
transition: .4s;
|
|
width: 20px;
|
|
z-index: 2;
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 34px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked+.slider {
|
|
background-color: var(--accent-indigo);
|
|
border-color: var(--accent-indigo);
|
|
}
|
|
|
|
input:checked+.slider:before {
|
|
transform: translateX(24px);
|
|
}
|
|
|
|
.theme-icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
z-index: 1;
|
|
transition: opacity 0.3s;
|
|
}
|
|
|
|
.sun-icon {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.moon-icon {
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
/* ---- Gauge Time ---- */
|
|
.title-time {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--accent-indigo);
|
|
opacity: 0.9;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
:root.light-theme .title-time {
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
/* ---- Dashboard Layout ---- */
|
|
.dashboard {
|
|
padding: 24px 28px 40px;
|
|
max-width: 1600px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* ---- Stat Cards ---- */
|
|
.stat-cards {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.stat-card {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
padding: 20px 22px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
backdrop-filter: blur(12px);
|
|
transition: all 0.3s ease;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.stat-card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.stat-card-servers::before {
|
|
background: var(--gradient-servers);
|
|
}
|
|
|
|
.stat-card-cpu::before {
|
|
background: var(--gradient-cpu);
|
|
}
|
|
|
|
.stat-card-mem::before {
|
|
background: var(--gradient-mem);
|
|
}
|
|
|
|
.stat-card-disk::before {
|
|
background: var(--gradient-disk);
|
|
}
|
|
|
|
.stat-card-bandwidth::before {
|
|
background: var(--gradient-bandwidth);
|
|
}
|
|
|
|
.stat-card:hover {
|
|
border-color: var(--border-hover);
|
|
background: var(--bg-card-hover);
|
|
transform: translateY(-2px);
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.stat-card-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: var(--radius-md);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.stat-card-servers .stat-card-icon {
|
|
background: rgba(168, 85, 247, 0.1);
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.stat-card-cpu .stat-card-icon {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
.stat-card-mem .stat-card-icon {
|
|
background: rgba(6, 182, 212, 0.1);
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.stat-card-disk .stat-card-icon {
|
|
background: rgba(245, 158, 11, 0.1);
|
|
color: var(--accent-amber);
|
|
}
|
|
|
|
.stat-card-bandwidth .stat-card-icon {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: var(--accent-emerald);
|
|
}
|
|
|
|
.stat-card-icon svg {
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.stat-card-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.stat-card-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.stat-card-value {
|
|
font-size: 1.5rem;
|
|
font-weight: 800;
|
|
font-family: var(--font-mono);
|
|
letter-spacing: -0.02em;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.stat-card-servers .stat-card-value {
|
|
color: var(--accent-purple);
|
|
}
|
|
|
|
.stat-card-cpu .stat-card-value {
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
.stat-card-mem .stat-card-value {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.stat-card-disk .stat-card-value {
|
|
color: var(--accent-amber);
|
|
}
|
|
|
|
.stat-card-bandwidth .stat-card-value {
|
|
color: var(--accent-emerald);
|
|
}
|
|
|
|
.stat-card-sub {
|
|
font-size: 0.72rem;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
/* ---- Charts Section ---- */
|
|
.charts-section {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.chart-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-lg);
|
|
backdrop-filter: blur(12px);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.chart-card:hover {
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.chart-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 18px 22px 0;
|
|
}
|
|
|
|
.chart-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.chart-header-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.source-select {
|
|
padding: 6px 12px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.source-select:hover {
|
|
border-color: var(--border-hover);
|
|
background: rgba(99, 102, 241, 0.05);
|
|
}
|
|
|
|
.chart-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chart-title-icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
.chart-legend {
|
|
display: flex;
|
|
gap: 24px;
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.legend-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
transition: opacity 0.3s ease;
|
|
}
|
|
|
|
.legend-item.disabled {
|
|
opacity: 0.35;
|
|
}
|
|
|
|
.legend-dot {
|
|
width: 10px;
|
|
height: 3px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.legend-rx {
|
|
background: var(--accent-cyan);
|
|
}
|
|
|
|
.legend-tx {
|
|
background: var(--accent-indigo);
|
|
}
|
|
|
|
.legend-p95 {
|
|
background: var(--accent-rose);
|
|
height: 2px;
|
|
width: 12px;
|
|
border-top: 1px dashed var(--accent-rose);
|
|
background: transparent;
|
|
}
|
|
|
|
.chart-body {
|
|
padding: 12px 22px;
|
|
height: 280px;
|
|
}
|
|
|
|
.chart-body canvas {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
|
|
.chart-footer {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 32px;
|
|
padding: 14px 22px;
|
|
border-top: 1px solid var(--border-color);
|
|
background: rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.traffic-stat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.traffic-label {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.traffic-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.traffic-stat-total .traffic-value {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
.traffic-stat-p95 .traffic-value {
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
.traffic-stat-time .traffic-value {
|
|
color: var(--accent-cyan);
|
|
}
|
|
|
|
/* ---- Gauges ---- */
|
|
.gauges-container {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
padding: 24px 16px 32px;
|
|
}
|
|
|
|
.gauge-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
}
|
|
|
|
.gauge {
|
|
position: relative;
|
|
width: 100px;
|
|
height: 100px;
|
|
}
|
|
|
|
.gauge svg {
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.gauge-bg {
|
|
fill: none;
|
|
stroke: rgba(255, 255, 255, 0.04);
|
|
stroke-width: 8;
|
|
}
|
|
|
|
.gauge-fill {
|
|
fill: none;
|
|
stroke-width: 8;
|
|
stroke-linecap: round;
|
|
stroke-dasharray: 326.7;
|
|
stroke-dashoffset: 326.7;
|
|
transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.gauge-fill-cpu {
|
|
stroke: url(#gaugeCpuGrad);
|
|
}
|
|
|
|
.gauge-fill-ram {
|
|
stroke: url(#gaugeRamGrad);
|
|
}
|
|
|
|
.gauge-fill-disk {
|
|
stroke: url(#gaugeDiskGrad);
|
|
}
|
|
|
|
.gauge-center {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.gauge-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.35rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.gauge-label {
|
|
font-size: 0.65rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ---- Server Table ---- */
|
|
.server-table-wrap {
|
|
overflow-x: auto;
|
|
padding: 16px 22px 8px;
|
|
}
|
|
|
|
.server-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
.server-table thead {
|
|
position: sticky;
|
|
top: 0;
|
|
}
|
|
|
|
.server-table th {
|
|
padding: 12px 16px;
|
|
text-align: left;
|
|
font-weight: 600;
|
|
font-size: 0.72rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--text-muted);
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.server-table td {
|
|
padding: 12px 16px;
|
|
border-bottom: 1px solid rgba(99, 102, 241, 0.05);
|
|
color: var(--text-secondary);
|
|
font-family: var(--font-mono);
|
|
font-size: 0.78rem;
|
|
}
|
|
|
|
.server-table tbody tr {
|
|
transition: background 0.2s ease;
|
|
}
|
|
|
|
.server-table tbody tr:hover {
|
|
background: rgba(99, 102, 241, 0.04);
|
|
}
|
|
|
|
.server-table .empty-row td {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.status-dot {
|
|
display: inline-block;
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.status-dot-online {
|
|
background: var(--accent-emerald);
|
|
box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.status-dot-offline {
|
|
background: var(--accent-rose);
|
|
box-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
|
|
}
|
|
|
|
/* Pagination Footer */
|
|
.pagination-footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 22px;
|
|
background: rgba(0, 0, 0, 0.15);
|
|
border-top: 1px solid var(--border-color);
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.page-size-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pagination-controls {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.page-btn {
|
|
padding: 4px 10px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
color: var(--text-primary);
|
|
font-family: var(--font-mono);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.page-btn:hover {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
border-color: var(--accent-indigo);
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
.page-btn.active {
|
|
background: var(--accent-indigo);
|
|
color: white;
|
|
border-color: var(--accent-indigo);
|
|
}
|
|
|
|
.page-btn[disabled] {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* Server Detail Modal Enhancements */
|
|
.detail-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.detail-metrics-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 10px;
|
|
}
|
|
|
|
.metric-item {
|
|
margin-bottom: 8px;
|
|
border-radius: var(--radius-md);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
overflow: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.metric-item-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px 16px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.metric-item-header:hover {
|
|
background: rgba(99, 102, 241, 0.05);
|
|
}
|
|
|
|
.metric-label-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.metric-label {
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.metric-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
.metric-item-content {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
background: rgba(0, 0, 0, 0.1);
|
|
border-top: 0px solid transparent;
|
|
}
|
|
|
|
.metric-item.active .metric-item-content {
|
|
max-height: 350px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.metric-item.active {
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
border-color: var(--accent-indigo);
|
|
}
|
|
|
|
.chart-controls {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.time-range-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.time-range-selector {
|
|
display: flex;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 2px;
|
|
}
|
|
|
|
.time-range-btn {
|
|
padding: 4px 10px;
|
|
font-size: 0.75rem;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-radius: 4px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.time-range-btn:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.time-range-btn.active {
|
|
background: var(--accent-indigo);
|
|
color: white;
|
|
}
|
|
|
|
.custom-range-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 2px 2px 2px 10px;
|
|
}
|
|
|
|
.custom-range-input {
|
|
width: 90px;
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 0.75rem;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.absolute-range-selector {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
padding: 2px 2px 2px 10px;
|
|
}
|
|
|
|
.time-input {
|
|
background: transparent;
|
|
border: none;
|
|
font-size: 0.75rem;
|
|
color: var(--text-primary);
|
|
outline: none;
|
|
font-family: var(--font-mono);
|
|
padding: 2px 0;
|
|
}
|
|
|
|
/* Specific styling for datetime-local icon/color in some browsers */
|
|
.time-input::-webkit-calendar-picker-indicator {
|
|
filter: invert(0.5);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.light-theme .time-input::-webkit-calendar-picker-indicator {
|
|
filter: invert(0);
|
|
}
|
|
|
|
.btn-custom-go {
|
|
padding: 4px 8px;
|
|
font-size: 0.7rem;
|
|
border: none;
|
|
background: var(--accent-indigo);
|
|
color: white;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.btn-custom-go:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.detail-chart-wrapper {
|
|
height: 200px;
|
|
padding: 0 10px 10px 10px;
|
|
position: relative;
|
|
}
|
|
|
|
.detail-info-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 1px;
|
|
background: var(--border-color);
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.info-item {
|
|
background: var(--bg-card);
|
|
padding: 15px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.info-label {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.info-value {
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.chevron-icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
transition: transform 0.3s ease;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.metric-item.active .chevron-icon {
|
|
transform: rotate(180deg);
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
/* Light Theme Adjustments */
|
|
.light-theme .metric-item-content {
|
|
background: rgba(0, 0, 0, 0.02);
|
|
}
|
|
|
|
.light-theme .detail-info-grid {
|
|
background: var(--border-color);
|
|
}
|
|
|
|
/* Usage bars in table */
|
|
.usage-bar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.usage-bar-track {
|
|
width: 60px;
|
|
height: 4px;
|
|
background: rgba(255, 255, 255, 0.06);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.usage-bar-fill {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
transition: width 0.6s ease;
|
|
}
|
|
|
|
.usage-bar-fill-cpu {
|
|
background: var(--accent-indigo);
|
|
}
|
|
|
|
.usage-bar-fill-mem {
|
|
background: var(--accent-cyan);
|
|
}
|
|
|
|
.usage-bar-fill-disk {
|
|
background: var(--accent-amber);
|
|
}
|
|
|
|
/* ---- Modal ---- */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(0, 0, 0, 0.6);
|
|
backdrop-filter: blur(8px);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.modal-overlay.active {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
.modal {
|
|
width: 90%;
|
|
max-width: 720px;
|
|
max-height: 80vh;
|
|
background: var(--bg-secondary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-xl);
|
|
overflow: hidden;
|
|
transform: translateY(20px) scale(0.97);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.modal-overlay.active .modal {
|
|
transform: translateY(0) scale(1);
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.modal-header h2 {
|
|
font-size: 1.05rem;
|
|
font-weight: 700;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
/* ---- Modal Tabs ---- */
|
|
.modal-tabs {
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.modal-tab {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
padding: 8px 4px;
|
|
cursor: pointer;
|
|
position: relative;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.modal-tab:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-tab.active {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.modal-tab.active::after {
|
|
content: '';
|
|
position: absolute;
|
|
bottom: -21px;
|
|
/* Align with header border */
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: var(--gradient-primary);
|
|
z-index: 1;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* ---- Logo Styling ---- */
|
|
#logoIconContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
}
|
|
|
|
.logo-icon-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
.modal-close {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: none;
|
|
background: none;
|
|
color: var(--text-muted);
|
|
font-size: 1.4rem;
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.modal-close:hover {
|
|
background: rgba(244, 63, 94, 0.1);
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
max-height: calc(80vh - 80px);
|
|
}
|
|
|
|
/* ---- Add Source Form ---- */
|
|
.add-source-form h3,
|
|
.source-list h3 {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.form-group {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.form-group-wide {
|
|
flex: 2;
|
|
}
|
|
|
|
.form-group label {
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.form-group input {
|
|
padding: 10px 14px;
|
|
background: var(--bg-input);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-sm);
|
|
color: var(--text-primary);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.form-group input:focus {
|
|
border-color: var(--accent-indigo);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.form-group input::placeholder {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 10px 18px;
|
|
border: none;
|
|
border-radius: var(--radius-sm);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-test {
|
|
background: rgba(6, 182, 212, 0.1);
|
|
color: var(--accent-cyan);
|
|
border: 1px solid rgba(6, 182, 212, 0.2);
|
|
}
|
|
|
|
.btn-test:hover {
|
|
background: rgba(6, 182, 212, 0.2);
|
|
}
|
|
|
|
.btn-add {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
}
|
|
|
|
.btn-add:hover {
|
|
opacity: 0.9;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-delete {
|
|
padding: 6px 12px;
|
|
background: rgba(244, 63, 94, 0.1);
|
|
color: var(--accent-rose);
|
|
border: 1px solid rgba(244, 63, 94, 0.2);
|
|
}
|
|
|
|
.btn-delete:hover {
|
|
background: rgba(244, 63, 94, 0.2);
|
|
}
|
|
|
|
.form-message {
|
|
margin-top: 8px;
|
|
padding: 10px 14px;
|
|
border-radius: var(--radius-sm);
|
|
font-size: 0.8rem;
|
|
display: none;
|
|
}
|
|
|
|
.form-message.success {
|
|
display: block;
|
|
background: rgba(16, 185, 129, 0.1);
|
|
border: 1px solid rgba(16, 185, 129, 0.2);
|
|
color: var(--accent-emerald);
|
|
}
|
|
|
|
.form-message.error {
|
|
display: block;
|
|
background: rgba(244, 63, 94, 0.1);
|
|
border: 1px solid rgba(244, 63, 94, 0.2);
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
/* ---- Source List ---- */
|
|
.source-list {
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.source-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.source-item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 14px 18px;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--radius-md);
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.source-item:hover {
|
|
border-color: var(--border-hover);
|
|
}
|
|
|
|
.source-item-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.source-item-name {
|
|
font-weight: 600;
|
|
font-size: 0.88rem;
|
|
color: var(--text-primary);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.source-item-url {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.source-item-desc {
|
|
font-size: 0.75rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.source-status {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
padding: 3px 8px;
|
|
border-radius: 20px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.source-status-online {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: var(--accent-emerald);
|
|
}
|
|
|
|
.source-status-offline {
|
|
background: rgba(244, 63, 94, 0.1);
|
|
color: var(--accent-rose);
|
|
}
|
|
|
|
.source-empty {
|
|
text-align: center;
|
|
padding: 32px;
|
|
color: var(--text-muted);
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.source-item-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ---- Server Detail Grid ---- */
|
|
.detail-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 16px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.detail-item {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-color);
|
|
padding: 16px;
|
|
border-radius: var(--radius-md);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.detail-label {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.detail-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--accent-indigo);
|
|
}
|
|
|
|
:root.light-theme .detail-value {
|
|
color: var(--accent-blue);
|
|
}
|
|
|
|
/* ---- Animations ---- */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(16px);
|
|
}
|
|
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.stat-card {
|
|
animation: fadeInUp 0.5s ease forwards;
|
|
}
|
|
|
|
.stat-card:nth-child(1) {
|
|
animation-delay: 0.05s;
|
|
}
|
|
|
|
.stat-card:nth-child(2) {
|
|
animation-delay: 0.1s;
|
|
}
|
|
|
|
.stat-card:nth-child(3) {
|
|
animation-delay: 0.15s;
|
|
}
|
|
|
|
.stat-card:nth-child(4) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.stat-card:nth-child(5) {
|
|
animation-delay: 0.25s;
|
|
}
|
|
|
|
.chart-card {
|
|
animation: fadeInUp 0.5s ease 0.3s forwards;
|
|
opacity: 0;
|
|
}
|
|
|
|
.server-list-section .chart-card {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
/* Value update animation */
|
|
@keyframes valueFlash {
|
|
0% {
|
|
opacity: 1;
|
|
}
|
|
|
|
50% {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.value-update {
|
|
animation: valueFlash 0.3s ease;
|
|
}
|
|
|
|
/* ---- Scrollbar ---- */
|
|
::-webkit-scrollbar {
|
|
width: 6px;
|
|
height: 6px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
/* ---- Responsive ---- */
|
|
@media (max-width: 1280px) {
|
|
.stat-cards {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.charts-section {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.header {
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.header-meta {
|
|
display: none;
|
|
}
|
|
|
|
.dashboard {
|
|
padding: 16px;
|
|
}
|
|
|
|
.stat-cards {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.stat-card {
|
|
padding: 14px 16px;
|
|
}
|
|
|
|
.stat-card-value {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.chart-footer {
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
}
|
|
|
|
.form-row {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.form-actions {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.stat-cards {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
} |