/* Variables */
:root {
  /* Dark theme (default) */
  --bg-primary: #000000;
  --bg-secondary: rgba(255,255,255,0.05);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --border-primary: #ffffff;
  --border-secondary: rgba(255,255,255,0.2);
  --search-bg: rgba(255,255,255,0.1);
  --search-param-bg: #111111;
  --result-bg: rgba(0,0,0,0.8);
  --footer-bg: rgba(0,0,0,0.95);
  --error-color: #ff0000;
  --logo-shadow: 0 2px 12px rgba(0,0,0,0.8), 0 1px 0 #ffffff, 0 0 0.5px #ffffff, 0 0 16px rgba(255,255,255,0.2);
  --accent-color: #4caf50;
}

[data-theme="light"] {
  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: rgba(0,0,0,0.05);
  --text-primary: #000000;
  --text-secondary: #666666;
  --border-primary: #000000;
  --border-secondary: rgba(0,0,0,0.2);
  --search-bg: rgba(0,0,0,0.08);
  --search-param-bg: #f0f0f0;
  --result-bg: rgba(255,255,255,0.95);
  --footer-bg: rgba(255,255,255,0.95);
  --error-color: #ff0000;
  --logo-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 1px 0 #000000, 0 0 0.5px #000000, 0 0 16px rgba(0,0,0,0.2);
  --accent-color: #2e7d32;
}

/* Base */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-primary);
  min-height: 100vh;
  width: 100vw;
  box-sizing: border-box;
  background: linear-gradient(90deg, var(--bg-primary) 80%, var(--bg-secondary) 100%);
  transition: background 0.3s ease;
}

#mynetwork {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  touch-action: manipulation;
  pointer-events: auto;
}

/* Theme Toggle Button */
.theme-toggle {
  position: absolute;
  top: 18px;
  right: 180px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--search-bg);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
  outline: none;
}

@media (max-width: 768px) {
  .theme-toggle {
    right: 140px;
    width: 32px;
    height: 32px;
    top: 20px;
  }
}

@media (max-width: 480px) {
  .theme-toggle {
    right: 120px;
    width: 30px;
    height: 30px;
    top: 22px;
  }
}

@media (max-width: 360px) {
  .theme-toggle {
    right: 100px;
    width: 28px;
    height: 28px;
    top: 24px;
  }
}

