/* Gradient Glow nav icons. Dark: bright indigo → cyan on navy, with a soft glow.
   Light: deeper indigo → cyan, no glow, so the strokes stay crisp on white. */

:root {
  --ns-icon-from: #7c8cff;
  --ns-icon-to: #38d6f5;
}

html[data-theme="light"] {
  --ns-icon-from: #4f46e5;
  --ns-icon-to: #0891b2;
}

.ns-icon-from { stop-color: var(--ns-icon-from); }
.ns-icon-to { stop-color: var(--ns-icon-to); }

.ns-sidebar .ns-nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  line-height: 0;
}

.ns-sidebar .ns-nav-icon .ns-icon {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  filter: drop-shadow(0 0 1.4px rgba(56, 214, 245, 0.4));
}

.ns-sidebar .ns-nav-item:hover .ns-icon {
  filter: drop-shadow(0 0 2.4px rgba(124, 140, 255, 0.6));
}

.ns-sidebar .ns-nav-item.active .ns-icon {
  filter:
    drop-shadow(0 0 2px rgba(124, 140, 255, 0.85))
    drop-shadow(0 0 6px rgba(56, 214, 245, 0.62));
}

html[data-theme="light"] .ns-sidebar .ns-nav-icon .ns-icon,
html[data-theme="light"] .ns-sidebar .ns-nav-item:hover .ns-icon,
html[data-theme="light"] .ns-sidebar .ns-nav-item.active .ns-icon {
  filter: none;
}

/* Header bell uses the same stroke and glow as the sidebar icons. */
.ns-header-actions .ns-notifications-dropdown > .ns-icon-button .ns-icon {
  display: block;
  width: 20px;
  height: 20px;
  overflow: visible;
  flex: none;
  filter: drop-shadow(0 0 1.4px rgba(56, 214, 245, 0.4));
}

.ns-header-actions .ns-notifications-dropdown > .ns-icon-button:hover .ns-icon {
  filter: drop-shadow(0 0 2.4px rgba(124, 140, 255, 0.6));
}

html[data-theme="light"] .ns-header-actions .ns-notifications-dropdown > .ns-icon-button .ns-icon,
html[data-theme="light"] .ns-header-actions .ns-notifications-dropdown > .ns-icon-button:hover .ns-icon {
  filter: none;
}

/* Fleet device marks. The OS badge sits on the tile corner and stays sharp in both themes. */
:root { --ns-os-badge-bg: #10182e; }
html[data-theme="light"] { --ns-os-badge-bg: #ffffff; }

.ns-device-icon { position: relative; overflow: visible; }
.ns-device-icon .ns-icon {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 1.4px rgba(56, 214, 245, 0.4));
}
.ns-device-icon.large .ns-icon { width: 40px; height: 40px; }
.ns-device-icon .ns-os-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  border-radius: 50%;
  background: var(--ns-os-badge-bg);
  box-shadow: 0 0 0 1.5px rgba(124, 140, 255, 0.7);
}
.ns-device-icon .ns-os-badge > .ns-icon {
  display: block;
  width: 15px;
  height: 15px;
  margin: 0;
  padding: 0;
  filter: none;
}
.ns-device-icon.large .ns-os-badge { width: 22px; height: 22px; top: -6px; right: -6px; }
.ns-device-icon.large .ns-os-badge > .ns-icon { width: 16px; height: 16px; }
html[data-theme="light"] .ns-device-icon .ns-icon { filter: none; }
html[data-theme="light"] .ns-os-badge { box-shadow: 0 0 0 1.5px rgba(79, 70, 229, 0.55); }
