/**
 * NSO Hub - Default Theme
 * Warna lembut, font terbaca, layout proporsional untuk monitor besar
 */

/* ===== BASE - Warna lembut, tidak bikin sakit mata ===== */
body.insight-style {
  --bg: #f1f5f9;
  --panel: #ffffff;
  --panel2: #f8fafc;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #0d9488;
  --accent2: #14b8a6;
  --danger: #dc2626;
  --success: #059669;
  --radius: 12px;
  --radius-sm: 8px;
  background: linear-gradient(160deg, var(--bg) 0%, #e2e8f0 40%, rgba(13, 148, 136, 0.06) 100%);
  color: var(--text);
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
}
/* Theme Light - redup, gradasi putih → #3ECFD2 (teal) → #001849 (biru gelap) */
body.insight-style.theme-light {
  --bg: #dce0df; /* 220,224,223 */
  --panel: rgba(220,224,223,.94);
  --accent: #3ECFD2;
  background:
    linear-gradient(165deg, rgba(220,224,223,.98) 0%, rgba(62,207,210,.08) 35%, rgba(0,24,73,.04) 70%, rgba(62,207,210,.06) 100%),
    linear-gradient(120deg, rgba(62,207,210,.06) 0%, transparent 50%, rgba(0,24,73,.06) 100%),
    #dce0df;
}
/* Light theme: content area transparan / sama dengan background */
body.insight-style.theme-light .main {
  background: transparent;
}
body.insight-style.theme-light .main-content-scroll {
  background: transparent;
}
body.insight-style.theme-light .panel,
body.insight-style.theme-light .view .panel {
  background: rgba(220, 224, 223, 0.75);
  border-color: rgba(62, 207, 210, 0.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
body.insight-style.theme-light .view .box {
  background: rgba(220, 224, 223, 0.6);
  border-color: rgba(62, 207, 210, 0.15);
}
/* Theme Dark - gelap */
body.insight-style.theme-dark {
  --bg: #0f172a;
  --panel: #1e293b;
  --panel2: #334155;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #334155;
  --accent: #2dd4bf;
  --accent2: #5eead4;
}
body.insight-style.theme-dark {
  background: linear-gradient(165deg, #0f172a 0%, #0c1929 30%, #1e293b 70%, rgba(45, 212, 191, 0.04) 100%);
}
body.insight-style.theme-dark .main {
  background: linear-gradient(165deg, #0f172a 0%, #0c1929 25%, rgba(30, 41, 59, 0.6) 100%);
}
body.insight-style.theme-dark .sidebar { background: #020617; }
body.insight-style.theme-dark .brand { background: #000; border-color: #1e293b; }
body.insight-style.theme-dark .navFooter { background: #000; }
body.insight-style.theme-dark .kpi-card,
body.insight-style.theme-dark .card,
body.insight-style.theme-dark .panel {
  background: linear-gradient(145deg, #1e293b 0%, #334155 50%, rgba(45, 212, 191, 0.06) 100%);
  border-color: #334155;
}
body.insight-style.theme-dark .client-card,
body.insight-style.theme-dark .clients-empty {
  background: linear-gradient(145deg, #1e293b 0%, #334155 40%, rgba(45, 212, 191, 0.04) 100%);
}
body.insight-style.theme-dark .kpi-card::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.05) 0%, rgba(45, 212, 191, 0.12) 50%, rgba(94, 234, 212, 0.2) 100%);
}
body.insight-style.theme-dark .card::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.08) 0%, rgba(45, 212, 191, 0.15) 50%, rgba(94, 234, 212, 0.25) 100%);
}
body.insight-style.theme-dark .card:hover {
  box-shadow: 0 8px 28px rgba(45, 212, 191, 0.25);
}
body.insight-style.theme-dark .client-card::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.06) 0%, rgba(45, 212, 191, 0.14) 50%, rgba(94, 234, 212, 0.22) 100%);
}
body.insight-style.theme-dark .client-card:hover {
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.2);
}
body.insight-style.theme-dark .kpi-card .kpi-label,
body.insight-style.theme-dark .device-filter-card .kpi-label { color: #94a3b8; }
body.insight-style.theme-dark .kpi-card .kpi-value,
body.insight-style.theme-dark .device-filter-card .kpi-value { color: #f1f5f9; }
body.insight-style.theme-dark .pageTitle,
body.insight-style.theme-dark .cardTitle,
body.insight-style.theme-dark .panelTitle { color: #f1f5f9; }
body.insight-style.theme-dark .pageDesc,
body.insight-style.theme-dark .cardDesc,
body.insight-style.theme-dark .panelSub { color: #94a3b8; }
body.insight-style.theme-dark .input,
body.insight-style.theme-dark .textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
body.insight-style.theme-dark .themeBtn.active { background: rgba(45,212,191,.2); border-color: #2dd4bf; color: #5eead4; }
/* Theme GreeNSO - hijau */
body.insight-style.theme-greenso {
  --accent: #059669;
  --accent2: #10b981;
}
body.insight-style.theme-greenso {
  background: linear-gradient(165deg, var(--bg) 0%, #f0fdf4 40%, rgba(5, 150, 105, 0.06) 100%);
}
body.insight-style.theme-greenso .navItem.active,
body.insight-style.theme-greenso .btn.primary { background: #059669; border-color: #059669; }
body.insight-style.theme-greenso .themeBtn.active { background: rgba(5,150,105,.2); border-color: #059669; color: #10b981; }

/* ===== LAYOUT - Full width, proporsional, pas di segala monitor ===== */
body.insight-style .app {
  display: flex;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}
body.insight-style .sidebar {
  width: 280px;
  min-width: 280px;
  flex-shrink: 0;
  background: #1e293b;
  color: #cbd5e1;
  border-right: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: width 0.25s ease, min-width 0.25s ease;
}
body.insight-style .sidebar.collapsed,
body.sidebar-collapsed .sidebar {
  width: 64px;
  min-width: 64px;
}
body.insight-style .sidebar.collapsed .brandText,
body.insight-style .sidebar.collapsed .searchWrap,
body.insight-style .sidebar.collapsed .ipDisplay,
body.insight-style .sidebar.collapsed .navGroupToggle,
body.insight-style .sidebar.collapsed .navItem > span:not(.nav-icon),
body.insight-style .sidebar.collapsed .themeSwitcherLabel,
body.insight-style .sidebar.collapsed .themeSwitcherBtns,
body.insight-style .sidebar.collapsed .navFooter .footerText,
body.insight-style .sidebar.collapsed .logoutBtn {
  display: none !important;
}
body.insight-style .sidebar.collapsed .brandLink {
  justify-content: center;
  padding: 0;
}
body.insight-style .sidebar.collapsed .brandRow {
  justify-content: center;
  padding: 0 12px;
}
body.insight-style .sidebar.collapsed .navItem,
body.insight-style .sidebar.collapsed .navGroupToggle {
  justify-content: center;
  padding: 14px;
}
body.insight-style .sidebar.collapsed .navItem .nav-icon,
body.insight-style .sidebar.collapsed .navGroupToggle .navGroupIcon {
  margin: 0;
}
body.insight-style .sidebar.collapsed .navGroupItems {
  padding-left: 0;
}
body.insight-style .sidebar.collapsed .themeSwitcher {
  padding: 12px;
  justify-content: center;
}
body.insight-style .sidebar.collapsed .navFooter {
  padding: 12px;
  text-align: center;
}
@media (max-width: 768px) {
  body.insight-style .sidebar {
    width: 260px;
    min-width: 260px;
  }
  body.insight-style .sidebar.collapsed {
    width: 56px;
    min-width: 56px;
  }
}
body.insight-style .main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, #f8fafc 0%, #f1f5f9 50%, rgba(13, 148, 136, 0.04) 100%);
  padding: 0;
  margin: 0;
  overflow: visible;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
body.insight-style .main-content-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
  padding: 24px 32px;
  max-width: 100%;
}
body.insight-style .main .view {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}
body.insight-style .main .view .panel,
body.insight-style .main .view .grid2,
body.insight-style .main .view .gridConfig,
body.insight-style .main .view .stack {
  max-width: 100%;
}

/* ===== SIDEBAR - Font lebih besar, mudah dibaca ===== */
body.insight-style .brand {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #0f172a;
  border-bottom: 1px solid #334155;
  border-radius: 0;
}
body.insight-style .sidebarToggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #cbd5e1;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s;
}
body.insight-style .sidebarToggle:hover {
  background: rgba(255,255,255,0.15);
}
body.insight-style .brandLink {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}
body.insight-style .brandLink:hover {
  color: white;
}
body.insight-style .brandRow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 64px;
}
body.insight-style .logo {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  padding: 0;
}
body.insight-style .brandTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
}
body.insight-style .brandSub {
  display: none;
}
body.insight-style .searchWrap {
  padding: 14px 18px;
}
body.insight-style .search {
  background: rgba(30,41,59,0.5);
  border-color: #334155;
  color: #e2e8f0;
  font-size: 15px;
  padding: 10px 14px;
}
body.insight-style .search::placeholder {
  color: #94a3b8;
}
body.insight-style .search:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.2);
}
body.insight-style .ipDisplay {
  padding: 14px 18px;
  background: rgba(30,41,59,0.4);
  border: none;
  margin: 0 18px 14px;
  border-radius: 10px;
}
body.insight-style .ipText,
body.insight-style .ipIsp {
  color: #94a3b8;
  font-size: 14px;
}
body.insight-style .ipAddress {
  color: #5eead4;
  font-size: 14px;
}

/* ===== NAV - Font sama besar dengan Client Database ===== */
body.insight-style .nav {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  gap: 4px;
}
body.insight-style .navGroup {
  margin-top: 12px;
}
body.insight-style .navGroupToggle {
  background: transparent;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 16px;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
body.insight-style .navGroupToggle:hover {
  background: rgba(30,41,59,0.6);
  color: #e2e8f0;
}
body.insight-style .navGroupToggle.active {
  background: rgba(20,184,166,0.15);
  color: #5eead4;
}
body.insight-style .navGroupIcon {
  font-size: 12px;
  margin-left: auto;
  transition: transform 0.2s;
}
body.insight-style .navGroupToggle.active .navGroupIcon {
  transform: rotate(180deg);
}
body.insight-style .navItem {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  font-weight: 500;
  margin-top: 2px;
  width: 100%;
  text-align: left;
  position: relative;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
body.insight-style .navItem::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
  transition: width 0.25s ease;
}
body.insight-style .navItem:hover {
  background: rgba(51, 65, 85, 0.6);
  transform: none;
}
body.insight-style .navItem.active {
  background: linear-gradient(90deg, rgba(13, 148, 136, 0.5) 0%, rgba(13, 148, 136, 0.28) 50%, rgba(20, 184, 166, 0.15) 100%);
  color: #99f6e4;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(13, 148, 136, 0.6),
    0 0 0 1px rgba(13, 148, 136, 0.25),
    0 4px 14px rgba(13, 148, 136, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
  border: none;
}
body.insight-style .navItem.active .nav-label {
  text-shadow: 0 0 12px rgba(94, 234, 212, 0.4);
}
body.insight-style .navItem.active::before {
  width: 5px;
  background: linear-gradient(180deg, #5eead4, #14b8a6);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.6);
}
body.insight-style .navItem.active .nav-icon i {
  color: #99f6e4;
  transform: scale(1.12);
  filter: drop-shadow(0 0 4px rgba(94, 234, 212, 0.5));
  transition: transform 0.25s ease;
}
body.insight-style .navItem .nav-icon {
  width: 28px;
  text-align: center;
  margin-right: 12px;
  font-size: 18px;
}
body.insight-style .navItem.active .nav-icon {
  color: inherit;
}
body.insight-style.theme-greenso .navItem.active {
  background: linear-gradient(90deg, rgba(5, 150, 105, 0.5) 0%, rgba(5, 150, 105, 0.28) 50%, rgba(16, 185, 129, 0.15) 100%);
  color: #6ee7b7;
  box-shadow:
    inset 0 0 0 1px rgba(5, 150, 105, 0.6),
    0 0 0 1px rgba(5, 150, 105, 0.25),
    0 4px 14px rgba(5, 150, 105, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
}
body.insight-style.theme-greenso .navItem.active .nav-label {
  text-shadow: 0 0 12px rgba(110, 231, 183, 0.4);
}
body.insight-style.theme-greenso .navItem.active::before {
  background: linear-gradient(180deg, #34d399, #059669);
  box-shadow: 0 0 10px rgba(5, 150, 105, 0.6);
}
body.insight-style.theme-greenso .navItem.active .nav-icon i {
  color: #6ee7b7;
  filter: drop-shadow(0 0 4px rgba(110, 231, 183, 0.5));
}
body.insight-style .navGroupItems {
  padding-left: 8px;
}
body.insight-style .themeSwitcher {
  padding: 14px 18px;
  border-top: 1px solid #334155;
}
body.insight-style .themeSwitcherLabel {
  color: #94a3b8;
  font-size: 15px;
}
body.insight-style .themeBtn {
  background: rgba(30,41,59,0.6);
  border-color: #334155;
  color: #cbd5e1;
  font-size: 13px;
}
body.insight-style .themeBtn:hover {
  background: #334155;
  border-color: #475569;
}
body.insight-style .themeBtn.active {
  background: rgba(20,184,166,0.2);
  border-color: #14b8a6;
  color: #5eead4;
}
body.insight-style .themeSwitcherBtns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
body.insight-style .themeBtn {
  flex: 1;
  min-width: 60px;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 10px;
}
body.insight-style .navFooter {
  padding: 18px;
  border-top: 1px solid #334155;
  background: #0f172a;
  font-size: 14px;
}

/* ===== PAGE HEADER ===== */
body.insight-style .pageHeader {
  margin-bottom: 28px;
}
body.insight-style .pageTitle {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
body.insight-style .pageDesc {
  color: #64748b;
  font-size: 1rem;
  margin-top: 8px;
}

/* ===== KPI CARDS ===== */
body.insight-style .kpi-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
@media (min-width: 640px) {
  body.insight-style .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  body.insight-style .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
body.insight-style .kpi-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 50%, rgba(13, 148, 136, 0.04) 100%);
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border-left: 4px solid #0d9488;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
body.insight-style .kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0) 0%, rgba(13, 148, 136, 0.08) 50%, rgba(20, 184, 166, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
body.insight-style .kpi-card:hover::before {
  opacity: 1;
}
body.insight-style .kpi-card .kpi-label,
body.insight-style .kpi-card .kpi-value,
body.insight-style .kpi-card .kpi-sub {
  position: relative;
  z-index: 1;
}
body.insight-style .kpi-card.kpi-red { border-left-color: #dc2626; }
body.insight-style .kpi-card.kpi-green { border-left-color: #059669; }
body.insight-style .kpi-card.kpi-gradient {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: white;
  border-left: none;
}
body.insight-style .kpi-card.kpi-gradient::before {
  display: none;
}
body.insight-style .kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.insight-style .kpi-card.kpi-gradient .kpi-label {
  color: rgba(255,255,255,0.9);
}
body.insight-style .kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-top: 6px;
}
body.insight-style .kpi-card.kpi-gradient .kpi-value {
  color: white;
}
body.insight-style .kpi-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.9);
  margin-top: 6px;
}
body.insight-style .kpi-card.network-info-card {
  cursor: pointer;
}
body.insight-style .kpi-card.network-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.18);
}

/* ===== CARDS - Tool cards, full width ===== */
body.insight-style .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
body.insight-style .card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #fafbfc 60%, rgba(13, 148, 136, 0.03) 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
body.insight-style .card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, rgba(20, 184, 166, 0.12) 50%, rgba(13, 148, 136, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
body.insight-style .card:hover {
  border-color: #0d9488;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
}
body.insight-style .card:hover::before {
  opacity: 1;
}
body.insight-style .card .cardTitle,
body.insight-style .card .cardDesc,
body.insight-style .card .badge {
  position: relative;
  z-index: 1;
}
body.insight-style .cardTitle {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1e293b;
}
body.insight-style .cardDesc {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
}
body.insight-style .badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(13,148,136,0.12);
  color: #0f766e;
}

/* ===== CLIENT DATABASE - Empty state ===== */
body.insight-style .clients-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, rgba(13, 148, 136, 0.04) 100%);
  border-radius: 14px;
  border: 1px dashed #e2e8f0;
}
body.insight-style .clients-empty i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
  display: block;
}
body.insight-style .clients-empty p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}
body.insight-style .client-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 60%, rgba(13, 148, 136, 0.03) 100%);
  padding: 22px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: box-shadow 0.35s ease, transform 0.35s ease, border-color 0.35s ease;
}
body.insight-style .client-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.04) 0%, rgba(20, 184, 166, 0.1) 50%, rgba(13, 148, 136, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
body.insight-style .client-card:hover {
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.15);
  transform: translateY(-2px);
  border-color: rgba(13, 148, 136, 0.3);
}
body.insight-style .client-card:hover::before {
  opacity: 1;
}
body.insight-style .client-card > * {
  position: relative;
  z-index: 1;
}
body.insight-style #client-search {
  font-size: 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  max-width: 100%;
}
body.insight-style .clients-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}
@media (min-width: 768px) {
  body.insight-style .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  body.insight-style .clients-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== PANELS & INPUTS ===== */
body.insight-style .panel {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 70%, rgba(13, 148, 136, 0.03) 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 24px;
}
body.insight-style .panelTitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}
body.insight-style .panelSub {
  font-size: 15px;
  color: #64748b;
  margin-top: 6px;
}
body.insight-style .input,
body.insight-style .textarea {
  background: white;
  border-color: #e2e8f0;
  color: #334155;
  font-size: 15px;
  padding: 12px 16px;
}
body.insight-style .input:focus,
body.insight-style .textarea:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
body.insight-style .btn {
  font-size: 15px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.2s ease;
  font-weight: 500;
}
body.insight-style .btn:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
body.insight-style .btn.primary {
  background: linear-gradient(180deg, #0d9488 0%, #0f766e 100%);
  border: 1px solid #0f766e;
  color: #ffffff;
  font-size: 15px;
}
body.insight-style .btn.primary:hover {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  border-color: #0d9488;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  color: #ffffff;
}
body.insight-style .btn:not(.primary) {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel2) 100%);
  border: 1px solid var(--border);
  color: var(--text);
}
body.insight-style .btn:not(.primary):hover {
  background: linear-gradient(180deg, var(--panel2) 0%, rgba(13, 148, 136, 0.08) 100%);
  border-color: rgba(13, 148, 136, 0.4);
  color: var(--text);
}
body.insight-style.theme-dark .btn.primary {
  background: linear-gradient(180deg, #14b8a6 0%, #0d9488 100%);
  border-color: #0d9488;
  color: #0f172a;
}
body.insight-style.theme-dark .btn.primary:hover {
  background: linear-gradient(180deg, #5eead4 0%, #14b8a6 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.4);
}
body.insight-style.theme-dark .btn:not(.primary):not(.success):hover {
  background: linear-gradient(180deg, #334155 0%, rgba(45, 212, 191, 0.1) 100%);
  border-color: rgba(45, 212, 191, 0.35);
  color: #e2e8f0;
}
/* ===== Green Success Button ===== */
body.insight-style .btn.success {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  border: 1px solid #16a34a;
  color: #ffffff;
  font-size: 15px;
}
body.insight-style .btn.success:hover {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: #22c55e;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
  color: #ffffff;
}
body.insight-style.theme-dark .btn.success {
  background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%);
  border-color: #22c55e;
  color: #0f172a;
}
body.insight-style.theme-dark .btn.success:hover {
  background: linear-gradient(180deg, #86efac 0%, #4ade80 100%);
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(74, 222, 128, 0.45);
}
body.insight-style .rowTitle {
  font-size: 15px;
  font-weight: 600;
}
body.insight-style .rowSub {
  font-size: 14px;
  color: #64748b;
}

/* ===== TOOLS - Font lebih besar, terbaca ===== */
body.insight-style .adminTable,
body.insight-style .adminTable th,
body.insight-style .adminTable td {
  font-size: 15px !important;
}
body.insight-style .device-filter,
body.insight-style #filterHostname,
body.insight-style #filterStatus,
body.insight-style #filterIp,
body.insight-style #filterModel,
body.insight-style #filterBrand,
body.insight-style #filterDeviceType,
body.insight-style #filterRegional,
body.insight-style #filterLocation {
  font-size: 15px !important;
  padding: 12px 14px !important;
}
body.insight-style .main .view.admin-form-view:not(.hidden) {
  overflow-x: hidden !important;
}
body.insight-style #view-all-devices .panel {
  overflow-x: hidden;
  max-width: 100%;
}
body.insight-style .admin-form-view:not(.hidden) {
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
}
body.insight-style .admin-form-view .pageHeader {
  flex-shrink: 0;
}
body.insight-style .admin-form-panel {
  margin-top: 16px;
  padding: 24px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
}
body.insight-style .admin-form-full {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
body.insight-style .admin-form-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15px;
}
body.insight-style .admin-form-table th,
body.insight-style .admin-form-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
body.insight-style .admin-form-table th {
  font-weight: 600;
  width: 180px;
  min-width: 140px;
  color: var(--muted);
}
body.insight-style .admin-form-table td {
  min-width: 0;
}
body.insight-style .admin-form-table .input,
body.insight-style .admin-form-table select.input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
body.insight-style .admin-form-table-perms,
body.insight-style .admin-form-priv-table {
  margin-top: 12px;
}
body.insight-style .admin-perms-grid {
  display: grid;
  grid-template-columns: 1fr 90px 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
body.insight-style .admin-perms-header {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
body.insight-style .admin-perm-col {
  text-align: center;
}
body.insight-style .admin-cat-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
body.insight-style .admin-cat-block:last-child {
  margin-bottom: 0;
}
body.insight-style .admin-cat-header {
  background: linear-gradient(90deg, var(--panel2) 0%, rgba(13, 148, 136, 0.04) 100%);
  border-bottom: none;
  padding: 10px 16px;
  transition: background 0.2s ease;
}
body.insight-style .admin-cat-header:hover {
  background: rgba(13, 148, 136, 0.12);
}
body.insight-style.theme-dark .admin-cat-header:hover {
  background: rgba(45, 212, 191, 0.15);
}
body.insight-style .admin-cat-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font: inherit;
  color: var(--accent);
  text-align: left;
  width: 100%;
}
body.insight-style .admin-cat-toggle:hover {
  color: var(--accent2);
}
body.insight-style .admin-cat-chevron {
  font-size: 12px;
  transition: transform 0.3s ease;
}
body.insight-style .admin-cat-block.expanded .admin-cat-chevron {
  transform: rotate(0deg);
}
body.insight-style .admin-cat-block:not(.expanded) .admin-cat-chevron {
  transform: rotate(-90deg);
}
body.insight-style .admin-cat-body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s ease;
}
body.insight-style .admin-cat-block:not(.expanded) .admin-cat-body {
  grid-template-rows: 0fr;
}
body.insight-style .admin-cat-body-inner {
  overflow: hidden;
}
body.insight-style .admin-tool-row {
  background: var(--panel);
}
body.insight-style .admin-tool-row .admin-tool-name {
  padding-left: 28px;
  font-size: 14px;
}
body.insight-style .admin-tool-row:nth-child(even) {
  background: var(--panel2);
}
body.insight-style.theme-dark .admin-cat-header {
  background: linear-gradient(90deg, rgba(51, 65, 85, 0.4) 0%, rgba(45, 212, 191, 0.06) 100%);
}
body.insight-style.theme-dark .admin-tool-row:nth-child(even) {
  background: rgba(15, 23, 42, 0.5);
}
body.insight-style .admin-form-priv-label {
  margin-top: 20px;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 15px;
}
body.insight-style .admin-form-priv-table {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
body.insight-style .admin-form-priv-table .admin-form-table {
  width: 100%;
}
body.insight-style .admin-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  flex-shrink: 0;
}
body.insight-style .admin-form-table .chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}
body.insight-style .admin-form-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
body.insight-style #view-admin-users .panel,
body.insight-style #view-admin-groups .panel,
body.insight-style #view-admin-logs .panel {
  font-size: 15px;
}
body.insight-style #view-all-devices .btn,
body.insight-style #view-all-devices .device-row-check + td,
body.insight-style #view-all-devices td {
  font-size: 15px !important;
}
body.insight-style #allDevicesList .btn,
body.insight-style #allDevicesPagination .btn,
body.insight-style #allDevicesPagination span {
  font-size: 15px !important;
  padding: 10px 16px !important;
}
body.insight-style #allDevicesList th,
body.insight-style #allDevicesList td {
  padding: 14px 16px !important;
}
body.insight-style #adminUsersList,
body.insight-style #adminGroupsList,
body.insight-style #adminLogsList {
  font-size: 15px;
}
body.insight-style .footerText,
body.insight-style .navFooter .footerText {
  font-size: 13px;
}
body.insight-style .kv .kvK,
body.insight-style .kv .kvV,
body.insight-style .kvRow {
  font-size: 15px;
}
body.insight-style .panelHeader .panelTitle {
  font-size: 1.25rem;
}
body.insight-style .panelHeader .panelSub {
  font-size: 15px;
}