.theme-toggle:hover {
  background: var(--border-primary);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

.theme-toggle:hover svg {
  fill: var(--bg-primary);
}

/* Search */
.ck-search-container {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2000;
  min-width: 320px;
  max-width: 90vw;
  width: 480px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ck-search-form {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border-primary);
  border-radius: 20px;
  background: var(--search-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 4px 12px 4px 8px;
  height: 44px;
  transition: all 0.3s ease;
}

.ck-search-form:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(76, 175, 80, 0.1);
  transform: translateY(-1px);
}

.ck-search-param-container {
  position: relative;
  display: inline-block;
  margin-right: 8px;
}

.ck-search-param {
  background: transparent;
  color: var(--text-primary);
  border: none;
  outline: none;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 6px 8px 8px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 70px;
  user-select: none;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.ck-search-param:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ck-search-param-text { padding-left: 3px; }
.ck-search-param-arrow { transition: transform 0.2s ease; }
.ck-search-param-container.open .ck-search-param-arrow { transform: rotate(180deg); }

.ck-search-param-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--search-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  padding: 4px;
}

.ck-search-param-container.open .ck-search-param-dropdown { display: block; }

.ck-search-param-option {
  padding: 10px 12px;
  color: var(--text-primary);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border-radius: 8px;
  margin: 2px 0;
}

.ck-search-param-option:hover { background: rgba(255, 255, 255, 0.1); transform: translateX(2px); }
.ck-search-param-option.selected { background: var(--accent-color); color: white; font-weight: 500; }

.ck-search-input {
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
  flex: 1;
  padding: 8px 12px;
  font-weight: 400;
  transition: all 0.3s ease;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.ck-search-input::placeholder { color: var(--text-secondary); font-weight: 400; opacity: 0.6; transition: all 0.3s ease; }
.ck-search-input:focus::placeholder { opacity: 0.4; transform: translateX(4px); }

.ck-search-btn {
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-left: 4px;
}

.ck-search-btn:hover { background: rgba(255, 255, 255, 0.1); transform: scale(1.05); }

.ck-search-btn svg { display: block; stroke: var(--text-primary); fill: none; background: none; transition: all 0.3s ease; width: 18px; height: 18px; }
.ck-search-btn:hover svg { stroke: var(--accent-color); transform: scale(1.1); }

/* Advanced Filters */
.advanced-filters { margin-top: 12px; padding: 16px; background: rgba(35, 38, 43, 0.95); border: 1px solid var(--border-primary); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); display: none; transition: all 0.3s ease; }
.advanced-filters.show { display: block; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.filter-group { display: flex; flex-direction: column; min-width: 120px; flex: 1; }
.filter-group label { color: var(--text-primary); font-size: 12px; font-weight: 500; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.filter-select { background: var(--search-bg); border: 1px solid var(--border-primary); border-radius: 6px; color: var(--text-primary); font-size: 13px; padding: 6px 8px; outline: none; transition: all 0.2s ease; }
.filter-select option { background: rgba(35, 38, 43, 0.95); color: var(--text-primary); }
.filter-select:focus { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(76,175,80,0.2); }
.filter-actions { display: flex; gap: 8px; justify-content: flex-end; }
.filter-btn { background: var(--search-bg); border: 1px solid var(--border-primary); border-radius: 6px; color: var(--text-primary); font-size: 12px; padding: 6px 12px; cursor: pointer; transition: all 0.2s ease; outline: none; }
.filter-btn:hover { background: var(--border-secondary); color: var(--text-primary); border-color: var(--border-primary); }

/* Loading & Error */
.loading-indicator { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3000; background: rgba(35, 38, 43, 0.95); border: 1px solid var(--border-primary); border-radius: 12px; padding: 20px; text-align: center; color: var(--text-primary); font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.loading-indicator.show { display: block; }
.spinner { width: 24px; height: 24px; border: 2px solid rgba(255,255,255,0.3); border-top: 2px solid #b0e67a; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 8px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error-display { display: none; margin-top: 8px; padding: 12px; background: rgba(255,107,107,0.1); border: 1px solid #ff6b6b; border-radius: 8px; color: #ff6b6b; font-size: 13px; text-align: center; }
.error-display.show { display: block; }

/* Footer */
.main-footer { width: 100vw; background: var(--footer-bg); color: var(--text-primary); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: 0.2px; box-shadow: 0 -1px 6px rgba(0,0,0,0.3); position: fixed; left: 0; bottom: 0; z-index: 10000; border-radius: 8px 8px 0 0; display: flex; flex-direction: column; align-items: center; padding: 0; border-top: 1px solid var(--footer-bg); transition: all 0.3s ease; }
.footer-row { width: 100%; text-align: center; padding: 8px 0 4px 0; }
.map-info { font-size: 14px; font-weight: 300; border-bottom: 1px solid var(--border-secondary); }
.copyright-row { font-size: 12px; font-weight: 200; user-select: none; padding: 2px 0 6px 0; }

/* Vis node icon color hints */
.vis-network .vis-icon, .vis-network .vis-node svg, .vis-network .vis-node path, .vis-network .vis-node ellipse, .vis-network .vis-node circle { fill: #fff !important; stroke: #fff !important; background: none !important; filter: none !important; }

/* Header / Top bar */
.header-area { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; width: 100%; max-width: 100vw; position: relative; z-index: 2100; }
.top-bar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; position: absolute; top: 18px; right: 18px; left: 18px; z-index: 2000; }

/* Logo (index style) */
.v6space-logo {
  position: absolute;
  top: 30px;
  left: 30px;
  z-index: 2100;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 100;
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--text-primary);
  opacity: 0.98;
  user-select: none;
  pointer-events: none;
  line-height: 1;
  text-shadow: var(--logo-shadow);
  text-rendering: geometricPrecision;
  mix-blend-mode: normal;
  transition: all 0.3s ease;
}

/* Nav button */
.nav-btn { position: absolute; top: 18px; right: 18px; z-index: 2000; display: flex; align-items: center; gap: 7px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 15px; color: var(--text-primary); background: var(--search-bg); border: 1px solid var(--border-primary); border-radius: 8px; padding: 7px 18px 7px 14px; cursor: pointer; transition: all 0.18s ease; outline: none; }
.nav-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--text-primary); stroke-width: 2.2; display: block; transition: stroke 0.3s ease; }
.nav-btn:hover, .nav-btn:focus { background: var(--border-primary); border-radius: 8px; color: var(--bg-primary); }
.nav-btn:hover svg, .nav-btn:focus svg { stroke: var(--bg-primary); }

/* Node popup */
.node-popup-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 10000; display: none; justify-content: center; align-items: center; }
.node-popup { background: var(--result-bg); border: 1px solid var(--border-primary); border-radius: 12px; padding: 24px; max-width: 500px; width: 90%; max-height: 70vh; overflow-y: hidden; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); position: relative; }
.node-popup-header { display: flex; justify-content: center; align-items: center; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-secondary); position: relative; }
.node-popup-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; text-align: center; }
.node-popup-close { position: absolute; right: 0; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-secondary); font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all 0.2s ease; }
.node-popup-close:hover { background: var(--border-secondary); color: var(--text-primary); }

