body {
  background-color: #0a0a0a;
  color: #ffffff;
  font-size: 14px;
  font-family: "Helvetica Neue", Helvetica;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Static Dark Background with Subtle Animations */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  background-size: 100% 100%;
}

/* Floating Particles - More Subtle */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 50%;
  animation: float 25s infinite linear;
}

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Static Grid */
.grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(74, 144, 226, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 226, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Glowing orbs - More Subtle */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.08;
  z-index: -1;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #4a90e2, transparent);
  top: 10%;
  left: 10%;
}

.orb2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #00ffff, transparent);
  top: 60%;
  right: 10%;
}

.orb3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff00ff, transparent);
  bottom: 10%;
  left: 30%;
}

/* Pulsing nodes animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

#body {
  margin: 0 auto;
  position: relative;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#header {
  font-size: 40px;
  font-weight: bold;
  top: 20px;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(74, 144, 226, 0.5);
  margin-bottom: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide/Show Button */
.toggle-info {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  /* Increased z-index to be above the info panel */
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
  backdrop-filter: blur(10px);
}

.toggle-info:hover {
  background: linear-gradient(135deg, #357abd, #2968a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.6);
}

/* Modern Info Panel */
.legend {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 350px;
  font-size: 12px;
  color: #fff;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 10, 0.95));
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  /* Below the toggle button */
}

.legend.hidden {
  transform: translateX(400px);
  opacity: 0;
  pointer-events: none;
}

.legend h3 {
  margin-top: 0;
  color: #4a90e2;
  border-bottom: 2px solid rgba(74, 144, 226, 0.3);
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.legend-section {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(74, 144, 226, 0.05);
  border-radius: 10px;
  border-left: 3px solid #4a90e2;
}

.legend-section h4 {
  margin-top: 0;
  color: #00ffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.legend a {
  color: #4a90e2;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.legend a:hover {
  color: #00ffff;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.node {
  cursor: pointer;
}

.node circle {
  cursor: pointer;
  fill: #000;
  stroke: #4a90e2;
  stroke-width: 1.5px;
  transition: all 0.2s ease;
}

.node circle:hover {
  stroke-width: 3px;
  filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.8));
  animation: pulse 1s infinite;
}

.node text {
  font-size: 12px;
  fill: #ffffff;
  transition: all 0.2s ease;
}

.node text:hover {
  fill: #4a90e2;
  font-weight: bold;
}

path.link {
  fill: none;
  stroke: #444;
  stroke-width: 1px;
  transition: all 0.2s ease;
}

path.link:hover {
  stroke: #4a90e2;
  stroke-width: 2px;
}

/* Modern Search Bar */
.search-container {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1000;
  width: 280px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #4a90e2;
  font-size: 16px;
  pointer-events: none;
}

.search-box {
  width: 100%;
  padding: 12px 12px 12px 40px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(10, 10, 10, 0.9));
  border: 2px solid rgba(74, 144, 226, 0.3);
  border-radius: 25px;
  color: white;
  font-size: 13px;
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.search-box:focus {
  border-color: #4a90e2;
  box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
  transform: translateY(-1px);
}

.search-box::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(10, 10, 10, 0.98));
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: 250px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.2), rgba(0, 255, 255, 0.1));
  transform: translateX(5px);
}

.search-result-item:first-child {
  border-radius: 15px 15px 0 0;
}

.search-result-item:last-child {
  border-radius: 0 0 15px 15px;
}

/* Enhanced Stats Panel - Made smaller */
.stats-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 10, 0.95));
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(15px);
  font-size: 11px;
  z-index: 1000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 130px;
}

.stats-item {
  margin: 5px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stats-label {
  color: #4a90e2;
  font-weight: 500;
  font-size: 11px;
}

.stats-value {
  color: #00ffff;
  font-weight: bold;
  font-size: 12px;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* Enhanced Random Tool Button */
.random-tool-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #ff00ff, #cc00cc);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.random-tool-btn:hover {
  background: linear-gradient(135deg, #cc00cc, #990099);
  transform: translateY(-2px) rotate(3deg);
  box-shadow: 0 6px 20px rgba(255, 0, 255, 0.6);
}

/* Enhanced Tool Tooltip - Fixed for long URLs */
.tool-tooltip {
  position: absolute;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(10, 10, 10, 0.98));
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1001;
  max-width: 320px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  display: none;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.tool-tooltip strong {
  color: #4a90e2;
  font-weight: 600;
}

.tool-tooltip .url {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #00ffff;
  font-family: monospace;
  word-break: break-all;
  max-height: 60px;
  overflow-y: auto;
}

/* Enhanced Keyboard Shortcuts Help */
.shortcuts-help {
  position: fixed;
  bottom: 85px;
  right: 20px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95), rgba(10, 10, 10, 0.95));
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(15px);
  font-size: 11px;
  z-index: 1000;
  max-width: 200px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.shortcut-item {
  margin: 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.shortcut-key {
  color: #4a90e2;
  font-weight: bold;
  background: rgba(74, 144, 226, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(74, 144, 226, 0.1);
  border-radius: 50%;
  color: #4a90e2;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
}

.social-link:hover {
  background: rgba(74, 144, 226, 0.2);
  color: #00ffff;
  transform: translateY(-2px);
}

/* GitHub Support Popup */
.support-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.98), rgba(10, 10, 10, 0.98));
  border-radius: 15px;
  border: 1px solid rgba(74, 144, 226, 0.3);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 20px;
  z-index: 1002;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-popup.show {
  transform: translateY(0);
}

.support-popup h4 {
  margin-top: 0;
  color: #4a90e2;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.support-popup p {
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.4;
}

.support-popup-buttons {
  display: flex;
  gap: 10px;
}

.support-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.support-btn.primary {
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
}

.support-btn.primary:hover {
  background: linear-gradient(135deg, #357abd, #2968a3);
  transform: translateY(-1px);
}

.support-btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.support-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Copy notification */
.copy-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: linear-gradient(135deg, #4a90e2, #357abd);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1003;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.copy-notification.show {
  transform: translateX(-50%) translateY(0);
}
