/* Currency Selector Styles */
.currency-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0;
    font-family: 'DM Sans Semibold';
    font-size: 12px;
    color: #64748b;
}
.pg_signup .currency-selector{
    padding-top: 20px;
}
/* Custom Dropdown Container */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Toggle Button */
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  min-width: 100px;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-toggle:focus {
  outline: none;
  border-color: #0ea5e9; /* Color azul similar al tema */
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.dropdown-toggle.active {
  border-color: #0ea5e9;
}

/* Currency Display */
.currency-display {
  flex: 1;
  text-align: center;
  font-weight: 600;
  font-family: 'DM Sans Semibold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}
.currency-display .symbol{
    margin-right: 0.5rem;
}

/* Dropdown Arrow */
.currency-selector .arrow{
    transition: transform 0.3s ease;
    font-size: 10px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #64748b;
    background: none;
    font-size: 0;
}
.custom-dropdown.open .arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 4px;
  padding: 0;
  list-style: none;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
  pointer-events: none;
}

/* Show dropdown */
.custom-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  border: 2px solid #248fa3;
  pointer-events: auto;
}
.dropdown-toggle:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: rgb(36 143 163 / 2%);
}
.custom-dropdown.open .dropdown-toggle {
  border-color: #248fa3;
  background-color: rgb(36 143 163 / 3%);
}
/* Dropdown Items */
.dropdown-menu li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  transition: all 0.2s ease;
  text-align: center;
}
.dropdown-menu li:hover:not(.active) {
  background: linear-gradient(135deg, #bde4f1 0%, #cbe2f7 100%);
}
.dropdown-menu li:hover:not(.active) .symbol {
  color: #0c4a6e;
}
.dropdown-menu li.active {
  color: white;
  background: linear-gradient(135deg, #5ba6b5 0%, #24acc7 100%)
}
.dropdown-menu li.active .symbol {
  color: white;
}
/* Currency Symbol */
.dropdown-menu .symbol {
  font-weight: 600;
  font-size: 16px;
  color: #208295;
  min-width: 16px;
}
/* Responsive Design */
@media (max-width: 560px) {
  .currency-selector {
    margin: 16px 0;
    font-size: 13px;
  }

  .dropdown-toggle {
    padding: 10px 12px;
    min-width: 90px;
    font-size: 13px;
  }

  .dropdown-menu li {
    padding: 12px;
    font-size: 13px;
  }
}
/* JavaScript States */
.dropdown-toggle[aria-expanded="true"] {
  border-color: #248fa3;
  background-color: rgb(36 143 163 / 1%);
}
/* Focus trap for accessibility */
.dropdown-menu li:focus {
  outline: none;
  background-color: #f1f5f9;
}
.dropdown-menu li.active:focus {
  background-color: #0284c7;
}
/* Animation for currency change */
.currency-display {
  transition: all 0.2s ease;
}
.currency-display.changing {
  opacity: 0.5;
  transform: scale(0.95);
}
/* Optional: Add a subtle backdrop when dropdown is open */
.dropdown-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 999;
  display: none;
}
.custom-dropdown.open ~ .dropdown-backdrop {
  display: block;
}