secubox-openwrt/luci-app-secubox/htdocs/luci-static/resources/secubox/dashboard.css
CyberMind-FR a6477b8710 feat: Version 0.4.1 - Enhanced network modes and system improvements
Major Enhancements:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Network Modes Module:
- Added 3 new network modes:
  * Double NAT mode (doublenat.js) - Cascaded router configuration
  * Multi-WAN mode (multiwan.js) - Load balancing and failover
  * VPN Relay mode (vpnrelay.js) - VPN gateway configuration
- Enhanced existing modes:
  * Access Point improvements
  * Travel mode refinements
  * Router mode enhancements
  * Relay mode updates
  * Sniffer mode optimizations
- Updated wizard with new mode options
- Enhanced API with new mode support
- Improved dashboard CSS styling
- Updated helpers for new modes
- Extended RPCD backend functionality
- Updated menu structure for new modes
- Enhanced UCI configuration

System Hub Module:
- Added dedicated logs.css stylesheet
- Enhanced logs.js view with better styling
- Improved overview.css responsive design
- Enhanced services.css for better UX
- Updated overview.js with theme integration
- Improved services.js layout

SecuBox Dashboard:
- Enhanced dashboard.css with theme variables
- Improved dashboard.js responsiveness
- Better integration with global theme

Files Changed:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Network Modes (17 files):
  Modified: api.js, dashboard.css, helpers.js, menu, config, RPCD backend
  Modified Views: accesspoint, overview, relay, router, sniffer, travel, wizard
  New Views: doublenat, multiwan, vpnrelay

System Hub (6 files):
  New: logs.css
  Modified: overview.css, services.css, logs.js, overview.js, services.js

SecuBox (2 files):
  Modified: dashboard.css, dashboard.js

Total: 25 files changed (21 modified, 4 new)

Technical Improvements:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
- Global theme CSS variable usage
- Responsive design enhancements
- Improved error handling
- Better mode validation
- Enhanced user feedback
- Optimized CSS performance
- Improved accessibility

Network Mode Capabilities:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1. Router Mode - Standard routing
2. Access Point Mode - WiFi AP with bridge
3. Relay Mode - WiFi repeater/extender
4. Travel Mode - Portable router configuration
5. Sniffer Mode - Network monitoring
6. Double NAT Mode - Cascaded NAT for network isolation (NEW)
7. Multi-WAN Mode - Multiple uplinks with load balancing (NEW)
8. VPN Relay Mode - VPN gateway and tunnel endpoint (NEW)

Breaking Changes:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
None - All changes are backward compatible

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

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

430 lines
7.6 KiB
CSS