/* ===== TOOL PAGES - Professional UI/UX consistency ===== */
body.insight-style .view .panel {
  padding: 24px;
}
body.insight-style .view .box,
body.insight-style .view .row {
  padding: 14px 16px;
}
body.insight-style .view .input,
body.insight-style .view .textarea {
  font-size: 15px;
  padding: 12px 14px;
  min-height: 44px;
}
body.insight-style .view .textarea {
  min-height: 120px;
}
body.insight-style .view .btn {
  padding: 12px 18px;
  font-size: 15px;
}
body.insight-style .view .rowTitle {
  font-size: 15px;
  font-weight: 600;
}
body.insight-style .view .rowSub {
  font-size: 14px;
}
body.insight-style .view .muted {
  font-size: 13px;
}
body.insight-style .view .status {
  font-size: 14px;
}
body.insight-style .view .modePills .pill {
  padding: 10px 14px;
  font-size: 14px;
}
body.insight-style .view .tab {
  padding: 12px 16px;
  font-size: 14px;
}
body.insight-style .view .whoisResult,
body.insight-style .view .portResult,
body.insight-style .view .pingResult,
body.insight-style .view .traceResult {
  min-height: 360px;
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
}
body.insight-style #view-all-devices .panel {
  padding: 20px;
}
body.insight-style #view-all-devices .device-filter {
  min-height: 44px;
}
body.insight-style #view-admin-users .panel,
body.insight-style #view-admin-groups .panel {
  padding: 24px;
}
body.insight-style #adminUsersList .adminTable th,
body.insight-style #adminUsersList .adminTable td,
body.insight-style #adminGroupsList .adminTable th,
body.insight-style #adminGroupsList .adminTable td {
  padding: 14px 16px !important;
  font-size: 15px !important;
}
body.insight-style #view-admin-logs .panel {
  padding: 24px;
}
body.insight-style #view-admin-logs input,
body.insight-style #view-admin-logs select {
  min-height: 44px;
  font-size: 14px;
}
body.insight-style #view-clients .input.mb-4 {
  font-size: 16px;
  padding: 14px 18px;
  min-height: 48px;
}
body.insight-style .clients-grid {
  gap: 20px;
}
body.insight-style #view-client-detail .panel h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}
body.insight-style .diffContent,
body.insight-style .diffView {
  font-size: 14px;
  line-height: 1.6;
}

