/* Nodes */
.node {
  position: absolute;
  width: 240px;
  background: #1e293b;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.3s;
  cursor: grab;
  z-index: 10;
  touch-action: none;
}

.node:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  z-index: 6;
}

.node:active {
  cursor: grabbing;
}

.node.dimmed {
  opacity: 0.15;
  filter: grayscale(0.8);
}

.node.highlighted {
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
  border-color: #fff;
  z-index: 100;
  transform: scale(1.05);
}

.node-header {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #000;
}

.node-body {
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-mute);
}

/* Node Types - Specific to Cisco ISE Theme */
.node.pan .node-header {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

.node.pan .node-icon {
  background: var(--c-admin);
}

.node.psn .node-header {
  background: rgba(59, 130, 246, 0.1);
  color: #93c5fd;
}

.node.psn .node-icon {
  background: var(--c-radius);
}

.node.mnt .node-header {
  background: rgba(16, 185, 129, 0.1);
  color: #6ee7b7;
}

.node.mnt .node-icon {
  background: var(--c-logs);
}

.node.infra {
  border-style: dashed;
}

.node.infra .node-icon {
  background: var(--text-mute);
  color: #0f172a;
}

.node.endpoint {
  border-left: 3px solid var(--c-radius);
}

.node.endpoint .node-icon {
  background: white;
  color: var(--c-radius);
}

/* Site Labels */
.site-group {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  transition: opacity 0.3s;
}

.site-group.dimmed {
  opacity: 0.05;
}

.site-label {
  position: absolute;
  top: -30px;
  left: 0;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.infra-box {
  position: absolute;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  padding: 8px;
  box-sizing: border-box;
  pointer-events: none;
}

.infra-label {
  font-size: 0.75rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
