/* Telemetry demo scoped to the dashboard; uses the shared Nexus palette. */
.nx-server-monitor { --server-accent: #00f2fe; }
.nx-server-section-heading { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 10px; }
.nx-server-section-heading h2 { font-family: 'Space Grotesk', sans-serif; font-size: 14px; font-weight: 600; color: #dfe2ef; }
.nx-server-demo { padding: 3px 7px; border: 1px solid #3a494b80; border-radius: 5px; color: #a3b3ba; font-size: 9px; font-weight: 600; letter-spacing: .08em; }
.nx-server-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nx-server-metric { min-width: 0; padding: 12px; border: 1px solid #3a494b55; border-radius: 12px; background: #1c1f2999; }
.nx-server-metric--green, .nx-server-node--green { --server-accent: #00ffa3; }
.nx-server-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: #94a5ac; font-size: 9px; letter-spacing: .025em; }
.nx-server-metric-label .material-symbols-outlined { color: var(--server-accent); font-size: 15px; }
.nx-server-value { display: flex; align-items: baseline; gap: 4px; margin: 9px 0 10px; font-family: 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; }
.nx-server-value strong { color: #e0fdff; font-size: 25px; font-weight: 700; line-height: 1; }
.nx-server-value > span { color: var(--server-accent); font-size: 11px; }
.nx-server-meter { height: 4px; margin: 13px 0 12px; border-radius: 5px; background: #3a494b60; overflow: hidden; }
.nx-server-meter > span { display: block; height: 100%; border-radius: inherit; background: var(--server-accent); box-shadow: 0 0 9px var(--server-accent); transition: width 1.2s ease; }
.nx-server-metric small { display: block; color: #94a5ac; font-size: 9px; }
.nx-server-signal { display: flex; align-items: flex-end; gap: 2px; height: 12px; margin-bottom: 7px; color: #00ffa3; }
.nx-server-signal i { width: 3px; height: 4px; background: currentColor; border-radius: 1px; }
.nx-server-signal i:nth-child(2) { height: 6px; }
.nx-server-signal i:nth-child(3) { height: 8px; }
.nx-server-signal i:nth-child(4) { height: 10px; }
.nx-server-signal i:nth-child(5) { height: 12px; }
.nx-server-signal > span { align-self: center; margin-left: 4px; font-size: 8px; letter-spacing: .05em; }
.nx-server-cluster { position: relative; overflow: hidden; margin-top: 12px; padding: 14px; border: 1px solid #00f2fe26; border-radius: 14px; background: radial-gradient(ellipse at top right, #00f2fe08, transparent 65%), #1c1f2999; }
.nx-server-cluster-heading, .nx-server-cluster-heading > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nx-server-cluster-heading h3 { font-size: 11px; font-weight: 700; letter-spacing: .05em; color: #dfe2ef; }
.nx-server-cluster-heading .material-symbols-outlined { color: #00f2fe; font-size: 18px; }
.nx-server-online { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; font-family: monospace; color: #00ffa3; white-space: nowrap; }
.nx-server-online i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px #00ffa380; }
.nx-server-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.nx-server-node { min-width: 0; padding: 10px; border: 1px solid #3a494b40; border-radius: 8px; background: #0a0e17b3; }
.nx-server-node-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--server-accent); font-family: monospace; font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.nx-server-node-heading .material-symbols-outlined { font-size: 16px; opacity: .8; }
.nx-server-node p { margin-top: 4px; color: #94a5ac; font-size: 9px; }
.nx-server-bars { position: relative; display: flex; align-items: flex-end; gap: 3px; height: 28px; overflow: hidden; margin: 12px 0 9px; }
.nx-server-bars i { flex: 1; min-width: 0; height: var(--bar-height, 50%); background: linear-gradient(0deg, transparent, var(--server-accent)); border-radius: 2px 2px 0 0; opacity: .75; transition: height 1.2s ease; }
.nx-server-bars::after { content: ''; position: absolute; inset: 0; width: 20%; background: linear-gradient(90deg, transparent, #e0fdff22, transparent); animation: nx-server-scan 3s linear infinite; }
.nx-server-node-footer { display: flex; justify-content: space-between; gap: 4px; font-size: 9px; color: #94a5ac; }
.nx-server-node-footer strong { color: var(--server-accent); font-family: monospace; font-variant-numeric: tabular-nums; font-weight: 500; }
.nx-server-cluster-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; margin-top: 12px; font-size: 9px; color: #94a5ac; }
.nx-server-cluster-footer > span:first-child { display: inline-flex; align-items: center; gap: 4px; }
.nx-server-cluster-footer .material-symbols-outlined { font-size: 12px; }
.nx-server-cluster-footer strong { color: #b9cacb; font-family: monospace; font-variant-numeric: tabular-nums; font-weight: 400; }
#server-monitor-state { color: #00ffa3; }
.nx-server-terminal-footer { display: flex; align-items: center; gap: 5px; padding: 8px 12px; border-top: 1px solid #3a494b55; font-size: 9px; color: #849495; background: #181b2555; }
.nx-server-terminal-footer .material-symbols-outlined { font-size: 13px; color: #00f2fe; }
.nx-server-terminal-footer > span:last-child { margin-left: auto; font-family: monospace; font-size: 8px; }
[data-screen="beranda"].nx-server-paused .nx-server-bars::after,
[data-screen="beranda"].nx-server-paused #server-terminal-status > span:first-child { animation-play-state: paused; }
.nx-server-paused #server-monitor-state, .nx-server-paused #server-terminal-status { color: #94a5ac; }
@keyframes nx-server-scan { from { transform: translateX(-100%); } to { transform: translateX(600%); } }
@media (max-width: 360px) {
  .nx-server-metric { padding: 10px 8px; }
  .nx-server-cluster { padding: 12px; }
  .nx-server-node { padding: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-server-bars::after { animation: none; }
  .nx-server-bars i, .nx-server-meter > span { transition: none; }
}
