/* ==========================================================================
   Floating Navigation Outline
   A sidebar navigation that appears on scroll with smooth transitions
   ========================================================================== */

.floating-outline {
  position: fixed;
  right: 20px;
  left: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 60px; /* Collapsed width (Bars only) */
  max-height: 80vh;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 0;
  z-index: 1000;

  /* Default State: Transparent or Low Opacity */
  background: transparent;
  border: none;
  border-radius: 12px;
  box-shadow: none;

  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease,
    box-shadow 0.3s ease;

  /* Hide Scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.floating-outline:hover {
  width: 220px; /* Expanded Width */

  /* Glassy Look on Hover */
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .floating-outline:hover {
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Hide scrollbar Webkit */
.floating-outline::-webkit-scrollbar {
  display: none;
}

/* Links */
.floating-nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-muted);
  transition: all 0.2s;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
}

.floating-nav-link:hover,
.floating-nav-link.active {
  color: var(--color-primary);
  background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .floating-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Indicator Dot */
.nav-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-right: 15px;
  flex-shrink: 0;
  transition: all 0.3s;
}

.floating-nav-link.active .nav-indicator {
  background: var(--color-primary);
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .floating-outline {
    display: none;
  }
}
