/* Navigation Styles - Reusable Component */
.navbar {
  background: transparent !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  padding: 7px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  color: #a78bfa !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  font-size: 24px;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.9), 0 0 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
}

.navbar-brand:hover {
  color: #a78bfa !important;
  text-shadow: 0 0 15px rgba(167, 139, 250, 1), 0 0 30px rgba(139, 92, 246, 0.8), 0 0 45px rgba(139, 92, 246, 0.6);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.socket {
  width: 40px;
  height: 40px;
  position: relative;
}

.circle {
  background: #ffffff;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
}

.gel {
  height: 4px;
  width: 4px;
  transition: all 0.3s;
  -webkit-transition: all 0.3s;
  position: absolute;
  top: 50%;
  left: 50%;
}

.center-gel {
  margin-left: -2px;
  margin-top: -2px;
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
}

.c1 { margin-left: -6px; margin-top: -2px; }
.c2 { margin-left: -4px; margin-top: -6px; }
.c3 { margin-left: 0px; margin-top: -6px; }
.c4 { margin-left: 2px; margin-top: -2px; }
.c5 { margin-left: -4px; margin-top: 2px; }
.c6 { margin-left: 0px; margin-top: 2px; }
.c7 { margin-left: -8px; margin-top: -6px; }
.c8 { margin-left: 4px; margin-top: -6px; }
.c9 { margin-left: -2px; margin-top: 5px; }
.c10 { margin-left: -8px; margin-top: 2px; }
.c11 { margin-left: 4px; margin-top: 2px; }
.c12 { margin-left: -2px; margin-top: -9px; }
.c13 { margin-left: -6px; margin-top: -9px; }
.c14 { margin-left: 2px; margin-top: -9px; }
.c15 { margin-left: -6px; margin-top: 5px; }
.c16 { margin-left: 2px; margin-top: 5px; }
.c17 { margin-left: -10px; margin-top: -2px; }
.c18 { margin-left: 6px; margin-top: -2px; }
.c19 { margin-left: -8px; margin-top: -12px; }
.c20 { margin-left: 4px; margin-top: -12px; }
.c21 { margin-left: 0px; margin-top: -12px; }
.c22 { margin-left: -4px; margin-top: -12px; }
.c23 { margin-left: -8px; margin-top: 9px; }
.c24 { margin-left: 4px; margin-top: 9px; }
.c25 { margin-left: 0px; margin-top: 9px; }
.c26 { margin-left: -4px; margin-top: 9px; }
.c28 { margin-left: -12px; margin-top: -6px; }
.c29 { margin-left: -12px; margin-top: 2px; }
.c30 { margin-left: 6px; margin-top: 5px; }
.c31 { margin-left: -10px; margin-top: -9px; }
.c32 { margin-left: -14px; margin-top: -2px; }
.c33 { margin-left: 8px; margin-top: -6px; }
.c34 { margin-left: 8px; margin-top: 2px; }
.c35 { margin-left: -10px; margin-top: 5px; }
.c36 { margin-left: 6px; margin-top: -9px; }
.c37 { margin-left: 10px; margin-top: -2px; }

.r1 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.2s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.2s;
}

.r2 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.4s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.4s;
}

.r3 {
  animation-name: pulse00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.6s;
  -webkit-animation-name: pulse00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.6s;
}

.r1 > .circle {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.2s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.2s;
}

.r2 > .circle {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.4s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.4s;
}

.r3 > .circle {
  animation-name: fade00;
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-delay: 0.6s;
  -webkit-animation-name: fade00;
  -webkit-animation-duration: 2s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-delay: 0.6s;
}

@keyframes pulse00 {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
  50% {
    -webkit-transform: scale(0.01);
    transform: scale(0.01);
  }
  100% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes fade00 {
  0% {
    background: #ffffff;
  }
  50% {
    background: rgba(255, 255, 255, 0.5);
  }
  100% {
    background: #ffffff;
  }
}

.logo-text {
  color: #ffffff;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(163, 163, 163, 0.9), 0 0 20px rgba(139, 92, 246, 0.6), 0 0 30px rgba(139, 92, 246, 0.4);
}

.navbar-logo-img {
  height: 65px;
  width: auto;
  max-width: 400px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px white) drop-shadow(0 0 20px rgba(139, 92, 246, 0.6));
  transition: all 0.3s ease;
}

.navbar-logo-img:hover {
  filter: drop-shadow(0 0 15px rgba(167, 139, 250, 1)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.8));
  transform: scale(1.05);
}

.navbar .nav-link,
.navbar-nav .nav-link,
.nav-item .nav-link {
  color: #ffffff !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 500;
  margin: 0 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
}

.navbar .nav-link:hover,
.navbar-nav .nav-link:hover,
.nav-item .nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.15) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9), 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.1) !important;
  transform: translateY(-1px);
}

/* Active state - keep white */
.navbar .nav-link.active,
.navbar-nav .nav-link.active,
.nav-item .nav-link.active,
.navbar .nav-link:active,
.navbar-nav .nav-link:active,
.nav-item .nav-link:active,
.navbar .nav-link:focus,
.navbar-nav .nav-link:focus,
.nav-item .nav-link:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5) !important;
}

