
.btndrop {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: var(--gap);
  padding: 0.7rem;
  cursor: pointer;
  border: none;
  position: relative;
  background: rgba(255, 255, 255, 0);
  font-size: 16px;
  font-weight: 900;
}

.bxmenu {
  font-size: 1.1rem;
}

.dropdownmenu {
  position: absolute;
  width: 180px;
  border-radius: 3px;
  margin-top: 0.3rem;
  background-color: #f4f6fc;
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 0.1s cubic-bezier(0.16, 1, 0.5, 1);
  box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  text-align: left;
}

.dropdownmenu a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: #333; /* Neutral, readable text color */
  background-color: #FFF; /* Clean background */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease-in-out; /* Smooth transition for all properties */
}

.dropdownmenu a:hover, .dropdownmenu a:focus {
  background-color: #f0f0f0; /* Slightly darker background for contrast on hover/focus */
  color: #0056b3; /* Brand color for text to pop */
  padding-left: 1.4rem; /* Slightly increase padding to indicate selection */
  border-left: 3px solid #0056b3; /* Add a solid line to indicate active/hover state */
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1); /* Subtle inner shadow for depth */
  transform: translateX(5px); /* Gentle horizontal movement for dynamic effect */
}

.showmenu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0rem);
}

.arrowmenu {
  transform: rotate(180deg);
  transition: 0.2s ease;
}

@media (max-width: 767px) {
.dropdownmenu {
  margin-left: 100px;
}
}

#mode + .track {
  --es-w: 230px;         /* total width */
  --es-h: 24px;          /* total height */
  --es-pad: 3px;         /* inner padding */
  --es-font: 12.5px;     /* label font size */
  --es-radius: 999px;    /* pill radius */

  /* Colors (object mode defaults) */
  --es-track: #e5e7eb;   /* track background */
  --es-accent: #008aff;  /* thumb + active label bg */
  --es-muted: #6b7280;   /* inactive label text */
}

/* Track */
#mode + .track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  position: relative;
  width: var(--es-w);
  height: var(--es-h);
  background: var(--es-track);
  border-radius: var(--es-radius);
  padding: var(--es-pad);
  user-select: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* Visually hidden but accessible input */
#mode {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Labels */
#mode + .track .option {
  text-align: center;
  font-weight: 600;
  font-size: var(--es-font);
  line-height: 1;
  padding: 0 .5rem;
  z-index: 1;
  color: var(--es-muted);
  white-space: nowrap;
}

/* Active label colors */
#mode:not(:checked) + .track .option.left  { color: #fff; }
#mode:checked       + .track .option.right { color: #fff; }

/* Thumb (width = half the track minus padding) */
#mode + .track .thumb {
  position: absolute;
  inset: var(--es-pad);
  width: calc(50% - var(--es-pad));
  background: var(--es-accent);
  border-radius: var(--es-radius);
  transform: translateX(0%);
  transition: transform .2s ease;
}
#mode:checked + .track .thumb { transform: translateX(100%); }

/* Focus ring */
#mode:focus + .track {
  outline: 2px solid #93c5fd; /* sky-300 */
  outline-offset: 2px;
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
  #mode + .track .thumb { transition: none; }
}

