/* ============================================
   Dropdown Component - 下拉菜单通用组件
   ============================================ */

.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px;
  border: 1px solid var(--brand-primary);
  border-radius: 14px;
  white-space: nowrap;
  transform: translateZ(0);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 140px;
  z-index: 1001;
  margin-top: 8px;
  overflow: hidden;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
}

.dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}

.dropdown-item:hover {
  background: rgba(222, 40, 40, 0.06);
  color: var(--brand-primary);
}

.dropdown-item-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: currentColor;
  opacity: 0.85;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0;
  opacity: 0.7;
}

.dropdown-item.danger {
  color: #f44336;
}

.dropdown-item.danger:hover {
  background: rgba(244, 67, 54, 0.08);
  color: #d32f2f;
}
