/* Dropdown Component */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: var(--z-dropdown);
  min-width: 10rem;
  padding: var(--spacing-sm) 0;
  margin: var(--spacing-xs) 0 0;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.dropdown-menu.right {
  left: auto;
  right: 0;
}

.dropdown-menu.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-lg);
  clear: both;
  font-weight: 400;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  color: var(--text-primary);
  text-decoration: none;
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: var(--bg-secondary);
}

.dropdown-divider {
  height: 0;
  margin: var(--spacing-sm) 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
}
