.custom-dropdown .selected {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  background: white;
  color: #007bff;
  border: 3px solid #ccc;
  transition: all 0.3s ease;
}

.custom-dropdown .selected:hover {
  filter: brightness(1.03);
}

/* Overlay backdrop */
.dropdown-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Gradient border container */
.gradient-border-box {
  padding: 3px;
  border-radius: 16px;
  background: linear-gradient(to right, #007bff, #00c6ff);
  box-shadow: 0 8px 24px rgba(0, 198, 255, 0.3);
  width: auto;                  /* ✅ content-based width */
  max-width: 90vw;
  min-width: 60vw;              /* ✅ prevent overflow on small screens */
    max-height: 500px;         /* Add padding room around list */
  overflow: hidden;          /* Contain scroll inside the list */
  display: flex;
  flex-direction: column;
  
}

/* Actual options list inside white container */
.overlay-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 16px;
  text-align: center;
  line-height: 1.6;

  /* ✅ Height control */
  height: auto;
  min-height: fit-content;
  max-height: 500px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;

  /* ✅ Background + style */
  background: #cce5ff;
  background-image: 
    linear-gradient(#f2fbff, #f2fbff),
    linear-gradient(135deg, #007bff, #00c6ff);
  background-clip: padding-box, border-box;
  background-origin: border-box;
  border-radius: 12px;
  border: 1.7px solid transparent;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Each option styled like a light button */
.overlay-options li {
  padding: 12px 20px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  border: 1.5px solid #007bff;
  border-radius: 12px;
  background: #ffffff;
  color: #003366;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.2s ease;
}

.overlay-options li:hover {
  background: #f1f9ff;
  color: #0056d6;
}

/* Highlight selected option */
.overlay-options li.selected-option {
  background: linear-gradient(to right, #007bff, #00c6ff);
  color: white;
  font-weight: bold;
}