:root {
  --bg-color: #05050a;
  --panel-bg: rgba(10, 10, 18, 0.75);
  --border-color: rgba(0, 255, 136, 0.2);
  --accent-glow: #00ff88;
  --text-main: #f0f0f5;
  --text-muted: #8b8b9e;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: monospace, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-main); overflow: hidden; height: 100vh; width: 100vw; }

#globe-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }

header { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; display: flex; justify-content: space-between; padding: 24px 40px; pointer-events: none; }
.brand { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
.logo-badge { background: rgba(0, 255, 136, 0.1); border: 1px solid var(--accent-glow); color: var(--accent-glow); padding: 6px 12px; font-weight: 700; border-radius: 4px; box-shadow: 0 0 15px rgba(0,255,136,0.2); }
.brand h1 { font-size: 1.25rem; }

.nav-links { pointer-events: auto; display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); text-decoration: none; transition: 0.2s; cursor: pointer; }
.nav-links a:hover { color: var(--accent-glow); }

#info-panel { position: absolute; bottom: 30px; left: 40px; width: 340px; background: var(--panel-bg); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
#info-panel h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--accent-glow); }
#info-panel p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; white-space: pre-line; }
.gateway-meta { display: flex; justify-content: space-between; font-size: 0.75rem; background: rgba(255, 255, 255, 0.03); padding: 8px 12px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.05); }

/* --- Sidebar Styles --- */
#nodes-sidebar { position: absolute; top: 0; right: -420px; width: 400px; height: 100%; background: var(--panel-bg); backdrop-filter: blur(12px); border-left: 1px solid var(--border-color); z-index: 20; transition: right 0.3s ease-in-out; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
#nodes-sidebar.open { right: 0; }
.sidebar-header { padding: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center; }
.sidebar-header h3 { font-size: 1.1rem; color: var(--accent-glow); }
.close-btn { background: none; border: none; color: var(--text-muted); font-size: 1.8rem; cursor: pointer; line-height: 1; transition: 0.2s; }
.close-btn:hover { color: #fff; }
#nodes-list { flex: 1; overflow-y: auto; padding: 12px; scroll-behavior: smooth; }
#nodes-list::-webkit-scrollbar { width: 6px; }
#nodes-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Active & Hover States for Node Items */
.node-item { padding: 14px 16px; margin-bottom: 10px; border-radius: 8px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: 0.2s; }
.node-item:hover { background: rgba(0, 255, 136, 0.05); border-color: rgba(0, 255, 136, 0.3); }
.node-item.active { background: rgba(0, 255, 136, 0.15); border-color: #00ff88; box-shadow: inset 0 0 15px rgba(0,255,136,0.1); }
.node-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.node-name { font-weight: bold; font-size: 0.9rem; }
.node-status-indicator { width: 10px; height: 10px; border-radius: 50%; }
.node-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; justify-content: space-between; }

.cyber-grid { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: linear-gradient(rgba(255,255,255,0.01) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px); background-size: 40px 40px; z-index: 2; pointer-events: none; }

/* Hybrid HTML Label Styling (restores the original look) */
.hybrid-label {
  position: absolute;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(5,5,10,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  color: #f0f0f5;
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  font-weight: bold;
}