.navbar .btn-beatguard,
.navbar .btn-outline-beatguard {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 8px 20px !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 700 !important;
  transition: all 0.5s ease !important;
  display: inline-block !important;
  text-shadow: none !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  letter-spacing: normal !important;
}

.navbar .btn-beatguard:hover,
.navbar .btn-outline-beatguard:hover {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-2px) !important;
  text-shadow: none !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15) !important;
}

.navbar .btn-beatguard:active,
.navbar .btn-outline-beatguard:active {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(0) !important;
  text-shadow: none !important;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1) !important;
}

.navbar .btn-beatguard:focus,
.navbar .btn-outline-beatguard:focus {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  outline: none !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15) !important;
  text-shadow: none !important;
}

/* Dropdown Menu Styling */
.nav-item.dropdown {
  position: relative;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent !important;
  border: none !important;
}

.nav-link.dropdown-toggle::after {
  margin-left: 8px;
  transition: transform 0.3s ease;
  border-top-color: rgba(255, 255, 255, 0.8);
  border-width: 0.35em;
}

.nav-link.dropdown-toggle:hover,
.nav-link.dropdown-toggle.show {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.nav-link.dropdown-toggle.show::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: none !important;
  border-radius: 12px !important;
  padding: 8px !important;
  margin-top: 8px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 
              0 0 40px rgba(139, 92, 246, 0.1),
              inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
  min-width: 200px;
  animation: dropdownFadeIn 0.3s ease;
  transform-origin: top center;
  z-index: 1050;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.15) !important;
  --bs-dropdown-link-hover-color: #ffffff !important;
}

/* Override Bootstrap's default blue hover - Maximum specificity */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu a.dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:hover,
.nav-item .dropdown-menu .dropdown-item:hover,
.dropdown-menu > .dropdown-item:hover,
.dropdown-menu > li > .dropdown-item:hover,
a.dropdown-item:hover,
.dropdown-item:hover:not(.disabled):not(:disabled),
.navbar-dark .dropdown-menu .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.15) !important;
}

.dropdown-menu-end {
  right: 0;
  left: auto;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  color: #ffffff !important;
  font-family: "Montserrat", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 12px 16px !important;
  border-radius: 8px !important;
  margin: 2px 0 !important;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: transparent !important;
  border: none !important;
}

.dropdown-item:hover,
.dropdown-item:hover:not(.disabled):not(:disabled),
a.dropdown-item:hover,
li > .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  transform: translateX(4px);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05);
  border-color: transparent !important;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.15) !important;
}

.dropdown-item:hover *,
.dropdown-item:hover::before {
  color: #ffffff !important;
}

.dropdown-item:active,
.dropdown-item.active {
  background: rgba(255, 255, 255, 0.2) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  transform: translateX(2px);
}

.dropdown-item:focus,
.dropdown-item:focus-visible {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  outline: none;
  box-shadow: none !important;
}

.dropdown-divider {
  background-color: rgba(255, 255, 255, 0.2) !important;
  margin: 8px 0 !important;
  opacity: 1 !important;
  height: 1px;
}

/* Logout Button Fix */
.dropdown-item[type="submit"],
.dropdown-item[onclick*="logout"] {
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-touch-callout: none !important;
  color: rgba(239, 68, 68, 0.9) !important;
}

.dropdown-item[type="submit"]:hover,
.dropdown-item[onclick*="logout"]:hover {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #ef4444 !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2), inset 0 0 10px rgba(239, 68, 68, 0.05);
}

/* Emojis removed - keeping for reference but disabled */
/* .dropdown-item[href*="dashboard"]::before {
  content: "";
  margin-right: 0;
  font-size: 16px;
}

.dropdown-item[href*="beats"]::before {
  content: "";
  margin-right: 0;
  font-size: 16px;
}

.dropdown-item[href*="plans"]::before {
  content: "";
  margin-right: 0;
  font-size: 16px;
}

.dropdown-item[onclick*="logout"]::before {
  content: "";
  margin-right: 0;
  font-size: 16px;
} */

/* Mobile responsiveness */
@media (max-width: 768px) {
  .dropdown-menu {
    min-width: 180px;
    font-size: 13px;
  }
  
  .dropdown-item {
    padding: 10px 14px !important;
    font-size: 13px !important;
  }
  
  .nav-link.dropdown-toggle {
    padding: 0.4rem 0.8rem !important;
    font-size: 14px;
  }
}

/* FINAL OVERRIDE - Remove ALL blue colors from dropdown hover */
.dropdown-menu *:hover,
.dropdown-menu a:hover,
.dropdown-menu li:hover,
.dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:hover,
.navbar-nav .dropdown-menu .dropdown-item:hover,
.nav-item .dropdown-menu .dropdown-item:hover,
.dropdown-item:hover,
a.dropdown-item:hover,
li > a.dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  --bs-dropdown-link-hover-bg: rgba(255, 255, 255, 0.15) !important;
  --bs-dropdown-link-hover-color: #ffffff !important;
}

/* Prevent any blue color from appearing */
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item:active {
  background-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}
