/* IT Infrastructuur Monitor */
body { background: #f0f2f5; }
.login-bg { background: linear-gradient(135deg, #1e3c72, #2a5298); }
.topbar { background: linear-gradient(90deg, #1e3c72, #2a5298); }

/* ---------- aandachtspunten ---------- */
#alerts-panel { max-width: 1400px; margin: 0 auto; }
.alert-summary {
  font-size: 1.05rem; font-weight: 600; color: #33404f;
  padding: 6px 4px; margin-bottom: 4px;
}
.alert-summary.loading { color: #99a; font-weight: 400; }
.alert-summary.all-ok {
  background: #e6f7ee; color: #1c7a45; border: 1px solid #b7e6cd;
  border-radius: 10px; padding: 12px 16px;
}
.alert-summary .ac-err  { color: #c0392b; }
.alert-summary .ac-warn { color: #9a6a00; }
.alert-list {
  background: #fff; border: 1px solid #e4e8ee; border-radius: 10px;
  box-shadow: 0 2px 6px rgba(20,40,80,.08); overflow: hidden;
}
.alert-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid #eef1f5; }
.alert-item:last-child { border-bottom: 0; }
.alert-item.error { border-left: 4px solid #e74c3c; background: #fef6f5; }
.alert-item.warn  { border-left: 4px solid #e6a700; background: #fffdf5; }
.alert-badge {
  flex: 0 0 auto; font-size: .64rem; font-weight: 700; letter-spacing: .03em;
  padding: 2px 8px; border-radius: 6px; color: #fff;
}
.alert-item.error .alert-badge { background: #e74c3c; }
.alert-item.warn  .alert-badge { background: #e6a700; }
.alert-text { font-size: .88rem; color: #33404f; }

/* ---------- topologie ---------- */
.topology { max-width: 1400px; margin: 0 auto; }
.topo-row { display: flex; flex-wrap: wrap; gap: 20px; }
.lan-row { justify-content: center; align-items: flex-start; }
.topo-link-v {
  width: 3px; height: 28px; margin: 0 auto;
  background: repeating-linear-gradient(#8aa 0 6px, transparent 6px 10px);
}
.lan-label {
  text-align: center; color: #667; font-size: .8rem;
  border-top: 2px solid #b9c2cf; max-width: 1100px;
  margin: 0 auto 14px; padding-top: 4px;
}

.node {
  position: relative;
  background: #fff; border: 1px solid #d6dce4; border-radius: 10px;
  padding: 14px 18px 12px; min-width: 190px; text-align: center;
  box-shadow: 0 2px 6px rgba(20,40,80,.08);
  transition: box-shadow .2s;
}
.node:hover { box-shadow: 0 4px 14px rgba(20,40,80,.18); }
.node-icon { font-size: 1.7rem; line-height: 1; }
.node-title { font-weight: 600; margin-top: 4px; font-size: .95rem; }
.node-ip { color: #789; font-size: .78rem; font-family: monospace; }
.node-internet { background: #eef6ff; border-color: #9ec5ef; }
.node-router { background: #fff8ec; border-color: #ecd39e; }
.node-vps { background: #f2fbf4; border-color: #a8d8b2; min-width: 260px; }
.node-hyper { min-width: 300px; max-width: 360px; text-align: left; }
.node-hyper .node-icon, .node-hyper .node-title, .node-hyper .node-ip,
.node-hyper .node-ports, .node-hyper .node-ping { text-align: center; }
.node-hyper-main { border: 2px solid #4a7fd4; }

/* status dot */
.status-dot {
  position: absolute; top: 10px; right: 10px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #c3c9d2; box-shadow: 0 0 0 3px rgba(0,0,0,.05);
}
.status-dot.static { position: static; display: inline-block; flex: 0 0 12px; }
.status-dot.up   { background: #2ecc71; box-shadow: 0 0 6px #2ecc71aa; }
.status-dot.down { background: #e74c3c; box-shadow: 0 0 6px #e74c3caa; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* poort badges */
.node-ports { margin-top: 6px; }
.port-badge {
  display: inline-block; font-size: .68rem; padding: 1px 7px;
  border-radius: 8px; margin: 1px 2px; color: #fff; font-family: monospace;
}
.port-badge.up { background: #27ae60; }
.port-badge.down { background: #e74c3c; }
.node-ping { font-size: .72rem; color: #99a; margin-top: 3px; }

/* node stats (cpu/ram) */
.node-stats { font-size: .75rem; margin-top: 6px; }
.node-stats .progress { height: 7px; margin-bottom: 5px; }
.node-stats .stat-label { display: flex; justify-content: space-between; color: #667; }

/* VM/CT chips in hypervisor */
.guest-list { margin-top: 8px; border-top: 1px dashed #dde; padding-top: 8px; }
.guest {
  display: flex; align-items: center; gap: 6px;
  font-size: .78rem; padding: 3px 6px; border-radius: 6px;
  background: #f6f8fb; margin-bottom: 3px; cursor: default;
}
.guest .g-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.guest.running .g-dot { background: #2ecc71; }
.guest.stopped .g-dot { background: #b6bcc6; }
.guest.stopped { opacity: .6; }
.guest .g-name { font-weight: 600; flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest .g-kind {
  font-size: .62rem; padding: 0 5px; border-radius: 6px; color: #fff;
}
.guest .g-kind.vm { background: #4a7fd4; }
.guest .g-kind.ct { background: #8e6cc9; }
.guest .g-meta { color: #99a; font-family: monospace; font-size: .68rem; }
.guest { flex-wrap: wrap; }
.guest .g-ip {
  flex-basis: 100%; order: 10;
  padding-left: 14px;
  color: #4a7fd4; font-family: monospace; font-size: .7rem;
}
.guest .g-disk {
  flex-basis: 100%; order: 20;
  padding-left: 14px;
  font-family: monospace; font-size: .66rem; color: #8892a0;
}
.guest .g-disk-label { display: flex; justify-content: space-between; }
.guest .g-disk .progress {
  display: block; height: 3px; margin-top: 2px;
  background: #e4e8ee; border-radius: 2px; overflow: hidden;
}
.guest .g-disk .progress-bar { display: block; height: 100%; }
.guest .g-disk-alloc { color: #b0b6c0; font-style: italic; }

/* wireguard */
.wg-tunnel { display: flex; align-items: center; gap: 10px; width: 420px; max-width: 90%; }
.wg-line {
  flex: 1; height: 0;
  border-top: 3px dashed #7a5fc4;
}
.wg-label {
  color: #7a5fc4; font-weight: 600; font-size: .82rem; white-space: nowrap;
  background: #f3f0fb; border: 1px solid #d6ccf0; border-radius: 12px; padding: 3px 12px;
}

/* key vms + mysql */
.keyvm { border-bottom: 1px solid #eef1f5; }
.keyvm:last-child { border-bottom: 0; }
.repl-node { border-bottom: 1px solid #eef1f5; padding: 8px; font-size: .85rem; }
.repl-node:last-child { border-bottom: 0; }
.repl-arrow { text-align: center; color: #7a5fc4; font-size: .8rem; padding: 2px 0; }

/* schijfgezondheid / SMART */
.node-disks { margin-top: 6px; }
.disk-chip {
  display: inline-block; font-size: .66rem; font-weight: 600;
  padding: 1px 8px; border-radius: 8px; margin: 1px;
}
.disk-chip.disk-ok      { background: #e6f7ee; color: #1c7a45; border: 1px solid #b7e6cd; }
.disk-chip.disk-warn    { background: #fff5e0; color: #9a6a00; border: 1px solid #f0d79a; }
.disk-chip.disk-error   { background: #fdecea; color: #c0392b; border: 1px solid #f2b7b0; animation: blink 1s infinite; }
.disk-chip.disk-unknown { background: #eef0f3; color: #6b7280; border: 1px solid #d6dce4; }

.disk-group { margin-bottom: 6px; }
.disk-group-title { font-weight: 600; font-size: .82rem; color: #445; padding: 4px 6px 2px; }
.disk-table { font-size: .78rem; margin-bottom: 0; }
.disk-table td { vertical-align: middle; padding: .3rem .5rem; }
.disk-table th {
  font-weight: 600; font-size: .68rem; color: #8892a0;
  text-transform: uppercase; letter-spacing: .02em;
  border-top: 0; border-bottom: 1px solid #e4e8ee; padding: .2rem .5rem;
}
.disk-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
}
.temp-warn { color: #9a6a00; font-weight: 600; }
.temp-hot  { color: #c0392b; font-weight: 700; }

/* ZFS-pools (logische RAID-volumes) */
.zfs-pool {
  border: 1px solid #dce6f0; border-left: 3px solid #4a7fd4;
  border-radius: 8px; padding: 8px 10px; margin: 6px 4px 10px;
  background: #f7fafd;
}
.zfs-pool-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .85rem; }
.zfs-cap { margin-left: auto; font-family: monospace; }
.zfs-progress { height: 6px; margin: 6px 0 4px; }
.zfs-vdev { font-size: .78rem; font-weight: 600; color: #445; margin-top: 4px; }
.zfs-leaf { font-size: .76rem; color: #667; }
.zfs-leaf.indent { padding-left: 16px; }

/* historiek / grafieken */
.chart-title { font-size: .8rem; font-weight: 600; color: #445; padding: 2px 4px 6px; }
.chart-wrap { position: relative; height: 260px; }

/* storage */
.storage-bar { margin-bottom: 10px; font-size: .8rem; }
.storage-bar .progress { height: 12px; }

.card-header { font-weight: 600; background: #fff; }
