/* Right Panel — 240px system info + services */ .panel { width: var(--panel-width); min-width: var(--panel-width); height: 100dvh; background: var(--bg-panel); border-left: 1px solid var(--border-structural); display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; } .panel-section { padding: 16px; border-bottom: 1px solid var(--border-structural); } .panel-section:last-child { border-bottom: none; flex: 1; } .panel-section-title { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 1.5px; margin-bottom: 12px; } /* Info section */ .panel-hostname { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--text-primary); margin-bottom: 8px; } .panel-datetime { display: flex; justify-content: space-between; align-items: baseline; } .panel-date { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); } .panel-time { font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--text-primary); } /* Network */ .panel-net-item { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-family: var(--font-mono); font-size: 12px; } .panel-net-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .panel-net-dot.up { background: var(--status-green); } .panel-net-dot.down { background: var(--status-red); } .panel-net-name { color: var(--text-primary); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .panel-net-ip { color: var(--text-secondary); font-size: 11px; } /* Stats */ .stat-row { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; gap: 2px 8px; margin-bottom: 12px; align-items: center; } .stat-label { grid-row: 1 / 3; font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; } .stat-value { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text-primary); text-align: right; } .stat-bar { height: 4px; background: var(--border-structural); border-radius: 2px; overflow: hidden; } .stat-bar-fill { height: 100%; border-radius: 2px; background: var(--status-green); transition: width var(--transition-base), background-color var(--transition-base); width: 0%; } .stat-bar-fill.warn { background: var(--status-amber); } .stat-bar-fill.crit { background: var(--status-red); } /* Services */ .panel-service-list { display: flex; flex-direction: column; gap: 2px; } .panel-service-row { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0; } .service-toggle { position: relative; width: 36px; height: 20px; background: var(--border-component); border-radius: 10px; border: none; cursor: pointer; transition: background var(--transition-fast); flex-shrink: 0; } .service-toggle.on { background: var(--status-green); } .service-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform var(--transition-fast); } .service-toggle.on::after { transform: translateX(16px); } .service-name { flex: 1; font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .service-open { width: 28px; height: 28px; background: none; border: none; color: var(--text-muted); cursor: pointer; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; } .service-open:hover { background: var(--accent-hover); color: var(--accent); } /* Update toast */ .panel-updates { transition: all var(--transition-base); } .update-toast { position: relative; padding: 12px; background: var(--accent-dim); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; } .update-dismiss { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); } .update-dismiss:hover { background: var(--accent-hover); color: var(--text-primary); } .update-toast-title { font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 4px; } .update-toast-info { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); margin-bottom: 10px; } .update-toast-btn { width: 100%; height: 30px; background: var(--accent); border: none; border-radius: var(--radius-sm); color: #fff; font-family: var(--font-ui); font-size: 12px; font-weight: 500; cursor: pointer; } .update-toast-btn:hover { opacity: 0.9; } .update-toast-btn:disabled { opacity: 0.6; cursor: not-allowed; }