/* SecuBox Control Center UI - regenerated to match design brief */
:root {
--sb-bg: #090b12;
--sb-panel: rgba(17, 21, 34, 0.9);
--sb-border: rgba(255, 255, 255, 0.08);
--sb-text: #f3f4f6;
--sb-text-muted: #9ca3af;
--sb-gradient: linear-gradient(135deg, #6366f1, #9333ea);
--sb-gradient-soft: linear-gradient(135deg, rgba(99,102,241,.35), rgba(147,51,234,.35));
--sb-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
--sb-radius: 18px;
--sb-card-radius: 20px;
--sb-spacing: 20px;
--sb-font-mono: 'JetBrains Mono', 'SFMono-Regular', Menlo, monospace;
}
.secubox-dashboard {
min-height: 100vh;
padding: 32px;
background: radial-gradient(circle at top, rgba(99,102,241,.15), transparent),
radial-gradient(circle at bottom, rgba(236,72,153,.12), transparent),
var(--sb-bg);
color: var(--sb-text);
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Header */
.sb-header {
background: var(--sb-gradient);
border-radius: var(--sb-card-radius);
padding: 28px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
box-shadow: var(--sb-shadow);
}
.sb-header-info {
display: flex;
align-items: center;
gap: 18px;
}
.sb-header-icon {
width: 64px;
height: 64px;
border-radius: 16px;
background: rgba(255, 255, 255, 0.15);
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
}
.sb-title {
margin: 0;
font-size: 28px;
font-weight: 700;
}
.sb-subtitle {
margin: 4px 0 0;
color: rgba(255,255,255,.85);
font-size: 14px;
}
.sb-header-meta {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.sb-badge {
background: rgba(255,255,255,0.2);
padding: 6px 14px;
border-radius: 999px;
font-size: 14px;
font-weight: 600;
border: 1px solid rgba(255,255,255,0.35);
}
.sb-badge-ghost {
background: rgba(255,255,255,0.1);
}
/* Stats */
.sb-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 20px;
margin: 28px 0;
}
.sb-stat-card {
background: var(--sb-panel);
border-radius: var(--sb-card-radius);
padding: 18px 22px;
border: 1px solid var(--sb-border);
box-shadow: 0 12px 25px rgba(0,0,0,0.35);
display: flex;
align-items: center;
gap: 16px;
}
.sb-stat-icon {
font-size: 28px;
}
.sb-stat-value {
font-size: 30px;
font-weight: 700;
line-height: 1;
}
.sb-stat-label {
font-size: 13px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--sb-text-muted);
}
/* Layout */
.sb-main-grid {
display: grid;
grid-template-columns: 1.3fr 0.7fr;
gap: 26px;
}
.sb-grid-left,
.sb-grid-right {
display: flex;
flex-direction: column;
gap: 26px;
}
.sb-card {
background: var(--sb-panel);
border-radius: var(--sb-card-radius);
padding: 24px;
border: 1px solid var(--sb-border);
box-shadow: var(--sb-shadow);
}
.sb-card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 18px;
}
.sb-card-header h2 {
margin: 0;
font-size: 20px;
}
.sb-card-subtitle {
margin: 4px 0 0;
color: var(--sb-text-muted);
font-size: 14px;
}
/* Modules section */
.sb-filter-tabs {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.sb-filter-tab {
background: transparent;
border: 1px solid rgba(255,255,255,0.15);
border-radius: 999px;
color: var(--sb-text);
padding: 8px 16px;
cursor: pointer;
font-weight: 600;
transition: all 0.2s ease;
}
.sb-filter-tab.active {
background: rgba(255,255,255,0.15);
border-color: rgba(255,255,255,0.35);
}
.sb-module-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 16px;
}
.sb-module-card {
background: rgba(8,10,17,0.85);
border: 1px solid rgba(255,255,255,0.08);
border-radius: 18px;
padding: 18px;
display: flex;
flex-direction: column;
gap: 12px;
}
.sb-module-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.sb-module-icon {
width: 48px;
height: 48px;
border-radius: 16px;
background: rgba(255,255,255,0.07);
display: flex;
align-items: center;
justify-content: center;
font-size: 26px;
}
.sb-status-pill {
padding: 4px 12px;
border-radius: 999px;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.sb-status-active .sb-status-pill {
background: rgba(34,197,94,0.15);
color: #34d399;
}
.sb-status-error .sb-status-pill {
background: rgba(248,113,113,0.18);
color: #f87171;
}
.sb-module-meta {
display: flex;
justify-content: space-between;
font-size: 13px;
color: var(--sb-text-muted);
}
.sb-module-actions {
display: flex;
gap: 10px;
}
.sb-btn {
flex: 1;
border-radius: 12px;
padding: 10px 16px;
background: rgba(255,255,255,0.05);
color: white;
border: 1px solid rgba(255,255,255,0.15);
cursor: pointer;
font-weight: 600;
transition: all 0.2s;
}
.sb-btn-primary {
background: rgba(99,102,241,0.25);
border-color: rgba(99,102,241,0.5);
}
.sb-btn-ghost:hover {
background: rgba(255,255,255,0.12);
}
.sb-btn-primary:hover {
background: rgba(99,102,241,0.4);
}
/* Health */
.sb-health-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
gap: 16px;
}
.sb-health-metric {
background: rgba(255,255,255,0.03);
border-radius: 16px;
padding: 16px;
border: 1px solid rgba(255,255,255,0.06);
display: grid;
grid-template-columns: auto 1fr auto;
align-items: center;
gap: 12px;
}
.sb-health-icon {
font-size: 26px;
}
.sb-health-label {
font-weight: 600;
}
.sb-health-detail {
font-size: 13px;
color: var(--sb-text-muted);
}
.sb-health-bar {
grid-column: 2 / span 2;
height: 6px;
background: rgba(255,255,255,0.08);
border-radius: 999px;
overflow: hidden;
}
.sb-health-progress {
height: 100%;
transition: width 0.3s ease;
}
.sb-ok { background: linear-gradient(90deg, #22c55e, #16a34a); }
.sb-warn { background: linear-gradient(90deg, #f97316, #ea580c); }
.sb-danger { background: linear-gradient(90deg, #ef4444, #dc2626); }
.sb-health-percent {
font-family: var(--sb-font-mono);
}
/* Quick actions */
.sb-actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
}
.sb-action-btn {
border: none;
border-radius: 16px;
padding: 14px;
font-size: 15px;
font-weight: 600;
color: white;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
box-shadow: 0 10px 20px rgba(0,0,0,0.35);
transition: transform 0.2s;
}
.sb-action-btn:hover {
transform: translateY(-3px);
}
.sb-action-icon {
font-size: 22px;
}
.sb-orange { background: linear-gradient(135deg,#fb923c,#f97316); }
.sb-blue { background: linear-gradient(135deg,#38bdf8,#2563eb); }
.sb-indigo { background: linear-gradient(135deg,#818cf8,#4f46e5); }
.sb-green { background: linear-gradient(135deg,#34d399,#059669); }
/* Alerts */
.sb-alert-list {
display: flex;
flex-direction: column;
gap: 14px;
}
.sb-alert-item {
padding: 14px 16px;
border-radius: 14px;
border: 1px solid rgba(255,255,255,0.08);
background: rgba(255,255,255,0.02);
display: flex;
gap: 18px;
}
.sb-alert-time {
font-family: var(--sb-font-mono);
color: var(--sb-text-muted);
font-size: 13px;
min-width: 120px;
}
.sb-alert-details strong {
display: block;
margin-bottom: 4px;
}
.sb-alert-meta {
display: inline-block;
margin-top: 6px;
font-size: 12px;
color: var(--sb-text-muted);
}
.sb-info { border-left: 3px solid #6366f1; }
.sb-warning { border-left: 3px solid #fbbf24; }
.sb-critical { border-left: 3px solid #ef4444; }
.sb-empty-state {
text-align: center;
padding: 40px;
color: var(--sb-text-muted);
}
.sb-empty-icon {
font-size: 40px;
margin-bottom: 12px;
}
@media (max-width: 1024px) {
.sb-main-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 720px) {
.secubox-dashboard {
padding: 20px;
}
.sb-header {
flex-direction: column;
align-items: flex-start;
}
}