/* Base styling for numbered lists */
.secondary-nav-sections.numbered-list {
  counter-reset: section;
}

.numbered-list .list-group-item {
  counter-increment: section;
}

.numbered-list .list-group-item::before {
  content: counter(section) ".";
  min-width: 1.5rem;
  margin-right: 0.25rem;
  color: var(--bs-primary);
  font-weight: 500;
}

/* Make the number visible on active items */
.numbered-list .list-group-item.active::before {
  color: white;
  font-weight: 700;
}

/* ==============================
   SHARED ANIMATIONS
   ============================== */

/* Scale pulse animation for icons */
@keyframes pulse-scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

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

/* Box-shadow pulse animation */
@keyframes pulse-shadow {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(var(--bs-primary-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
  }
}

/* Wobble animation */
@keyframes wobble {
  0% {
    transform: translateX(0);
  }

  15% {
    transform: translateX(-5px) rotate(-5deg);
  }

  30% {
    transform: translateX(4px) rotate(4deg);
  }

  45% {
    transform: translateX(-3px) rotate(-2deg);
  }

  60% {
    transform: translateX(2px) rotate(1deg);
  }

  75% {
    transform: translateX(-1px) rotate(-1deg);
  }

  100% {
    transform: translateX(0);
  }
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* ==============================
   SHARED COMPONENT STYLING
   ============================== */

/* Common component container styling */
/* .nav-component {
  margin: 0.5rem 1rem;
  padding: 0.75rem;
  background-color: rgba(var(--bs-light-rgb), 0.8);
  border-radius: 0.5rem;
} */

/* Common header styling for all components */
.component-header {
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0.75rem 0;
  background-color: rgba(var(--bs-light-rgb), 0.7);
}

.component-header .nav-icon,
.component-header .bi {
  width: 32px;
  height: 32px;
  font-size: 1.5rem;
  color: var(--bs-primary);
  margin-right: 0.25rem;
  vertical-align: middle;
}

.component-header span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Grid layouts */
.component-grid {
  display: grid;
  gap: 0.75rem;
}

.component-grid-2col {
  grid-template-columns: 1fr 1fr;
}

/* @media (max-width: 576px) {
  .component-grid-2col {
    grid-template-columns: 1fr;
  }
} */

/* ==============================
   ICON STYLING
   ============================== */

/* Icon styling for both image and Bootstrap icons */
.nav-icon {
  width: 32px;
  height: 32px;
  margin-right: 0.25rem;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

/* Large icon variant */
.nav-icon-large {
  width: 50px;
  height: 50px;
}

/* For icons with custom dimensions */
.nav-icon-custom {
  /* Base styles already in .nav-icon, the custom size is applied inline */
}

i.nav-icon {
  font-size: 1.25rem;
}

i.nav-icon-large {
  font-size: 1.75rem;
}

/* ==============================
   MENU BUTTON STYLING
   ============================== */

.menu-button {
  transition: transform 0.3s ease;
  position: relative;
}

.menu-button:hover {
  transform: scale(1.1);
}

.menu-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: 50%;
  animation: pulse-shadow 2s infinite;
}

.menu-label {
  background: var(--bs-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50rem;
  opacity: 0.75;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.menu-label:hover {
  opacity: 1;
  background: var(--bs-primary);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==============================
   LIST ITEM STYLING
   ============================== */

/* Align list item content consistently across icons and text */
.secondary-nav-item {
  display: flex;
  align-items: center;
}

/* Active navigation item styling */
.list-group-item.active {
  background-color: var(--bs-primary);
  color: white;
  border-color: var(--bs-primary);
}

.list-group-item.active i.nav-icon {
  color: white;
}

/* Custom counter starting point for specific navigation sections */
.numbered-list[data-start="16"] .list-group-item:first-child {
  counter-set: section 16;
}

.numbered-list[data-start="19"] .list-group-item:first-child {
  counter-set: section 19;
}

/* Ripple effect container */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  animation: ripple 0.7s linear;
  pointer-events: none;
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
}
