.dropdown {
  display: inline-block;
  position: relative;
  width: calc(312px + 8px + 16px);
}

.dropdown-trigger {
  align-items: center;
  background: none;
  border-radius: 1000px;
  border: 1px solid;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  justify-content: space-between;
  padding: 8px 16px 8px 8px;
  width: 100%;
}

.dropdown-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.dropdown-trigger.hidden {
  visibility: hidden;
}

.dropdown-trigger.collapsed {
  border-color: rgba(255, 255, 255, 0.2);
}

.dropdown-trigger.expanded {
  border-color: rgba(255, 255, 255, 0.4);
}

.dropdown-option-divider {
  align-items: center;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: 2px;
  justify-content: center;
}

.dropdown-trigger-content {
  align-items: center;
  display: flex;
  gap: 8px;
  width: 100%;
}

.dropdown-trigger-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  overflow: hidden;
}

.dropdown-trigger-icon img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.dropdown-trigger-text {
  flex: 1;
  text-align: left;
  font-weight: 400;
  font-size: 28px;
  white-space: nowrap;
  line-height: 100%; /* 40px */
}

.dropdown-arrow {
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-arrow.rotated {
  transform: rotate(180deg);
}

.dropdown-arrow-icon {
  width: 24px;
  height: 24px;
}

.dropdown-menu {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-radius: 32px;
  padding: 8px 0;
  width: 100%;
  overflow-y: auto;
  z-index: 1000;
  box-sizing: border-box;
}

.dropdown-option {
  align-items: center;
  background: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin-bottom: 4px;
  padding: 8px 12px 8px 8px;
  transition: all 0.2s ease;
  width: 100%;
}

.dropdown-option:last-child {
  margin-bottom: 0;
}

.dropdown-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.dropdown-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-trigger-icon-placeholder {
  border-width: 6px;
  border-style: solid;
}

.dropdown-option-text {
  flex: 1;
  font-size: 28px;
  font-weight: 400;
  line-height: 100%; /* 40px */
  text-align: left;
  white-space: nowrap;
}

.dropdown-checkmark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Light theme styles */
[data-theme='light'] .dropdown-trigger {
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border: 2.5px solid #e5e8ec;
}

[data-theme='light'] .dropdown-trigger:hover:not(:disabled) {
  border-color: rgba(0, 0, 0, 0.25);
}

[data-theme='light'] .dropdown-trigger.expanded {
  border-color: rgba(0, 0, 0, 0.3);
}

[data-theme='light'] .dropdown-menu {
  background-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme='light'] .dropdown-option {
  color: var(--primary-dark);
}

[data-theme='light'] .dropdown-checkmark {
  color: var(--primary-200);
}

[data-theme='light'] .dropdown-option-divider {
  background: linear-gradient(90deg, #ffffff 0%, #e5e8ec 50%, #ffffff 100%);
}

[data-theme='light'] .dropdown-trigger-icon-placeholder {
  border-color: #e5e8ec;
}

/* Dark theme styles */
[data-theme='dark'] .dropdown-trigger {
  background-color: var(--primary-dark);
  border: 2.5px solid #171f29;
  color: var(--primary-light);
}

[data-theme='dark'] .dropdown-trigger.expanded {
  border-color: rgba(255, 255, 255, 0.3);
}

[data-theme='dark'] .dropdown-menu {
  background-color: #26303d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-theme='dark'] .dropdown-option {
  color: var(--primary-light);
}

[data-theme='dark'] .dropdown-checkmark {
  color: var(--button-dark);
}

[data-theme='dark'] .dropdown-option-divider {
  background: linear-gradient(90deg, #26303d 0%, #171f29 50%, #26303d 100%);
}

[data-theme='dark'] .dropdown-trigger-icon-placeholder {
  border-color: #283442;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .dropdown {
    width: calc(444px + 20px + 16px);
  }

  .dropdown-trigger {
    padding: 12px 20px 12px 16px;
    font-size: 18px;
  }

  .dropdown-trigger-content {
    gap: 12px;
  }

  .dropdown-trigger-text {
    font-size: 40px;
  }

  .dropdown-menu {
    border-radius: 48px;
  }

  .dropdown-option {
    padding: 12px 24px 12px 16px;
    font-size: 18px;
  }

  .dropdown-trigger-icon,
  .dropdown-option-icon {
    min-width: 48px;
    min-height: 48px;
  }

  .dropdown-trigger-icon-placeholder {
    border-width: 8px;
  }

  .dropdown-arrow-icon {
    width: 30px;
    height: 30px;
  }

  .dropdown-checkmark {
    width: 40px;
    height: 40px;
  }

  .dropdown-option-text {
    font-size: 36px;
  }
}