/* Blur on popup */
.popup-open .ck-search-container,
.popup-open .nav-btn,
.popup-open .theme-toggle,
.popup-open #mynetwork { filter: blur(4px); pointer-events: none; }
.popup-open .v6space-logo, .popup-open .main-footer { filter: none; pointer-events: auto; }

/* Popup content */
.node-popup-content { color: var(--text-primary); }
.node-info-section { margin-bottom: 16px; }
.node-info-label { font-weight: 600; color: var(--text-primary); margin-bottom: 4px; font-size: 14px; }
.node-info-value { color: var(--text-secondary); font-size: 14px; margin-bottom: 8px; }
.node-services { margin-top: 20px; }
.service-item { display: flex; align-items: center; padding: 8px 12px; background: var(--search-bg); border: 1px solid var(--border-secondary); border-radius: 6px; margin-bottom: 8px; text-decoration: none; color: var(--text-primary); transition: all 0.2s ease; }
.service-item:hover { background: var(--border-secondary); border-color: var(--border-primary); }
.service-icon { width: 20px; height: 20px; margin-right: 12px; fill: var(--text-secondary); }
.service-text { flex: 1; }
.service-title { font-weight: 500; font-size: 14px; }
.service-description { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.node-status { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; margin-bottom: 12px; }
.status-online { background: rgba(76, 175, 80, 0.2); color: #4caf50; border: 1px solid rgba(76, 175, 80, 0.3); }
.status-offline { background: rgba(160, 160, 160, 0.2); color: #A0A0A0; border: 1px solid rgba(160, 160, 160, 0.4); }

.node-connections { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-secondary); }
.connection-count { font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.connection-list { max-height: 120px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.3) transparent; }
.connection-list::-webkit-scrollbar { width: 6px; }
.connection-list::-webkit-scrollbar-track { background: transparent; }
.connection-list::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 3px; }
.connection-list::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); }
.connection-item { padding: 6px 8px; background: var(--search-bg); border-radius: 4px; margin-bottom: 4px; font-size: 13px; color: var(--text-secondary); }

/* Type toggle circles under search */
.ck-type-toggle-container {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
}
/* Hide entire toggles row until explicitly shown */
.ck-type-toggle-container:not(.show) { display: none; }

/* Hide other toggles until expanded */
.ck-type-toggle-container:not(.expanded) .ck-type-item:not(:first-child) {
  display: none;
}