/* ===== LOGIN ===== */
body.insight-style .login-view {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.insight-style .login-container {
  max-width: 400px;
}
body.insight-style .login-box {
  background: white;
  padding: 44px;
  border-radius: 18px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
  text-align: center;
  animation: insightFadeIn 0.4s ease-in-out;
}
@keyframes insightFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
body.insight-style .login-logo-wrap {
  background: linear-gradient(145deg, rgba(13,148,136,.35) 0%, rgba(13,148,136,.2) 50%, rgba(13,148,136,.12) 100%);
  border-color: rgba(13,148,136,.4);
  box-shadow:
    0 8px 24px rgba(13,148,136,.2),
    0 2px 8px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.5),
    inset 0 -1px 0 rgba(0,0,0,.04);
}
body.insight-style .login-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}
body.insight-style .login-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin-top: 6px;
}
body.insight-style .login-input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
  font-size: 16px;
  padding: 12px 16px;
}
body.insight-style .login-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
body.insight-style .login-btn {
  background: #0d9488;
  border-color: #0d9488;
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 24px;
}
body.insight-style .login-btn:hover {
  background: #0f766e;
  box-shadow: 0 4px 12px rgba(13,148,136,0.3);
}
body.insight-style .login-footer {
  margin-top: 24px;
  font-size: 14px;
  color: #94a3b8;
}

