secubox-openwrt/luci-app-system-hub/htdocs/luci-static/resources/system-hub/services.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

237 lines
4.1 KiB
CSS

.sh-services-view {
padding: 28px;
background: radial-gradient(circle at top, rgba(15,118,255,0.12), transparent),
radial-gradient(circle at bottom, rgba(99,102,241,0.1), transparent),
var(--sh-bg);
border-radius: 22px;
}
.sh-services-hero {
background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.18));
border-radius: 22px;
padding: 24px;
border: 1px solid var(--sh-border);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 16px;
box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.sh-services-hero h1 {
margin: 0;
font-size: 26px;
}
.sh-services-hero p {
margin: 4px 0 0;
color: var(--sh-text-secondary);
}
.sh-services-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
min-width: 300px;
}
.sh-service-stat {
background: rgba(15,23,42,0.45);
border-radius: 16px;
padding: 12px;
border: 1px solid rgba(255,255,255,0.08);
text-align: center;
}
.sh-service-stat .label {
display: block;
font-size: 12px;
text-transform: uppercase;
color: var(--sh-text-secondary);
letter-spacing: 0.15em;
}
.sh-service-stat .value {
font-size: 28px;
font-weight: 700;
line-height: 1;
}
.sh-service-stat.success .value {
color: #22c55e;
}
.sh-service-stat.danger .value {
color: #ef4444;
}
.sh-service-controls {
margin: 24px 0;
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: center;
justify-content: space-between;
}
.sh-filter-tabs {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.sh-filter-tab {
padding: 8px 16px;
border-radius: 999px;
border: 1px solid rgba(255,255,255,0.15);
background: rgba(255,255,255,0.02);
color: var(--sh-text-primary);
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.sh-filter-tab.active {
background: rgba(99,102,241,0.25);
border-color: rgba(99,102,241,0.5);
}
.sh-service-search input {
width: 260px;
max-width: 100%;
border-radius: 16px;
border: 1px solid rgba(255,255,255,0.12);
background: rgba(255,255,255,0.02);
padding: 10px 16px;
color: var(--sh-text-primary);
}
.sh-services-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 18px;
}
.sh-service-card {
background: var(--sh-bg-card);
border-radius: 18px;
border: 1px solid rgba(255,255,255,0.08);
padding: 18px;
box-shadow: 0 12px 30px rgba(0,0,0,0.25);
display: flex;
flex-direction: column;
gap: 16px;
}
.sh-service-card.running {
border-left: 4px solid #22c55e;
}
.sh-service-card.stopped {
border-left: 4px solid #ef4444;
}
.sh-service-head {
display: flex;
justify-content: space-between;
gap: 10px;
}
.sh-service-head h3 {
margin: 0;
font-size: 20px;
}
.sh-service-tag {
font-size: 12px;
color: var(--sh-text-secondary);
}
.sh-service-status {
padding: 6px 12px;
border-radius: 999px;
font-weight: 600;
}
.sh-service-status.running {
background: rgba(34,197,94,0.18);
color: #22c55e;
}
.sh-service-status.stopped {
background: rgba(239,68,68,0.18);
color: #ef4444;
}
.sh-service-actions {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.sh-btn {
border-radius: 12px;
padding: 10px;
border: 1px solid rgba(255,255,255,0.08);
background: rgba(255,255,255,0.03);
color: var(--sh-text-primary);
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.sh-btn:hover {
background: rgba(255,255,255,0.09);
}
.sh-btn-ghost {
grid-column: span 2;
background: rgba(99,102,241,0.15);
border-color: rgba(99,102,241,0.35);
}
.sh-empty-state {
grid-column: 1 / -1;
text-align: center;
padding: 40px;
color: var(--sh-text-secondary);
border: 1px dashed rgba(255,255,255,0.15);
border-radius: 18px;
}
.sh-empty-icon {
font-size: 40px;
margin-bottom: 8px;
}
.sh-service-detail {
display: flex;
flex-direction: column;
gap: 12px;
margin-bottom: 18px;
}
.sh-service-detail-row {
display: flex;
justify-content: space-between;
border-bottom: 1px solid rgba(148,163,184,0.2);
padding-bottom: 6px;
font-size: 14px;
}
@media (max-width: 720px) {
.sh-services-view {
padding: 16px;
}
.sh-service-controls {
flex-direction: column;
align-items: stretch;
}
.sh-service-search input {
width: 100%;
}
}