secubox-openwrt/luci-app-secubox/htdocs/luci-static/resources/secubox/monitoring.css
CyberMind-FR 9505668da8 feat: Enhanced modules - CDN Cache, Network Modes, and SecuBox monitoring
Comprehensive updates across multiple core modules with improved UI,
menu structure, and monitoring capabilities.

## CDN Cache Updates (4 files)
- Refined dashboard.css styling (408 lines optimized)
- Enhanced cache.js view with better functionality (262 lines)
- Improved overview.js with cleaner structure (312 lines)
- Updated statistics.js for better performance (217 lines)

## Network Modes Updates (1 file)
- Streamlined menu.d JSON configuration (161 lines cleaned)
- Improved menu structure and organization

## SecuBox Updates (4 files)
- Enhanced monitoring.css with improved styles (50 lines)
- Updated dashboard.js with monitoring integration (81 lines)
- Refactored monitoring.js for better performance (452 lines)
- Extended menu.d JSON with monitoring features (36 lines added)

Summary:
- 9 files changed
- +854 lines added, -1125 lines removed
- Net optimization: -271 lines (cleaner, more efficient code)
- Improved UI/UX across all modules
- Better code organization and performance

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-28 21:52:24 +01:00

202 lines
3.6 KiB
CSS

/* SecuBox Monitoring Page Styles * Version: 0.3.0
*/
.secubox-monitoring-page {
padding: 24px;
display: flex;
flex-direction: column;
gap: 24px;
}
.secubox-monitoring-hero {
margin-bottom: 0;
}
.secubox-monitoring-badges {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 16px;
margin-top: 16px;
}
.secubox-hero-badge {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-radius: 12px;
background: rgba(15, 23, 42, 0.75);
border: 1px solid rgba(255, 255, 255, 0.06);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.secubox-hero-icon {
font-size: 20px;
line-height: 1;
}
.secubox-hero-label {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--sb-text-muted);
}
.secubox-hero-value {
display: block;
font-size: 20px;
font-weight: 700;
color: var(--sb-text);
}
/* Charts Grid * Version: 0.3.0
*/
.secubox-charts-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
gap: 24px;
margin-bottom: 24px;
}
@media (max-width: 1024px) {
.secubox-charts-grid {
grid-template-columns: 1fr;
}
}
/* Chart Card */
.secubox-chart-card {
background: var(--sb-bg-card);
border-radius: 12px;
padding: 24px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
transition: transform 0.2s, box-shadow 0.2s;
}
.secubox-chart-card:hover {
transform: translateY(-4px);
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.secubox-chart-title {
margin: 0 0 16px 0;
font-size: 16px;
font-weight: 600;
color: var(--sb-text);
}
.secubox-chart-container {
width: 100%;
height: 200px;
position: relative;
margin-bottom: 16px;
background: var(--sb-bg);
border-radius: 8px;
overflow: hidden;
}
.secubox-chart {
width: 100%;
height: 100%;
}
.secubox-chart-legend {
display: flex;
justify-content: space-between;
align-items: center;
padding-top: 12px;
border-top: 2px solid #f1f5f9;
}
.secubox-current-value {
font-size: 24px;
font-weight: 700;
color: #6366f1;
}
.secubox-chart-unit {
font-size: 12px;
color: var(--sb-text-muted);
text-transform: uppercase;
letter-spacing: 0.5px;
}
/* Stats Table */
.secubox-stats-table {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 16px;
}
.secubox-stat-item {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background: var(--sb-bg);
border-radius: 8px;
transition: background 0.2s;
}
.secubox-stat-item:hover {
background: rgba(255,255,255,0.04);
}
.secubox-stat-icon {
font-size: 32px;
flex-shrink: 0;
}
.secubox-stat-details {
flex: 1;
}
.secubox-stat-label {
font-size: 13px;
color: var(--sb-text-muted);
margin-bottom: 4px;
}
.secubox-stat-value {
font-size: 20px;
font-weight: 600;
color: var(--sb-text);
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.secubox-chart-card {
animation: fadeIn 0.5s ease-out;
}
.secubox-chart-card:nth-child(1) { animation-delay: 0.1s; }
.secubox-chart-card:nth-child(2) { animation-delay: 0.2s; }
.secubox-chart-card:nth-child(3) { animation-delay: 0.3s; }
.secubox-chart-card:nth-child(4) { animation-delay: 0.4s; }
/* Chart SVG Animations */
@keyframes drawLine {
from {
stroke-dashoffset: 1000;
}
to {
stroke-dashoffset: 0;
}
}
.secubox-chart polyline {
stroke-dasharray: 1000;
stroke-dashoffset: 1000;
animation: drawLine 1s ease-out forwards;
}