/* Reveal animation when expanded */
.ck-type-toggle-container.expanded .ck-type-item {
  opacity: 0;
  transform: translateX(-10px);
  animation: typeItemIn 220ms ease forwards;
}
.ck-type-toggle-container.expanded .ck-type-item:nth-child(1) { animation-delay: 0ms; }
.ck-type-toggle-container.expanded .ck-type-item:nth-child(2) { animation-delay: 60ms; }
.ck-type-toggle-container.expanded .ck-type-item:nth-child(3) { animation-delay: 120ms; }
.ck-type-toggle-container.expanded .ck-type-item:nth-child(4) { animation-delay: 180ms; }
.ck-type-toggle-container.expanded .ck-type-item:nth-child(5) { animation-delay: 240ms; }
.ck-type-toggle-container.expanded .ck-type-item:nth-child(6) { animation-delay: 300ms; }
@keyframes typeItemIn {
  to { opacity: 1; transform: translateX(0); }
}

.ck-type-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ck-type-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-primary);
  background: transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.ck-type-btn:hover { transform: scale(1.08); border-color: var(--accent-color); }
.ck-type-btn.selected { border-color: var(--accent-color); box-shadow: 0 0 8px rgba(76,175,80,0.6), 0 0 0 1px var(--accent-color) inset; background: radial-gradient(circle at 50% 50%, rgba(76,175,80,0.3) 0%, transparent 70%); }

.ck-type-label { font-size: 12px; color: var(--text-secondary); user-select: none; }

/* Center advanced filters under search */
.advanced-filters { margin-left: auto; margin-right: auto; max-width: 720px; }

/* Plus/Minus button (accent) */
.plus-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  border-radius: 0;
  padding: 0 2px;
  font-weight: 700;
  line-height: 1;
  height: auto;
  cursor: pointer;
  margin-left: 6px;
  transition: transform 0.15s ease;
}
.plus-btn:hover { transform: scale(1.06); }

/* Results close button */
.result-close-btn {
  background: none;
  border: none;
  color: var(--accent-color);
  border-radius: 0;
  padding: 0 2px;
  font-weight: 700;
  line-height: 1;
  height: auto;
  cursor: pointer;
  margin-left: 6px;
  transition: transform 0.15s ease;
}
.result-close-btn:hover { transform: scale(1.06); }

/* Compact Filters toggle */
.filters-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border-radius: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 12px;
  user-select: none;
  margin-right: 6px;
}
.filters-toggle-pill:hover { color: var(--accent-color); }
.filters-toggle-pill svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.filters-toggle-pill.active { color: var(--accent-color); box-shadow: none; }

/* Dropdown panel */
.filters-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  transform: none;
  z-index: 2100;
  background: var(--search-bg);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  padding: 10px;
  display: none;
  min-width: 320px;
  backdrop-filter: blur(8px);
}
.filters-dropdown.show { display: block; }
.filters-dropdown .filter-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.filters-dropdown .filter-group { min-width: 0; }
.filters-dropdown .filter-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .ck-search-container, .nav-btn, .theme-toggle { position: static; width: 100%; left: 0; right: 0; top: 0; }
  .ck-search-container { position: static !important; top: unset !important; left: unset !important; transform: none !important; margin: 10px auto 0 auto; max-width: 100vw; min-width: 0; }
  .ck-search-form { flex-direction: column; align-items: stretch; padding: 6px 4px; border-radius: 12px; height: auto; gap: 8px; }
  .ck-search-param, .ck-search-input, .ck-search-btn { width: 100%; min-width: 0; font-size: 16px; margin: 0 0 6px 0; box-sizing: border-box; }
  .ck-search-param { margin-right: 0; padding-right: 28px; height: 40px; }
  .ck-search-input { height: 40px; }
  .ck-search-btn { justify-content: center; height: 44px; padding: 0; }
  .ck-search-btn svg { width: 28px; height: 28px; }
  .ck-search-result { max-width: 98vw; left: 0; right: 0; margin-left: auto; margin-right: auto; }
  #mynetwork { top: 0; left: 0; right: 0; bottom: 0; width: 100vw; height: 100vh; touch-action: manipulation; }
  .main-footer { border-radius: 6px 6px 0 0; }
  .map-info { font-size: 12px; padding: 7px 0 3px 0; }
  .copyright-row { font-size: 11px; padding: 2px 0 4px 0; }
  .theme-toggle { width: 44px; height: 44px; right: 180px !important; margin: 0; }
  .theme-toggle svg { width: 24px; height: 24px; }
  .ck-type-toggle-container { gap: 12px; }
  .ck-type-btn { width: 12px; height: 12px; }
  .ck-type-label { font-size: 11px; }
}