/* ===== CLIENT DETAIL ===== */
body.insight-style #view-client-detail .grid {
  display: grid;
  gap: 1.5rem;
}
body.insight-style #view-client-detail .grid-cols-1 {
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  body.insight-style #view-client-detail .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  body.insight-style #view-client-detail .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }
}
body.insight-style .topo-connector {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  position: relative;
  overflow: hidden;
  margin: 0 8px;
}
body.insight-style .topo-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #14b8a6, transparent);
  animation: flowData 2s infinite linear;
}
@keyframes flowData {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}

/* ===== ALL DEVICES - Search, Filter, Table ===== */
body.insight-style .devices-cards-collapsible {
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  max-height: 1200px;
}
body.insight-style .devices-cards-collapsible.collapsed {
  max-height: 0;
  margin-top: 0;
  transition: max-height 0.3s ease-in;
}
body.insight-style .device-info-collapsible-header:hover {
  background: var(--panel);
  border-color: var(--accent);
}
body.insight-style .device-info-collapsible .device-info-collapsible-body {
  max-height: 2000px;
  transition: max-height 0.3s ease-out;
}
body.insight-style .device-info-collapsible.collapsed .device-info-collapsible-body {
  max-height: 0;
  transition: max-height 0.25s ease-in;
}
body.insight-style .devices-cards-section {
  margin-bottom: 4px;
}
body.insight-style .devices-cards-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 10px;
}
body.insight-style .devices-cards-sublabel {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
  opacity: 0.9;
}
body.insight-style .device-filter-card {
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
body.insight-style .device-filter-card::before {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0) 0%, rgba(13, 148, 136, 0.12) 50%, rgba(20, 184, 166, 0.22) 100%);
}
body.insight-style .device-filter-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.22);
  border-left-width: 5px;
}
body.insight-style.theme-dark .device-filter-card::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.05) 0%, rgba(45, 212, 191, 0.15) 50%, rgba(94, 234, 212, 0.25) 100%);
}
body.insight-style.theme-dark .device-filter-card:hover {
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.25);
}
body.insight-style .device-filter-card.active {
  border-left-width: 5px;
  border-left-color: var(--accent);
  background: rgba(13, 148, 136, 0.08);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.15);
}
body.insight-style.theme-dark .device-filter-card.active {
  background: rgba(45, 212, 191, 0.12);
  box-shadow: 0 4px 12px rgba(45, 212, 191, 0.2);
}
body.insight-style .devices-search-result {
  font-size: 14px;
  margin-left: 8px;
  white-space: nowrap;
}
body.insight-style .devices-search-result.hidden {
  display: none !important;
}
body.insight-style .devices-kpi-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  body.insight-style .devices-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  body.insight-style .devices-kpi-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}
body.insight-style .devices-search-filter {
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
body.insight-style .devices-search-row {
  margin-bottom: 16px;
}
body.insight-style .devices-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  position: relative;
}
body.insight-style .devices-search-wrap .input {
  flex: 1;
  padding: 12px 14px 12px 40px;
  font-size: 15px;
}
body.insight-style .devices-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}
body.insight-style .devices-search-wrap .input {
  padding-left: 40px;
}
body.insight-style .devices-search-wrap .btn.primary {
  padding: 12px 20px;
  white-space: nowrap;
}
body.insight-style .devices-filter-row {
  margin-bottom: 12px;
}
body.insight-style .devices-filter-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.insight-style .devices-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}
body.insight-style .devices-filter-grid .input {
  padding: 10px 12px;
  font-size: 14px;
}
body.insight-style .device-filter-rows-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.insight-style .device-filter-extra-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.insight-style .device-filter-extra-row .devices-filter-grid {
  margin: 0;
}
body.insight-style .device-filter-extra-remove {
  align-self: flex-start;
  padding: 8px 12px;
  font-size: 13px;
}
body.insight-style #btnAddDeviceFilter {
  align-self: flex-start;
}
body.insight-style .devices-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
body.insight-style .devices-table-wrap .device-row {
  transition: background 0.15s ease;
}
body.insight-style .devices-table-wrap .device-row:hover {
  background: rgba(13, 148, 136, 0.08);
}
body.insight-style.theme-dark .devices-table-wrap .device-row:hover {
  background: rgba(45, 212, 191, 0.12);
}
body.insight-style .devices-table-wrap .box {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
body.insight-style .devices-table-wrap .devices-th,
body.insight-style .devices-table-wrap .adminTable thead th {
  vertical-align: middle;
  white-space: nowrap;
  line-height: 1.25;
}
body.insight-style .devices-table-wrap .devices-th__inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  max-width: 100%;
}
body.insight-style .devices-table-wrap .devices-th__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.insight-style .devices-table-wrap .sort-icon {
  flex: 0 0 auto;
  width: 0.9em;
  text-align: center;
  opacity: 0.72;
  line-height: 1;
  font-size: 0.85em;
}