/* Version info (orb widget container) */
#versionInfo { position:absolute; right:18px; top:70px; z-index:1500; min-width:320px; color: var(--text-primary); font-size:15px; font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; display: none; } 

/* Result text styling to match autocomplete */
.result-title { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.result-subtext { font-size: 12px; color: var(--text-secondary); margin-top: 2px; } 

/* Small settings button for toggles */
.type-settings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.18s ease;
  outline: none;
  margin-right: 8px;
  color: var(--text-primary);
}
.type-settings-btn:hover { color: var(--accent-color); }
.type-settings-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; transition: stroke 0.3s ease; }
.type-settings-btn:hover svg { stroke: var(--bg-primary); } 

/* Match results panel to search bar style */
.ck-search-result {
  display: none;
  margin-top: 8px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 400;
  width: 100%;
  background: var(--search-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  line-height: 1.6;
  padding: 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

/* Results header */
.result-header { display:flex; align-items:center; justify-content:space-between; gap: 8px; margin-bottom: 6px; }
.result-title-text { font-weight: 600; font-size: 15px; color: var(--text-primary); opacity: 0.95; }
.result-actions { display:flex; align-items:center; gap: 6px; }
.result-action { background: none; border: none; color: var(--accent-color); cursor: pointer; font-weight: 700; padding: 0 4px; line-height: 1; }
.result-action:hover { transform: scale(1.06); }

/* Node row */
.result-node-row { display:flex; align-items:center; justify-content:space-between; gap: 8px; }

/* Locate icon button */
.locate-icon-btn { background: none; border: none; color: var(--accent-color); cursor: pointer; padding: 4px; border-radius: 8px; }
.locate-icon-btn:hover { background: rgba(76,175,80,0.12); }
.locate-icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* Locate button */
.locate-btn { background: linear-gradient(135deg, rgba(76,175,80,0.2), rgba(76,175,80,0.05)); border: 1px solid var(--accent-color); color: var(--text-primary); border-radius: 12px; padding: 6px 10px; cursor: pointer; font-size: 12px; margin: 6px 0; }
.locate-btn:hover { box-shadow: 0 0 12px rgba(76,175,80,0.25); }

/* Hide scrollbars but keep scrollability */
.connection-list { max-height: 140px; overflow-y: auto; scrollbar-width: none; }
.connection-list::-webkit-scrollbar { width: 0; height: 0; }

/* Autocomplete dropdown styling (hide scrollbars) */
.autocomplete-dropdown { scrollbar-width: none; }
.autocomplete-dropdown::-webkit-scrollbar { width: 0; height: 0; }
.autocomplete-header { padding: 8px 12px; font-size: 12px; color: var(--text-secondary); border-bottom: 1px solid var(--border-secondary); }
/* Minimal status dots for autocomplete */
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; box-shadow: 0 0 8px rgba(76,175,80,0.4); }
.status-dot-online { background: radial-gradient(circle at 50% 50%, rgba(76,175,80,0.9) 0%, rgba(76,175,80,0.6) 55%, rgba(76,175,80,0.3) 100%); }
.status-dot-offline { background: radial-gradient(circle at 50% 50%, rgba(160,160,160,0.9) 0%, rgba(160,160,160,0.6) 55%, rgba(160,160,160,0.3) 100%); box-shadow: 0 0 8px rgba(160,160,160,0.35); }

/* Mobile responsiveness improvements */
@media (max-width: 600px) {
  .ck-search-result { padding: 10px; border-radius: 16px; }
}

/* Galaxy S8 width tweaks */
@media (max-width: 370px) {
  .ck-search-result { font-size: 12.5px; padding: 10px; }
  .result-title-text { font-size: 14px; }
  .locate-btn { padding: 5px 8px; font-size: 11px; }
} 