/* ===== TOPOLOGY TOOLS ===== */
body.insight-style .topology-layout {
  display: flex;
  gap: 16px;
  min-height: 320px;
  align-items: stretch;
}
/* Sidebar: kolom perangkat - scrollable independen, tidak ganggu topologi */
body.insight-style .topology-sidebar {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-height: 70vh;
}
body.insight-style .topology-sidebar-section {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.insight-style .topology-sidebar-section:first-child {
  flex: 1;
  min-height: 0;
}
body.insight-style .topology-sidebar-section:last-of-type {
  flex-shrink: 0;
}
body.insight-style .topology-diagram-list {
  flex: 1;
  overflow-y: auto;
  min-height: 120px;
}
body.insight-style .topology-device-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  min-height: 120px;
}
/* Kolom topologi: bisa ditarik kebawah lebih jauh, terpisah dari sidebar */
body.insight-style .topology-canvas-wrap {
  flex: 1;
  min-width: 0;
  min-height: 280px;
  max-height: 70vh;
  resize: vertical;
  overflow: hidden;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  position: relative;
}
body.insight-style .topology-zoom-controls {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.insight-style .topology-zoom-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
body.insight-style .topology-zoom-btn:hover {
  background: rgba(13, 148, 136, 0.15);
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.25);
  color: var(--accent);
}
body.insight-style.theme-dark .topology-zoom-btn:hover {
  background: rgba(45, 212, 191, 0.2);
  border-color: #2dd4bf;
  color: #5eead4;
}
body.insight-style .topology-diagram-item,
body.insight-style .topology-device-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
  margin-bottom: 4px;
}
body.insight-style .topology-diagram-item:hover,
body.insight-style .topology-device-item:hover {
  background: rgba(59, 130, 246, 0.1);
}
body.insight-style .topology-diagram-item i,
body.insight-style .topology-device-item .topology-device-icon {
  color: var(--accent);
  flex-shrink: 0;
}
body.insight-style .topology-diagram-name,
body.insight-style .topology-device-name {
  font-weight: 600;
  font-size: 13px;
}
body.insight-style .topology-diagram-meta,
body.insight-style .topology-device-ip {
  font-size: 11px;
  color: var(--muted);
}
body.insight-style .topology-device-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}
body.insight-style .topology-device-status.placed {
  background: var(--muted);
}
body.insight-style .topology-device-add,
body.insight-style .topology-device-gear {
  margin-left: auto;
  opacity: 0.5;
  font-size: 12px;
}
body.insight-style .topology-device-item:hover .topology-device-add,
body.insight-style .topology-device-item:hover .topology-device-gear {
  opacity: 1;
}
body.insight-style .topology-diagram-item {
  position: relative;
}
body.insight-style .topology-diagram-delete {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  font-size: 12px;
  opacity: 0.6;
}
body.insight-style .topology-diagram-delete:hover {
  color: var(--danger);
  opacity: 1;
}
body.insight-style .topology-diagram-item-content {
  flex: 1;
  min-width: 0;
}
body.insight-style .topology-context-menu {
  max-height: min(70vh, 400px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
body.insight-style .topology-context-menu .topology-context-menu-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  min-height: 0;
  padding: 12px;
  -webkit-overflow-scrolling: touch;
}
body.insight-style .topology-context-menu .topology-context-menu-scroll::-webkit-scrollbar {
  width: 6px;
}
body.insight-style .topology-context-menu .topology-context-menu-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}
body.insight-style .topology-context-menu .topology-context-menu-scroll::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 3px;
}
body.insight-style .topology-context-menu .topology-context-menu-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.7);
}
body.insight-style .topology-context-menu .topology-context-menu-actions {
  flex-shrink: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.05);
}
body.insight-style.theme-dark .topology-context-menu .topology-context-menu-actions {
  background: rgba(255, 255, 255, 0.03);
}
body.insight-style .topology-context-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  border-radius: 4px;
}
body.insight-style .topology-context-menu button:hover {
  background: rgba(59, 130, 246, 0.15);
}
/* Custom tooltip for topology (replaces native title) */
body.insight-style .topology-custom-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 320px;
  max-height: min(60vh, 280px);
  overflow-y: auto;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  -webkit-overflow-scrolling: touch;
}
body.insight-style .topology-custom-tooltip::-webkit-scrollbar {
  width: 5px;
}
body.insight-style .topology-custom-tooltip::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 3px;
}
body.insight-style .topology-box-select-rect {
  border-color: var(--primary, #3b82f6) !important;
  background: rgba(59, 130, 246, 0.12) !important;
}
body.insight-style .topology-modal-scroll {
  -webkit-overflow-scrolling: touch;
}
body.insight-style .topology-color-btn {
  transition: transform 0.15s ease;
}
body.insight-style .topology-color-btn:hover {
  transform: scale(1.1);
}
body.insight-style .topology-icon-dropdown-wrap #nodeModalIconToggle {
  transition: border-color 0.15s ease;
}
body.insight-style .topology-icon-dropdown-wrap #nodeModalIconToggle:hover {
  border-color: var(--accent);
}
body.insight-style .topology-icon-panel .topology-icon-item {
  transition: border-color 0.15s ease, transform 0.1s ease;
}
body.insight-style .topology-icon-panel .topology-icon-item:hover {
  transform: scale(1.05);
  border-color: var(--accent) !important;
}
body.insight-style .topology-canvas-wrap {
  background-image: radial-gradient(circle at center, rgba(148,163,184,0.25) 1px, transparent 1px);
  background-size: 12px 12px;
}
body.insight-style .topology-canvas-wrap #topologyCanvas {
  min-height: 280px;
}
body.insight-style .btn.active {
  background: var(--accent);
  color: white;
}

/* ===== SCROLLBAR ===== */
body.insight-style ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
body.insight-style ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
body.insight-style ::-webkit-scrollbar-track {
  background: transparent;
}
